summaryrefslogtreecommitdiff
path: root/databases/php4-dba/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/php4-dba/Makefile')
-rw-r--r--databases/php4-dba/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/databases/php4-dba/Makefile b/databases/php4-dba/Makefile
new file mode 100644
index 00000000000..cf3ba19861f
--- /dev/null
+++ b/databases/php4-dba/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/10/16 06:45:09 jlam Exp $
+
+.include "../php4/Makefile.module"
+
+MODNAME= dba
+CATEGORIES+= databases
+PHP_PKG_VERS= # empty
+COMMENT= PHP4 extension for DBM database access
+
+USE_BUILDLINK_ONLY= 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_DIR}
+CONFIGURE_ARGS+= --without-ndbm
+.include "../../databases/gdbm/buildlink.mk"
+.endif
+
+.include "../../mk/bsd.pkg.mk"