Ticket #6563: apr-util-patch.txt

File apr-util-patch.txt, 942 bytes (added by blair (Blair Zajac), 18 years ago)

Add an openldap variant and disable inadvertent linking against mysql and pgsql

Line 
1--- /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/apr-util/Portfile        2006-01-18 15:42:58.000000000 -0800
2+++ ./Portfile  2006-01-22 21:19:44.000000000 -0800
3@@ -3,6 +3,7 @@
4 PortSystem 1.0
5 name           apr-util
6 version                1.2.2
7+revision       1
8 categories     devel
9 maintainers    dluke@geeklair.net
10 description    utilities built with the apache group's portability library
11@@ -20,7 +21,15 @@
12 
13 configure.env  CPPFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib
14 configure.args --with-apr=${prefix}/bin/apr-1-config --with-expat=${prefix} \
15-               --with-iconv=${prefix} --with-berkeley-db=${prefix}
16+               --with-iconv=${prefix} --with-berkeley-db=${prefix} \
17+               --without-mysql --without-pgsql
18+
19+variant openldap {
20+                       depends_lib-append port:openldap
21+                       configure.args-append --with-ldap \
22+                               --with-ldap-include=${prefix}/include \
23+                               --with-ldap-lib=${prefix}/lib
24+               }
25 
26 variant no_bdb {
27                        depends_lib-delete port:db4