diff options
author | obache <obache@pkgsrc.org> | 2007-11-23 12:34:29 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2007-11-23 12:34:29 +0000 |
commit | a467ab841e19e447486deb5ce94727b54e38bbae (patch) | |
tree | c1d2dcdc3b3054396beab6822021dd674ceeeb02 /databases/php-dba | |
parent | 7e743957c1e6660928377cf10e160764b54a092d (diff) | |
download | pkgsrc-a467ab841e19e447486deb5ce94727b54e38bbae.tar.gz |
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 (limited to 'databases/php-dba')
-rw-r--r-- | databases/php-dba/Makefile | 13 | ||||
-rw-r--r-- | databases/php-dba/options.mk | 31 |
2 files changed, 37 insertions, 7 deletions
diff --git a/databases/php-dba/Makefile b/databases/php-dba/Makefile index 6fd8a43a5be..23e5097495e 100644 --- a/databases/php-dba/Makefile +++ b/databases/php-dba/Makefile @@ -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 @@ CONFLICTS= php-dba-[0-9]* 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 --git a/databases/php-dba/options.mk b/databases/php-dba/options.mk new file mode 100644 index 00000000000..0ad5e3e0acb --- /dev/null +++ b/databases/php-dba/options.mk @@ -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 |