summaryrefslogtreecommitdiff
path: root/graphics/ImageMagick
diff options
context:
space:
mode:
authorjlam <jlam>2001-06-20 22:24:44 +0000
committerjlam <jlam>2001-06-20 22:24:44 +0000
commitf9bb10b0108cd5dbea07e6fcfc8da58d66edde67 (patch)
treec02369919d3b8ed412bb9dd11fba9b3d0c792460 /graphics/ImageMagick
parent0f75aea664e46444855da0db575ff68cc3f2b1c9 (diff)
downloadpkgsrc-f9bb10b0108cd5dbea07e6fcfc8da58d66edde67.tar.gz
Convert to use buildlink.mk files and mark as USE_BUILDLINK_ONLY. Allow
finding libbz2 on NetBSD systems by removing BZ2_ prefix from bzip2 function calls.
Diffstat (limited to 'graphics/ImageMagick')
-rw-r--r--graphics/ImageMagick/Makefile38
1 files changed, 32 insertions, 6 deletions
diff --git a/graphics/ImageMagick/Makefile b/graphics/ImageMagick/Makefile
index d906826db72..03e3c578d7d 100644
--- a/graphics/ImageMagick/Makefile
+++ b/graphics/ImageMagick/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.68 2001/05/22 09:32:19 wiz Exp $
+# $NetBSD: Makefile,v 1.69 2001/06/20 22:24:44 jlam Exp $
DISTNAME= ImageMagick-5.2.8
CATEGORIES= graphics
@@ -9,15 +9,11 @@ MAINTAINER= tron@netbsd.org
HOMEPAGE= http://www.simplesystems.org/ImageMagick/
COMMENT= Package for display and interactive manipulation of images
-DEPENDS+= jpeg-6b:../../graphics/jpeg
-DEPENDS+= mpeg2codec-1.2:../../graphics/mpeg2codec
-DEPENDS+= png>=1.0.11:../../graphics/png
-DEPENDS+= tiff-*:../../graphics/tiff
-
CONFLICTS= geomview-* # both have a program named 'animate'
NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
+USE_BUILDLINK_ONLY= YES
GNU_CONFIGURE= YES
USE_X11= YES
USE_LIBTOOL= YES
@@ -28,6 +24,11 @@ LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
CFLAGS= -O
.endif
+.include "../../mk/bsd.prefs.mk"
+.include "../../graphics/jpeg/buildlink.mk"
+.include "../../graphics/png/buildlink.mk"
+.include "../../graphics/tiff/buildlink.mk"
+
# For things for which we do not specify an explicit dependency above, disable
# so that we don't cause implicit "hidden" dependencies. Users may reenable
# any of these manually as desired (PerlMagick should probably be a separate
@@ -36,6 +37,31 @@ CONFIGURE_ARGS+= --without-perl --without-dps --without-fpx \
--without-hdf --without-jbig --without-threads \
--without-ttf --without-wmf --without-xml
+# Fix references to libbz2 functions on NetBSD.
+.if (${OPSYS} == "NetBSD")
+post-extract:
+ @cd ${WRKSRC}; \
+ for file in ${CONFIGURE_SCRIPT} coders/miff.c; do \
+ ${MV} -f $${file} $${file}.presubst; \
+ ${SED} -e "s|BZ2_||g" $${file}.presubst > $${file}; \
+ ${RM} -f $${file}.presubst; \
+ done; \
+ ${CHMOD} +x ${CONFIGURE_SCRIPT}
+.endif
+
+# Fix config scripts by removing buildlink directory references.
+post-build:
+ @cd ${WRKSRC}; \
+ config_scripts="Magick++/bin/Magick++-config magick/Magick-config"; \
+ for file in $${config_scripts}; do \
+ ${MV} -f $${file} $${file}.fixme; \
+ ${SED} -e "s|-I${BUILDLINK_DIR}/|-I${LOCALBASE}/|g" \
+ -e "s|-L${BUILDLINK_DIR}/|-L${LOCALBASE}/|g" \
+ $${file}.fixme > $${file}; \
+ ${RM} -f $${file}.fixme; \
+ ${CHMOD} +x $${file}; \
+ done
+
post-install:
${INSTALL_DATA} ${WRKSRC}/Copyright.txt ${WRKSRC}/QuickStart.txt \
${PREFIX}/share/ImageMagick