aboutsummaryrefslogtreecommitdiff
path: root/graphics/GraphicsMagick13
diff options
context:
space:
mode:
authorGreg Larkin <glarkin@FreeBSD.org>2012-09-20 20:25:55 +0000
committerGreg Larkin <glarkin@FreeBSD.org>2012-09-20 20:25:55 +0000
commit49644c00fd1bbf471d878ff9c2026dd0eb4c9e66 (patch)
tree6b1fc9aa5fed8a7aeaaf20e6c95250940ea807fb /graphics/GraphicsMagick13
parent87ed9dc1c6c00776de4c076225c97ccc9cb7131e (diff)
downloadports-49644c00fd1bbf471d878ff9c2026dd0eb4c9e66.tar.gz
ports-49644c00fd1bbf471d878ff9c2026dd0eb4c9e66.zip
Notes
Diffstat (limited to 'graphics/GraphicsMagick13')
-rw-r--r--graphics/GraphicsMagick13/Makefile44
-rw-r--r--graphics/GraphicsMagick13/distinfo4
-rw-r--r--graphics/GraphicsMagick13/files/patch-coders__png.c40
-rw-r--r--graphics/GraphicsMagick13/pkg-plist2
4 files changed, 27 insertions, 63 deletions
diff --git a/graphics/GraphicsMagick13/Makefile b/graphics/GraphicsMagick13/Makefile
index c2086602c49d..c69e32cae076 100644
--- a/graphics/GraphicsMagick13/Makefile
+++ b/graphics/GraphicsMagick13/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= GraphicsMagick
-PORTVERSION= 1.3.15
-PORTREVISION= 2
+PORTVERSION= 1.3.16
CATEGORIES= graphics
MASTER_SITES= SF \
ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/
@@ -22,18 +21,20 @@ CONFLICTS= GraphicsMagick-1.[12].*
LIB_DEPENDS= freetype:${PORTSDIR}/print/freetype2 \
png15:${PORTSDIR}/graphics/png \
jbig:${PORTSDIR}/graphics/jbigkit \
- wmflite:${PORTSDIR}/graphics/libwmf \
xml2:${PORTSDIR}/textproc/libxml2
OTHERGRAPHICS= jasper jpeg lcms tiff
LIB_DEPENDS+= ${OTHERGRAPHICS:C|(.+)|\1:${PORTSDIR}/graphics/\1|}
-OPTIONS= Q8BIT "Use 8-bit pixels (speed) instead of 16 (quality)" off \
- FPX "Enable FlashPIX support" on \
- DPS "Enable Display Ghostscript support" on \
- OPENMP "Enable OpenMP support" on \
- SSE "Enable SSE opcodes on supported CPUs" off \
- X11 "Enable X11 support" on \
- TESTS "Run bundled self-tests after build" on
+OPTIONS_DEFINE= Q8BIT FPX OPENMP SSE TESTS X11 DOCS
+
+Q8BIT_DESC= Use 8-bit pixels (speed) instead of 16 (quality)
+DPS_DESC= Enable Display Ghostscript support
+NODPS_DESC= Disable Display Ghostscript support
+TESTS_DESC= Run bundled self-tests after build
+
+OPTIONS_DEFAULT=FPX DPS OPENMP X11 TESTS DOCS
+OPTIONS_SINGLE= X11
+OPTIONS_SINGLE_X11= DPS NODPS
USE_ICONV= yes
USE_AUTOTOOLS= libtool libltdl
@@ -63,15 +64,15 @@ LDFLAGS+= -L${LOCALBASE}/lib
test check:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS} == ""
# Get rid of the Makefile targets that install the documentation
# and HTML files into DOCSDIR
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-Makefile.in
.endif
-.if defined(WITH_SSE)
+.if ${PORT_OPTIONS:MSSE}
.if ${MACHINE_CPU:Msse}
CFLAGS+= -msse
.endif
@@ -83,21 +84,21 @@ CFLAGS+= -msse3
.endif
.endif
-.if defined(WITH_FPX)
+.if ${PORT_OPTIONS:MFPX}
LIB_DEPENDS+= fpx.[2-9]:${PORTSDIR}/graphics/libfpx
CONFIGURE_ARGS+= --with-fpx
.else
CONFIGURE_ARGS+= --without-fpx
.endif
-.if defined(WITH_DPS)
+.if ${PORT_OPTIONS:MDPS}
LIB_DEPENDS+= dps:${PORTSDIR}/x11/dgs
CONFIGURE_ARGS+= --with-dps
.else
CONFIGURE_ARGS+= --without-dps
.endif
-.if defined(WITH_OPENMP)
+.if ${PORT_OPTIONS:MOPENMP}
.if ${OSVERSION} < 700042
IGNORE= does not support OpenMP on FreeBSD version ${OSVERSION}
.endif
@@ -117,12 +118,15 @@ WINDOWS_FONT_DIR=${LOCALBASE}/lib/X11/fonts/webfonts
CONFIGURE_ARGS+= --with-windows-font-dir="${WINDOWS_FONT_DIR}"
.endif
-.if !defined(WITH_X11)
+.if ${PORT_OPTIONS:MX11} == ""
PKGNAMESUFFIX+= -nox11
CONFIGURE_ARGS+=--without-x
+LIB_DEPENDS+= wmflite:${PORTSDIR}/graphics/libwmf-nox11
+.else
+LIB_DEPENDS+= wmflite:${PORTSDIR}/graphics/libwmf
.endif
-.if defined(WITH_Q8BIT) || defined(WITHOUT_GRAPHICSMAGICK_16BIT_PIXEL)
+.if ${PORT_OPTIONS:MQ8BIT}
CONFIGURE_ARGS+= --with-quantum-depth=8
PLIST_SUB+= Q=8
.else
@@ -130,7 +134,7 @@ CONFIGURE_ARGS+= --with-quantum-depth=16
PLIST_SUB+= Q=16
.endif
-.if !defined(WITHOUT_TESTS)
+.if ${PORT_OPTIONS:MTESTS}
post-build:: test
.else
post-build::
@@ -140,4 +144,4 @@ post-build::
#
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/GraphicsMagick13/distinfo b/graphics/GraphicsMagick13/distinfo
index cb76ea9a6e86..4b42e947f937 100644
--- a/graphics/GraphicsMagick13/distinfo
+++ b/graphics/GraphicsMagick13/distinfo
@@ -1,2 +1,2 @@
-SHA256 (GraphicsMagick-1.3.15.tar.bz2) = fd79168feaca5a2d230ce294541bb3655fd0fb6f21aec7c29dd7f00db14109ed
-SIZE (GraphicsMagick-1.3.15.tar.bz2) = 6686564
+SHA256 (GraphicsMagick-1.3.16.tar.bz2) = 2845bfcd53b0ea57755f21aac80df3becfa7d37ac50c6f67387f004d67d58d83
+SIZE (GraphicsMagick-1.3.16.tar.bz2) = 7328861
diff --git a/graphics/GraphicsMagick13/files/patch-coders__png.c b/graphics/GraphicsMagick13/files/patch-coders__png.c
deleted file mode 100644
index 8be45f57aa9d..000000000000
--- a/graphics/GraphicsMagick13/files/patch-coders__png.c
+++ /dev/null
@@ -1,40 +0,0 @@
---- ./coders/png.c.orig 2012-04-28 15:45:16.000000000 -0400
-+++ ./coders/png.c 2012-06-12 10:41:35.000000000 -0400
-@@ -1601,6 +1601,12 @@
- 115, 67, 65, 76, '\0', /* sCAL */
- 115, 80, 76, 84, '\0', /* sPLT */
- 116, 73, 77, 69, '\0', /* tIME */
-+#ifdef PNG_APNG_SUPPORTED /* libpng was built with APNG patch; */
-+ /* ignore the APNG chunks */
-+ 97, 99, 84, 76, '\0', /* acTL */
-+ 102, 99, 84, 76, '\0', /* fcTL */
-+ 102, 100, 65, 84, '\0', /* fdAT */
-+#endif
- };
- #endif
-
-@@ -1707,6 +1713,11 @@
- (int)sizeof(unused_chunks)/5);
- #endif
-
-+#ifdef PNG_READ_CHECK_FOR_INVALID_INDEX_SUPPORTED
-+ /* Disable new libpng-1.5.10 feature */
-+ png_set_check_for_invalid_index (ping, 0);
-+#endif
-+
- #if defined(PNG_USE_PNGGCCRD) && defined(PNG_ASSEMBLER_CODE_SUPPORTED) \
- && (PNG_LIBPNG_VER >= 10200)
- /* Disable thread-unsafe features of pnggccrd */
-@@ -6356,6 +6367,12 @@
- /*
- Prepare PNG for writing.
- */
-+
-+#ifdef PNG_WRITE_CHECK_FOR_INVALID_INDEX_SUPPORTED
-+ /* Disable new libpng-1.5.10 feature */
-+ png_set_check_for_invalid_index (ping, 0);
-+#endif
-+
- #if defined(PNG_MNG_FEATURES_SUPPORTED)
- if (mng_info->write_mng)
- (void) png_permit_mng_features(ping,PNG_ALL_MNG_FEATURES);
diff --git a/graphics/GraphicsMagick13/pkg-plist b/graphics/GraphicsMagick13/pkg-plist
index fd75ea53d5a6..91ded55cfaa1 100644
--- a/graphics/GraphicsMagick13/pkg-plist
+++ b/graphics/GraphicsMagick13/pkg-plist
@@ -95,7 +95,7 @@ lib/libGraphicsMagick++.so.9
lib/libGraphicsMagick.a
lib/libGraphicsMagick.la
lib/libGraphicsMagick.so
-lib/libGraphicsMagick.so.11
+lib/libGraphicsMagick.so.12
lib/libGraphicsMagickWand.a
lib/libGraphicsMagickWand.la
lib/libGraphicsMagickWand.so