pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/php-dba Enable or optionify some handlers, s...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ec5364c8f521
branches: trunk
changeset: 535632:ec5364c8f521
user: obache <obache%pkgsrc.org@localhost>
date: Fri Nov 23 12:34:29 2007 +0000
description:
Enable or optionify some handlers, should fixes PR 37255.
Enable cdb, inifile.
Enable ndbm if exists.
Optionify gdbm, enable default if ndbm doesn't exists.
Optionify bdb.
Bump PKGREVISION.
diffstat:
databases/php-dba/Makefile | 13 ++++++-------
databases/php-dba/options.mk | 31 +++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 7 deletions(-)
diffs (71 lines):
diff -r 2d6e7cd97bf2 -r ec5364c8f521 databases/php-dba/Makefile
--- a/databases/php-dba/Makefile Fri Nov 23 12:25:14 2007 +0000
+++ b/databases/php-dba/Makefile Fri Nov 23 12:34:29 2007 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.9 2007/08/13 10:19:24 joerg Exp $
+# $NetBSD: Makefile,v 1.10 2007/11/23 12:34:29 obache Exp $
MODNAME= dba
+PKGREVISION= 1
CATEGORIES+= databases
COMMENT= PHP extension for DBM database access
@@ -8,19 +9,17 @@
CONFIGURE_ARGS+= --enable-${MODNAME}=shared
-CONFIGURE_ARGS+= --without-cdb
-CONFIGURE_ARGS+= --without-db2
-CONFIGURE_ARGS+= --without-db3
+CONFIGURE_ARGS+= --with-cdb
CONFIGURE_ARGS+= --without-dbm
+CONFIGURE_ARGS+= --with-inifile
.if exists(/usr/include/ndbm.h)
-CONFIGURE_ARGS+= --without-gdbm
CONFIGURE_ARGS+= --with-ndbm=/usr
.else
-CONFIGURE_ARGS+= --with-gdbm=${BUILDLINK_PREFIX.gdbm}
CONFIGURE_ARGS+= --without-ndbm
-.include "../../databases/gdbm/buildlink3.mk"
.endif
+.include "options.mk"
+
.include "../../lang/php/ext.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 2d6e7cd97bf2 -r ec5364c8f521 databases/php-dba/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/php-dba/options.mk Fri Nov 23 12:34:29 2007 +0000
@@ -0,0 +1,31 @@
+# $NetBSD: options.mk,v 1.1 2007/11/23 12:34:29 obache Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.php-dba
+PKG_SUPPORTED_OPTIONS= bdb gdbm
+.if !exists(/usr/include/ndbm.h)
+PKG_SUGGESTED_OPTIONS+= gdbm
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgdbm)
+.include "../../databases/gdbm/buildlink3.mk"
+CONFIGURE_ARGS+= --with-gdbm=${BUILDLINK_PREFIX.gdbm}
+.else
+CONFIGURE_ARGS+= --without-gdbm
+.endif
+
+.if !empty(PKG_OPTIONS:Mbdb)
+BDB_ACCEPTED= db2 db3 db4
+.include "../../mk/bdb.buildlink3.mk"
+CONFIGURE_ARGS+= --with-${BDB_TYPE}=${BDBBASE}
+. for bdb in ${BDB_ACCEPTED}
+. if ${bdb}!=${BDB_TYPE}
+CONFIGURE_ARGS+= --without-${bdb}
+. endif
+. endfor
+.else
+. for dbd in ${BDB_ACCEPTED}
+CONFIGURE_ARGS+= --without-${bdb}
+. endfor
+.endif
Home |
Main Index |
Thread Index |
Old Index