pkgsrc/databases/php-dba/Makefile
jdolecek 49e9ef7f78 extension modules must be able to override CONFIGURE_ARGS, so include
lang/php/ext.mk before setting CONFIGURE_ARGS
2004-10-31 21:07:13 +00:00

28 lines
679 B
Makefile

# $NetBSD: Makefile,v 1.2 2004/10/31 21:07:13 jdolecek Exp $
MODNAME= dba
CATEGORIES+= databases
PKGREVISION= # empty
COMMENT= PHP extension for DBM database access
USE_BUILDLINK3= YES
.include "../../lang/php/ext.mk"
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 "../../mk/bsd.pkg.mk"