summaryrefslogtreecommitdiff
path: root/print/ghostscript-esp
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-06-15 20:03:25 +0000
committerjlam <jlam@pkgsrc.org>2006-06-15 20:03:25 +0000
commit11e5b7af25be923ec703bc482c4496f192a40ea3 (patch)
tree21220125fc6b68bb626e7e1fc90601e6af4686b8 /print/ghostscript-esp
parentd5618f9487b99230f4eb6b1028291f4d57f4fd55 (diff)
downloadpkgsrc-11e5b7af25be923ec703bc482c4496f192a40ea3.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.
Diffstat (limited to 'print/ghostscript-esp')
-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"