mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Restore LZW knob, not expired yet in Europe and Japan.
Autoenable it, if USA_RESIDENT == YES
This commit is contained in:
parent
1f1577d9f3
commit
cc1b5a1cae
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=83362
2 changed files with 28 additions and 1 deletions
|
@ -50,7 +50,7 @@ LIBTOOLFLAGS= # none
|
||||||
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
||||||
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
||||||
CONFIGURE_ARGS= --enable-shared --with-perl=${PERL5} \
|
CONFIGURE_ARGS= --enable-shared --with-perl=${PERL5} \
|
||||||
--without-gslib --enable-lzw
|
--without-gslib
|
||||||
INSTALLS_SHLIB= yes
|
INSTALLS_SHLIB= yes
|
||||||
|
|
||||||
MAN1= ImageMagick.1 Magick++-config.1 Magick-config.1 \
|
MAN1= ImageMagick.1 Magick++-config.1 Magick-config.1 \
|
||||||
|
@ -78,6 +78,12 @@ CONFIGURE_ARGS+= --without-threads
|
||||||
CONFIGURE_ARGS+= --with-quantum-depth=8
|
CONFIGURE_ARGS+= --with-quantum-depth=8
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
# Produce standard (small) GIFs
|
||||||
|
.if defined(HAVE_UNISYS_LICENSE) || \
|
||||||
|
(defined(USA_RESIDENT) && ${USA_RESIDENT} == "YES")
|
||||||
|
CONFIGURE_ARGS+= --enable-lzw
|
||||||
|
.endif
|
||||||
|
|
||||||
# Loadable coders, smaller executable, but PerlMagick not really works
|
# Loadable coders, smaller executable, but PerlMagick not really works
|
||||||
# ('make test' there works)
|
# ('make test' there works)
|
||||||
.if defined(WITH_IMAGEMAGICK_MODULES)
|
.if defined(WITH_IMAGEMAGICK_MODULES)
|
||||||
|
|
|
@ -41,9 +41,30 @@ MAKE_ARGS+= -j2
|
||||||
MAKE_ARGS+= $v="${$v}"
|
MAKE_ARGS+= $v="${$v}"
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
|
.if defined(HAVE_UNISYS_LICENSE) || \
|
||||||
|
(defined(USA_RESIDENT) && ${USA_RESIDENT} == "YES")
|
||||||
|
WITH_LZW= yes
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if !defined(WITH_LZW)
|
||||||
|
pre-fetch:
|
||||||
|
@${ECHO_CMD} "************************************************************"
|
||||||
|
@${ECHO_CMD} "* If you live outside US and Canada, you can define *"
|
||||||
|
@${ECHO_CMD} "* WITH_LZW to enable GIF compression support. *"
|
||||||
|
@${ECHO_CMD} "************************************************************"
|
||||||
|
.endif
|
||||||
|
|
||||||
post-extract:
|
post-extract:
|
||||||
@${CP} ${FILESDIR}/g* ${WRKSRC}
|
@${CP} ${FILESDIR}/g* ${WRKSRC}
|
||||||
|
|
||||||
|
post-patch:
|
||||||
|
.if !defined(WITH_LZW)
|
||||||
|
${MV} ${WRKSRC}/gd_gif_out.c ${WRKSRC}/gd_gif_out.c.nogif && \
|
||||||
|
${SED} -e "s|#define LZW_LICENCED||g" \
|
||||||
|
< ${WRKSRC}/gd_gif_out.c.nogif \
|
||||||
|
> ${WRKSRC}/gd_gif_out.c
|
||||||
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
@${MKDIR} ${DOCSDIR}
|
@${MKDIR} ${DOCSDIR}
|
||||||
|
|
Loading…
Add table
Reference in a new issue