summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2006-06-15 20:03:25 +0000
committerjlam <jlam>2006-06-15 20:03:25 +0000
commit893ddf9ad2faea1a2c854fb8bf25fbe5473b8aec (patch)
tree21220125fc6b68bb626e7e1fc90601e6af4686b8
parent69e0b216fbf8608cd193fb6708efd23cbbb008cd (diff)
downloadpkgsrc-893ddf9ad2faea1a2c854fb8bf25fbe5473b8aec.tar.gz
Use the correct iconv library if building with PREFER_PKGSRC=yes and libc
also contains an iconv implementation. Bump the PKGREVISION to 5.
-rw-r--r--print/ghostscript-esp/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/print/ghostscript-esp/Makefile b/print/ghostscript-esp/Makefile
index 6e9f1b60bd4..e8816a91dca 100644
--- a/print/ghostscript-esp/Makefile
+++ b/print/ghostscript-esp/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.19 2006/04/22 09:22:13 rillig Exp $
+# $NetBSD: Makefile,v 1.20 2006/06/15 20:03:25 jlam Exp $
DISTNAME= espgs-${GS_VERS}-source
PKGNAME= ghostscript-esp-${GS_VERS}
-PKGREVISION= 4
+PKGREVISION= 5
BASEGS_VERS= 8.15
GS_VERS= ${BASEGS_VERS}.1
CATEGORIES= print
@@ -34,6 +34,14 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-ijs
CONFIGURE_ARGS+= --without-omni
CONFIGURE_ARGS+= --with-drivers=ALL
+CONFIGURE_ARGS+= ${CONFIGURE_ARGS_ICONV.${USE_BUILTIN.iconv}}
+
+# Force the configure script to select the correct iconv library. The
+# "maybe" setting looks for iconv in libc first, then falls back to
+# checking -liconv, while "gnu" looks directly in -liconv.
+#
+CONFIGURE_ARGS_ICONV.yes= --with-libiconv=maybe
+CONFIGURE_ARGS_ICONV.no= --with-libiconv=gnu
DIST_SUBDIR= ghostscript
GS_SRCS= ${DISTNAME}${EXTRACT_SUFX}
@@ -68,6 +76,7 @@ DOCDIR= ${PREFIX}/share/doc/ghostscript
PLIST_SUBST+= GS_VERS=${BASEGS_VERS:Q}
+.include "../../converters/libiconv/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../print/gimp-print-lib/buildlink3.mk"