summaryrefslogtreecommitdiff
path: root/converters/php-iconv
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2004-10-31 19:30:29 +0000
committerjdolecek <jdolecek@pkgsrc.org>2004-10-31 19:30:29 +0000
commit52c19805011b2d8d525f4d2a6c01cf961940d9aa (patch)
tree9eebc2a4ea3e6fa6c783e1abb83bc43228266985 /converters/php-iconv
parent0ed49ace1ff1fc3ca3ff39742f593ac63c9a9c81 (diff)
downloadpkgsrc-52c19805011b2d8d525f4d2a6c01cf961940d9aa.tar.gz
new PHP extension module framework, which makes it possible to build
individual PHP extension packages with either PHP 4.x or PHP 5.x convert existing php4-* packages to this framework and import as php-*
Diffstat (limited to 'converters/php-iconv')
-rw-r--r--converters/php-iconv/DESCR3
-rw-r--r--converters/php-iconv/Makefile27
2 files changed, 30 insertions, 0 deletions
diff --git a/converters/php-iconv/DESCR b/converters/php-iconv/DESCR
new file mode 100644
index 00000000000..d7a4d54eef3
--- /dev/null
+++ b/converters/php-iconv/DESCR
@@ -0,0 +1,3 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides character set conversion facility, using iconv()
+programming interface.
diff --git a/converters/php-iconv/Makefile b/converters/php-iconv/Makefile
new file mode 100644
index 00000000000..1a0e673143a
--- /dev/null
+++ b/converters/php-iconv/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= iconv
+CATEGORIES+= converters
+PKGREVISION= # empty
+COMMENT= PHP extension for character set conversion
+
+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
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../mk/bsd.prefs.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 "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"