summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
Diffstat (limited to 'converters')
-rw-r--r--converters/php4-iconv/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/converters/php4-iconv/Makefile b/converters/php4-iconv/Makefile
index 6caf679ef63..dbef7840468 100644
--- a/converters/php4-iconv/Makefile
+++ b/converters/php4-iconv/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2004/06/03 23:07:29 heinz Exp $
+# $NetBSD: Makefile,v 1.6 2004/07/12 04:32:21 jdolecek Exp $
MODNAME= iconv
CATEGORIES+= converters
@@ -12,10 +12,16 @@ USE_BUILDLINK3= YES
# this is necessary so that PHP would find either the libc iconv
# or use the packaged iconv, as appropriate; using
# --with-iconv=shared,${BUILDLINK_PREFIX.iconv} assumes libiconv exists
-# the PHP_ICONV in environment is to make configure find alternative
-# libiconv
-CONFIGURE_ARGS+= --with-iconv
-CONFIGURE_ENV+= PHP_ICONV=${BUILDLINK_PREFIX.iconv:Q}
.include "../../converters/libiconv/buildlink3.mk"
+.include "../../mk/buildlink3/bsd.builtin.mk"
+
+.if !empty(USE_BUILTIN.iconv:M[nN][oO])
+# use libiconv
+CONFIGURE_ARGS+= --with-iconv=shared,${BUILDLINK_PREFIX.iconv}
+.else
+# use libc-provided iconv
+CONFIGURE_ARGS+= --with-iconv
+.endif
+
.include "../../mk/bsd.pkg.mk"