[32163] trunk/dports/devel/apr-util/Portfile
dluke at macports.org
dluke at macports.org
Tue Dec 18 10:38:32 PST 2007
Revision: 32163
http://trac.macosforge.org/projects/macports/changeset/32163
Author: dluke at macports.org
Date: 2007-12-18 10:38:31 -0800 (Tue, 18 Dec 2007)
Log Message:
-----------
Add variant descriptions and a new variant for postgresql82 support.
Modified Paths:
--------------
trunk/dports/devel/apr-util/Portfile
Modified: trunk/dports/devel/apr-util/Portfile
===================================================================
--- trunk/dports/devel/apr-util/Portfile 2007-12-18 16:29:45 UTC (rev 32162)
+++ trunk/dports/devel/apr-util/Portfile 2007-12-18 18:38:31 UTC (rev 32163)
@@ -29,30 +29,47 @@
test.target check
test.env DYLD_LIBRARY_PATH=${worksrcpath}/.libs
-variant no_bdb {
+variant no_bdb description {Build without BerkeleyDB support} {
depends_lib-delete port:db44
configure.args-delete --with-berkeley-db=${prefix}/include:${prefix}/lib/db44
configure.args-append --without-berkeley-db
}
-variant no_sqlite {
+variant no_sqlite description {Build without sqlite support} {
depends_lib-delete port:sqlite3
configure.args-delete --with-sqlite3=${prefix}
configure.args-append --without-sqlite2 \
--without-sqlite3
}
-variant openldap {
+variant openldap description {Build with OpenLDAP support} {
depends_lib-append port:openldap
configure.args-append --with-ldap \
--with-ldap-include=${prefix}/include \
--with-ldap-lib=${prefix}/lib
}
+set extralibs "-L${prefix}/lib/db44"
+
pre-configure {
- reinplace "s|^Libs: |Libs: -L${prefix}/lib/db44 |" $worksrcpath/apr-util.pc.in
+ reinplace "s|^Libs: |Libs: ${extralibs} |" $worksrcpath/apr-util.pc.in
}
+variant postgresql82 description {Build with postgres support (using postgresql v8.2)} {
+ depends_lib-append port:postgresql82
+ configure.args-delete --without-pgsql
+ configure.args-append --with-pgsql=yes
+ configure.cppflags-append "-I${prefix}/include/postgresql82"
+ configure.ldflags-append "-L${prefix}/lib/postgresql82"
+ post-patch {
+ set extralibs "${extralibs} -L${prefix}/lib/postgresql82"
+ reinplace "s|^INCLUDES = |INCLUDES = -I at prefix@/include/postgresql82 |" \
+ $worksrcpath/Makefile.in
+ reinplace "s|^APRUTIL_LDFLAGS = |APRUTIL_LDFLAGS = -L at prefix@/lib/postgresql82 |" \
+ $worksrcpath/Makefile.in
+ }
+ }
+
livecheck.check regex
livecheck.url http://apache.org/dist/apr/
livecheck.regex {<a href="#aprutil">APR-util (\d+(?:\.\d+)*) is the latest available version</a>}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071218/1a3c8a88/attachment.html
More information about the macports-changes
mailing list