PLIST fix for LDAP; Added options for pgsql, mysql, sqlite3diff -r1.5 -r1.6 pkgsrc/devel/apr-util/Makefile
(adam)
@@ -1,33 +1,32 @@ | @@ -1,33 +1,32 @@ | |||
1 | # $NetBSD: Makefile,v 1.5 2008/09/06 16:39:58 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.6 2008/09/08 09:58:43 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= apr-util-1.3.4 | 3 | DISTNAME= apr-util-1.3.4 | |
4 | CATEGORIES= devel | 4 | CATEGORIES= devel | |
5 | MASTER_SITES= ${MASTER_SITE_APACHE:=apr/} | 5 | MASTER_SITES= ${MASTER_SITE_APACHE:=apr/} | |
6 | 6 | |||
7 | MAINTAINER= pkgsrc-users@NetBSD.org | 7 | MAINTAINER= pkgsrc-users@NetBSD.org | |
8 | HOMEPAGE= http://apr.apache.org/ | 8 | HOMEPAGE= http://apr.apache.org/ | |
9 | COMMENT= Apache Portable Runtime utilities | 9 | COMMENT= Apache Portable Runtime utilities | |
10 | 10 | |||
11 | PKG_DESTDIR_SUPPORT= user-destdir | 11 | PKG_DESTDIR_SUPPORT= user-destdir | |
12 | 12 | |||
13 | PKG_INSTALLATION_TYPES= overwrite pkgviews | 13 | PKG_INSTALLATION_TYPES= overwrite pkgviews | |
14 | 14 | |||
15 | GNU_CONFIGURE= yes | |||
16 | USE_LIBTOOL= yes | 15 | USE_LIBTOOL= yes | |
17 | USE_TOOLS+= pkg-config | 16 | USE_TOOLS+= pkg-config | |
18 | 17 | GNU_CONFIGURE= yes | ||
18 | CONFIGURE_ARGS+= --with-apr=${BUILDLINK_PREFIX.apr}/bin/apr-1-config | |||
19 | CONFIGURE_ARGS+= --with-expat=${BUILDLINK_PREFIX.expat} | |||
20 | CONFIGURE_ARGS+= --without-gdbm | |||
21 | CONFIGURE_ARGS+= --without-sqlite3 | |||
19 | PKGCONFIG_OVERRIDE+= apr-util.pc.in | 22 | PKGCONFIG_OVERRIDE+= apr-util.pc.in | |
20 | 23 | |||
21 | CONFIGURE_ARGS+= \ | 24 | MAKE_ENV+= WRAPPER_DIR=${WRAPPER_DIR:Q} | |
22 | --with-apr=${BUILDLINK_PREFIX.apr}/bin/apr-1-config \ | |||
23 | --with-expat=${BUILDLINK_PREFIX.expat} \ | |||
24 | --without-gdbm --without-sqlite3 | |||
25 | MAKE_ENV+= WRAPPER_DIR=${WRAPPER_DIR:Q} | |||
26 | 25 | |||
27 | .include "../../mk/bsd.prefs.mk" | 26 | .include "../../mk/bsd.prefs.mk" | |
28 | .include "options.mk" | 27 | .include "options.mk" | |
29 | 28 | |||
30 | .include "../../converters/libiconv/buildlink3.mk" | 29 | .include "../../converters/libiconv/buildlink3.mk" | |
31 | .include "../../devel/apr/buildlink3.mk" | 30 | .include "../../devel/apr/buildlink3.mk" | |
32 | .include "../../textproc/expat/buildlink3.mk" | 31 | .include "../../textproc/expat/buildlink3.mk" | |
33 | .include "../../mk/bsd.pkg.mk" | 32 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.2 2008/09/06 16:39:58 wiz Exp $ | 1 | @comment $NetBSD: PLIST,v 1.3 2008/09/08 09:58:43 adam Exp $ | |
2 | bin/apu-1-config | 2 | bin/apu-1-config | |
3 | include/apr-1/apr_anylock.h | 3 | include/apr-1/apr_anylock.h | |
4 | include/apr-1/apr_base64.h | 4 | include/apr-1/apr_base64.h | |
5 | include/apr-1/apr_buckets.h | 5 | include/apr-1/apr_buckets.h | |
6 | include/apr-1/apr_date.h | 6 | include/apr-1/apr_date.h | |
7 | include/apr-1/apr_dbd.h | 7 | include/apr-1/apr_dbd.h | |
8 | include/apr-1/apr_dbm.h | 8 | include/apr-1/apr_dbm.h | |
9 | include/apr-1/apr_hooks.h | 9 | include/apr-1/apr_hooks.h | |
10 | include/apr-1/apr_ldap.h | 10 | include/apr-1/apr_ldap.h | |
11 | include/apr-1/apr_ldap_init.h | 11 | include/apr-1/apr_ldap_init.h | |
12 | include/apr-1/apr_ldap_option.h | 12 | include/apr-1/apr_ldap_option.h | |
13 | include/apr-1/apr_ldap_rebind.h | 13 | include/apr-1/apr_ldap_rebind.h | |
14 | include/apr-1/apr_ldap_url.h | 14 | include/apr-1/apr_ldap_url.h | |
@@ -23,14 +23,19 @@ include/apr-1/apr_rmm.h | @@ -23,14 +23,19 @@ include/apr-1/apr_rmm.h | |||
23 | include/apr-1/apr_sdbm.h | 23 | include/apr-1/apr_sdbm.h | |
24 | include/apr-1/apr_sha1.h | 24 | include/apr-1/apr_sha1.h | |
25 | include/apr-1/apr_strmatch.h | 25 | include/apr-1/apr_strmatch.h | |
26 | include/apr-1/apr_thread_pool.h | 26 | include/apr-1/apr_thread_pool.h | |
27 | include/apr-1/apr_uri.h | 27 | include/apr-1/apr_uri.h | |
28 | include/apr-1/apr_uuid.h | 28 | include/apr-1/apr_uuid.h | |
29 | include/apr-1/apr_xlate.h | 29 | include/apr-1/apr_xlate.h | |
30 | include/apr-1/apr_xml.h | 30 | include/apr-1/apr_xml.h | |
31 | include/apr-1/apu.h | 31 | include/apr-1/apu.h | |
32 | include/apr-1/apu_version.h | 32 | include/apr-1/apu_version.h | |
33 | include/apr-1/apu_want.h | 33 | include/apr-1/apu_want.h | |
34 | lib/aprutil.exp | 34 | lib/aprutil.exp | |
35 | lib/libaprutil-1.la | 35 | lib/libaprutil-1.la | |
36 | ${PLIST.ldap}lib/apr-util-1/apr_ldap.la | |||
37 | ${PLIST.mysql}lib/apr-util-1/apr_dbd_mysql.la | |||
38 | ${PLIST.pgsql}lib/apr-util-1/apr_dbd_pgsql.la | |||
39 | ${PLIST.sqlite3}lib/apr-util-1/apr_dbd_sqlite3.la | |||
36 | lib/pkgconfig/apr-util-1.pc | 40 | lib/pkgconfig/apr-util-1.pc | |
41 | @unexec ${RMDIR} %D/lib/apr-util-1 2>/dev/null || ${TRUE} |
@@ -1,20 +1,40 @@ | @@ -1,20 +1,40 @@ | |||
1 | # $NetBSD: options.mk,v 1.1.1.1 2007/01/24 19:37:20 epg Exp $ | 1 | # $NetBSD: options.mk,v 1.2 2008/09/08 09:58:43 adam Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.apr-util | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.apr-util | |
4 | PKG_SUPPORTED_OPTIONS= db4 ldap | 4 | PKG_SUPPORTED_OPTIONS= db4 ldap mysql pgsql sqlite3 | |
5 | 5 | |||
6 | .include "../../mk/bsd.options.mk" | 6 | .include "../../mk/bsd.options.mk" | |
7 | 7 | |||
8 | PLIST_VARS+= ldap mysql pgsql sqlite3 | |||
9 | ||||
8 | .if !empty(PKG_OPTIONS:Mdb4) | 10 | .if !empty(PKG_OPTIONS:Mdb4) | |
9 | CONFIGURE_ARGS+= \ | 11 | CONFIGURE_ARGS+= \ | |
10 | --with-berkeley-db=${BUILDLINK_PREFIX.db4}/include:${LOCALBASE} | 12 | --with-berkeley-db=${BUILDLINK_PREFIX.db4}/include:${LOCALBASE} | |
11 | . include "../../databases/db4/buildlink3.mk" | 13 | . include "../../databases/db4/buildlink3.mk" | |
12 | .else | 14 | .else | |
13 | CONFIGURE_ARGS+= --with-dbm=sdbm | 15 | CONFIGURE_ARGS+= --with-dbm=sdbm | |
14 | .endif | 16 | .endif | |
15 | 17 | |||
16 | .if !empty(PKG_OPTIONS:Mldap) | 18 | .if !empty(PKG_OPTIONS:Mldap) | |
17 | CONFIGURE_ARGS+= --with-ldap | 19 | PLIST.ldap= yes | |
18 | CONFIGURE_ARGS+= --with-ldap | 20 | CONFIGURE_ARGS+= --with-ldap | |
19 | . include "../../databases/openldap-client/buildlink3.mk" | 21 | . include "../../databases/openldap-client/buildlink3.mk" | |
20 | .endif | 22 | .endif | |
23 | ||||
24 | .if !empty(PKG_OPTIONS:Mmysql) | |||
25 | PLIST.mysql= yes | |||
26 | CONFIGURE_ARGS+= --with-mysql | |||
27 | . include "../../mk/mysql.buildlink3.mk" | |||
28 | .endif | |||
29 | ||||
30 | .if !empty(PKG_OPTIONS:Mpgsql) | |||
31 | PLIST.pgsql= yes | |||
32 | CONFIGURE_ARGS+= --with-pgsql | |||
33 | . include "../../mk/pgsql.buildlink3.mk" | |||
34 | .endif | |||
35 | ||||
36 | .if !empty(PKG_OPTIONS:Msqlite3) | |||
37 | PLIST.sqlite3= yes | |||
38 | CONFIGURE_ARGS+= --with-sqlite3 | |||
39 | . include "../../databases/sqlite3/buildlink3.mk" | |||
40 | .endif |