[55336] trunk/dports/devel/apr-util/Portfile
dluke at macports.org
dluke at macports.org
Sun Aug 9 08:17:44 PDT 2009
Revision: 55336
http://trac.macports.org/changeset/55336
Author: dluke at macports.org
Date: 2009-08-09 08:17:41 -0700 (Sun, 09 Aug 2009)
Log Message:
-----------
Add postgresql84 variant to apr-util
Modified Paths:
--------------
trunk/dports/devel/apr-util/Portfile
Modified: trunk/dports/devel/apr-util/Portfile
===================================================================
--- trunk/dports/devel/apr-util/Portfile 2009-08-09 12:53:41 UTC (rev 55335)
+++ trunk/dports/devel/apr-util/Portfile 2009-08-09 15:17:41 UTC (rev 55336)
@@ -62,7 +62,22 @@
reinplace "s|^Libs: |Libs: ${extralibs} |" $worksrcpath/apr-util.pc.in
}
-variant postgresql83 description {Build with postgres support (using postgresql v8.3)} conflicts postgresql82 {
+variant postgresql84 description {Build with postgres support (using postgresql v8.4)} conflicts postgresql82 postgresql83 {
+ depends_lib-append port:postgresql84
+ configure.args-delete --without-pgsql
+ configure.args-append --with-pgsql=yes
+ configure.cppflags-append "-I${prefix}/include/postgresql84"
+ configure.ldflags-append "-L${prefix}/lib/postgresql84"
+ post-patch {
+ set extralibs "${extralibs} -L${prefix}/lib/postgresql84"
+ reinplace "s|^INCLUDES = |INCLUDES = -I at prefix@/include/postgresql84 |" \
+ $worksrcpath/Makefile.in
+ reinplace "s|^APRUTIL_LDFLAGS = |APRUTIL_LDFLAGS = -L at prefix@/lib/postgresql84 |" \
+ $worksrcpath/Makefile.in
+ }
+ }
+
+variant postgresql83 description {Build with postgres support (using postgresql v8.3)} conflicts postgresql82 postgresql84 {
depends_lib-append port:postgresql83
configure.args-delete --without-pgsql
configure.args-append --with-pgsql=yes
@@ -77,7 +92,7 @@
}
}
-variant postgresql82 description {Build with postgres support (using postgresql v8.2)} conflicts postgresql83 {
+variant postgresql82 description {Build with postgres support (using postgresql v8.2)} conflicts postgresql83 postgresql84 {
depends_lib-append port:postgresql82
configure.args-delete --without-pgsql
configure.args-append --with-pgsql=yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090809/669ec8da/attachment.html>
More information about the macports-changes
mailing list