summaryrefslogtreecommitdiff
path: root/databases/php-dba/Makefile
diff options
context:
space:
mode:
authorjdolecek <jdolecek>2004-10-31 19:30:29 +0000
committerjdolecek <jdolecek>2004-10-31 19:30:29 +0000
commit64281bb941afc86bea764d8e1310ecc9260c3342 (patch)
tree9eebc2a4ea3e6fa6c783e1abb83bc43228266985 /databases/php-dba/Makefile
parentddaac6391e32b7d4a0e3a238d0abee88719f97fc (diff)
downloadpkgsrc-64281bb941afc86bea764d8e1310ecc9260c3342.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 'databases/php-dba/Makefile')
-rw-r--r--databases/php-dba/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/databases/php-dba/Makefile b/databases/php-dba/Makefile
new file mode 100644
index 00000000000..1d33270182a
--- /dev/null
+++ b/databases/php-dba/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= dba
+CATEGORIES+= databases
+PKGREVISION= # empty
+COMMENT= PHP extension for DBM database access
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --enable-${MODNAME}=shared
+
+CONFIGURE_ARGS+= --without-cdb
+CONFIGURE_ARGS+= --without-db2
+CONFIGURE_ARGS+= --without-db3
+CONFIGURE_ARGS+= --without-dbm
+
+.if exists(/usr/include/ndbm.h)
+CONFIGURE_ARGS+= --without-gdbm
+CONFIGURE_ARGS+= --with-ndbm=/usr
+.else
+CONFIGURE_ARGS+= --with-gdbm=shared,${BUILDLINK_PREFIX.gdbm}
+CONFIGURE_ARGS+= --without-ndbm
+.include "../../databases/gdbm/buildlink3.mk"
+.endif
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"