aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authormm <mm@FreeBSD.org>2011-10-12 03:34:04 +0800
committermm <mm@FreeBSD.org>2011-10-12 03:34:04 +0800
commit05609d65aed46c2ddfb97357b83f509d5f0b1d3f (patch)
tree07d4658ac3408ecc55f13b189d0907f6f8699cbb /graphics
parent056116be5c2cfe49cd7c4a13dd4094f3912f25ec (diff)
downloadfreebsd-ports-gnome-05609d65aed46c2ddfb97357b83f509d5f0b1d3f.tar.gz
freebsd-ports-gnome-05609d65aed46c2ddfb97357b83f509d5f0b1d3f.tar.zst
freebsd-ports-gnome-05609d65aed46c2ddfb97357b83f509d5f0b1d3f.zip
- Update to 6.7.3-0
- Add upstream patch to fix bundled tests [1] - Add LCMS2 support (enabled by default) - Add WEBP support (enabled by default) - Enable WMF support by default - Disable the IMAGEMAGICK_TESTS option by default - Run tests if building package - Update MASTER_SITES PR: ports/161487 [1]
Diffstat (limited to 'graphics')
-rw-r--r--graphics/ImageMagick/Makefile84
-rw-r--r--graphics/ImageMagick/distinfo4
-rw-r--r--graphics/ImageMagick/files/patch-magick-string.c13
-rw-r--r--graphics/ImageMagick/pkg-plist2
4 files changed, 73 insertions, 30 deletions
diff --git a/graphics/ImageMagick/Makefile b/graphics/ImageMagick/Makefile
index b42818ae5339..c5bc8dbda22d 100644
--- a/graphics/ImageMagick/Makefile
+++ b/graphics/ImageMagick/Makefile
@@ -6,11 +6,12 @@
#
PORTNAME= ImageMagick
-DISTVERSION= 6.7.2-10
+DISTVERSION= 6.7.3-0
CATEGORIES= graphics perl5
MASTER_SITES= ftp://ftp.imagemagick.org/pub/ImageMagick/ \
- ftp://ftp.nluug.nl/pub/ImageMagick/ \
- ftp://gd.tuwien.ac.at/pub/graphics/ImageMagick/
+ http://image_magick.veidrodis.com/image_magick/ \
+ ftp://ftp.sunet.se/pub/multimedia/graphics/ImageMagick/ \
+ ftp://ftp.nluug.nl/pub/ImageMagick/
MAINTAINER= mm@FreeBSD.org
COMMENT= Image processing tools
@@ -49,7 +50,8 @@ OPTIONS=\
IMAGEMAGICK_JBIG "JBIG format support" on \
IMAGEMAGICK_JPEG "JPG format support" on \
IMAGEMAGICK_JPEG2000 "JPEG2000 format support" on \
- IMAGEMAGICK_LCMS "LCMS support" on \
+ IMAGEMAGICK_LCMS2 "LCMS version 2 support" on \
+ IMAGEMAGICK_LCMS "LCMS version 1 support" off \
IMAGEMAGICK_LZMA "LZMA support" on \
IMAGEMAGICK_LQR "Liquid Rescale support" on \
IMAGEMAGICK_MODULES "Modules support" on \
@@ -59,10 +61,11 @@ OPTIONS=\
IMAGEMAGICK_PERL "Perl support" on \
IMAGEMAGICK_PNG "PNG format support" on \
IMAGEMAGICK_SVG "SVG format support (requires X11)" on \
- IMAGEMAGICK_TESTS "Run bundled self-tests after build" on \
+ IMAGEMAGICK_TESTS "Run bundled self-tests after build" off \
IMAGEMAGICK_TIFF "TIFF format support" on \
IMAGEMAGICK_TTF "Freetype support" on \
- IMAGEMAGICK_WMF "WMF format support" off \
+ IMAGEMAGICK_WEBP "WEBP support" on \
+ IMAGEMAGICK_WMF "WMF format support" on \
THREADS "Threads support" off
.include <bsd.port.pre.mk>
@@ -74,6 +77,7 @@ IGNORE= support for the PDF format requires ghostscript 8 and higher
#.if defined(WITH_IMAGEMAGICK_HDRI)
#BROKEN= hdri support broken, disable in options
#CONFIGURE_ARGS+= --enable-hdri
+#_NO_IMAGEMAGICK_TESTS=yes
#.else
CONFIGURE_ARGS+= --disable-hdri
#.endif
@@ -272,11 +276,17 @@ LIB_DEPENDS+= lzma:${PORTSDIR}/archivers/xz
CONFIGURE_ARGS+= --without-lzma
.endif
-# LCMS (Little CMS) color management
-.if !defined(WITHOUT_IMAGEMAGICK_LCMS)
-LIB_DEPENDS+= lcms:${PORTSDIR}/graphics/lcms
+# LCMS (Little CMS) color management version 2 and 1 (mutually exclusive)
+.if !defined(WITHOUT_IMAGEMAGICK_LCMS2)
+LIB_DEPENDS+= lcms2:${PORTSDIR}/graphics/lcms2
+CONFIGURE_ARGS+= --without-lcms
.else
+CONFIGURE_ARGS+= --without-lcms2
+. if !defined(WITHOUT_IMAGEMAGICK_LCMS)
+LIB_DEPENDS+= lcms:${PORTSDIR}/graphics/lcms
+. else
CONFIGURE_ARGS+= --without-lcms
+. endif
.endif
# Freetype (TrueType Font) support
@@ -288,6 +298,16 @@ CONFIGURE_ARGS+= --with-freetype
CONFIGURE_ARGS+= --without-freetype
.endif
+# Webp support
+.if !defined(WITHOUT_IMAGEMAGICK_WEBP)
+LIB_DEPENDS+= webp:${PORTSDIR}/graphics/webp
+CONFIGURE_ARGS+= --with-webp
+PLIST_SUB+= WEBP=""
+.else
+CONFIGURE_ARGS+= --without-webp
+PLIST_SUB+= WEBP="@comment "
+.endif
+
# Fontconfig support
.if !defined(WITHOUT_IMAGEMAGICK_FONTCONFIG)
LIB_DEPENDS+= fontconfig:${PORTSDIR}/x11-fonts/fontconfig
@@ -300,8 +320,12 @@ CONFIGURE_ARGS+= --without-fontconfig
.endif
# WMF (Windows Meta File) images
-.if defined(WITH_IMAGEMAGICK_WMF)
+.if !defined(WITHOUT_IMAGEMAGICK_WMF)
+. if !defined(WITHOUT_X11)
LIB_DEPENDS+= wmf:${PORTSDIR}/graphics/libwmf
+. else
+LIB_DEPENDS+= wmf:${PORTSDIR}/graphics/libwmf-nox11
+. endif
CONFIGURE_ARGS+= --with-wmf=yes
CFLAGS+= -I${LOCALBASE}/include/freetype2
PLIST_SUB+= WMF=""
@@ -329,8 +353,10 @@ USE_GHOSTSCRIPT= yes
.if defined(WITHOUT_X11)
PKGNAMESUFFIX+= -nox11
CONFIGURE_ARGS+= --without-x
+CONFLICTS+= ImageMagick-6*
PLIST_SUB+= X11='@comment '
.else
+CONFLICTS+= ImageMagick-nox11-6*
CONFLICTS+= display-[0-9]*
CONFIGURE_ARGS+= --with-x
USE_XORG= xext xt
@@ -347,8 +373,15 @@ INSTALL_TARGET= install
INSTALL_TARGET= install install-data-html
.endif
+# Test suite, requires installed ghostscript to pass
.if ${ARCH} == sparc64
-WITHOUT_IMAGEMAGICK_TESTS=yes
+_NO_IMAGEMAGICK_TESTS=yes
+.endif
+
+.if defined(PACKAGE_BUILDING) || defined(WITH_IMAGEMAGICK_TESTS)
+. if !defined(_NO_IMAGEMAGICK_TESTS)
+USE_GHOSTSCRIPT_BUILD=yes
+. endif
.endif
post-patch:
@@ -389,6 +422,13 @@ pre-configure:
@${ECHO_CMD} NOTICE: ${_IMAGEMAGICK_THREADS_PERL_MSG}. Building ImageMagick ${_IMAGEMAGICK_THREADS_MSG}.
@${ECHO_CMD} '###################################################################'
.endif
+.if !defined(WITHOUT_IMAGEMAGICK_LCMS2) && defined(WITH_IMAGEMAGICK_LCMS)
+ @${ECHO_CMD} '###################################################################'
+ @${ECHO_CMD} 'WARNING: both WITH_IMAGEMAGICK_LCMS and WITH_IMAGEMAGICK LCMS2'
+ @${ECHO_CMD} ' selected, LCMS2 has precedence and will be used'
+ @${ECHO_CMD} '###################################################################'
+.endif
+
.if defined(WITH_IMAGEMAGICK_SVG) && defined(WITHOUT_X11)
@${ECHO_CMD} NOTICE: SVG format support disabled, requires X11
.endif
@@ -408,23 +448,11 @@ post-install:
test check:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} limits -m 20m ${MAKE} check
-.if !defined(WITHOUT_IMAGEMAGICK_TESTS)
-. for m in TTF
-. if defined(WITHOUT_IMAGEMAGICK_$m)
-WITHOUT_IMAGEMAGICK_TESTS=yes
-. endif
-. endfor
-.endif
-.if !defined(WITHOUT_IMAGEMAGICK_TESTS)
-. for m in MODULES HDRI
-. if defined(WITH_IMAGEMAGICK_$m)
-WITHOUT_IMAGEMAGICK_TESTS=yes
-. endif
-. endfor
-.endif
-
-.if !defined(WITHOUT_IMAGEMAGICK_TESTS)
-post-build: test
+.if !defined(_NO_IMAGEMAGICK_TESTS)
+regression-test: test
+. if !defined(PACKAGE_BUILDING) && defined(WITH_IMAGEMAGICK_TESTS)
+post-build: regression-test
+. endif
.endif
.include <bsd.port.post.mk>
diff --git a/graphics/ImageMagick/distinfo b/graphics/ImageMagick/distinfo
index 00dc5ddf0654..42a8278b3ccc 100644
--- a/graphics/ImageMagick/distinfo
+++ b/graphics/ImageMagick/distinfo
@@ -1,2 +1,2 @@
-SHA256 (ImageMagick-6.7.2-10.tar.xz) = 73a61b868fccdcb0fd943cd0004fa00d9ec25260348d6543125a7b4804df2350
-SIZE (ImageMagick-6.7.2-10.tar.xz) = 7955804
+SHA256 (ImageMagick-6.7.3-0.tar.xz) = 8159b3c3fa2c121b30a020df5ae87ec345a79608379413a8fa38fe3000d0607b
+SIZE (ImageMagick-6.7.3-0.tar.xz) = 7946508
diff --git a/graphics/ImageMagick/files/patch-magick-string.c b/graphics/ImageMagick/files/patch-magick-string.c
new file mode 100644
index 000000000000..3e07953f046a
--- /dev/null
+++ b/graphics/ImageMagick/files/patch-magick-string.c
@@ -0,0 +1,13 @@
+Index: magick/string.c
+===================================================================
+--- magick/string.c (revision 5596)
++++ magick/string.c (revision 5597)
+@@ -734,6 +734,8 @@
+ register size_t
+ n;
+
++ if (source == (const char *) NULL)
++ return(0);
+ p=source;
+ q=destination;
+ for (n=length; n > 4; n-=4)
diff --git a/graphics/ImageMagick/pkg-plist b/graphics/ImageMagick/pkg-plist
index fced933f8e06..536d403b638d 100644
--- a/graphics/ImageMagick/pkg-plist
+++ b/graphics/ImageMagick/pkg-plist
@@ -356,6 +356,8 @@ lib/ImageMagick-%%PORTVERSION%%/modules-%%QBIT%%/coders/.keep
%%MODULES%%lib/ImageMagick-%%PORTVERSION%%/modules-%%QBIT%%/coders/viff.so
%%MODULES%%lib/ImageMagick-%%PORTVERSION%%/modules-%%QBIT%%/coders/wbmp.la
%%MODULES%%lib/ImageMagick-%%PORTVERSION%%/modules-%%QBIT%%/coders/wbmp.so
+%%WEBP%%%%MODULES%%lib/ImageMagick-%%PORTVERSION%%/modules-%%QBIT%%/coders/webp.la
+%%WEBP%%%%MODULES%%lib/ImageMagick-%%PORTVERSION%%/modules-%%QBIT%%/coders/webp.so
%%WMF%%%%MODULES%%lib/ImageMagick-%%PORTVERSION%%/modules-%%QBIT%%/coders/wmf.la
%%WMF%%%%MODULES%%lib/ImageMagick-%%PORTVERSION%%/modules-%%QBIT%%/coders/wmf.so
%%MODULES%%lib/ImageMagick-%%PORTVERSION%%/modules-%%QBIT%%/coders/wpg.la