# $Id: Portfile 33832 2008-02-06 18:05:50Z dluke@macports.org $ PortSystem 1.0 name apr-util version 1.2.12 categories devel maintainers dluke@geeklair.net platforms darwin description utilities built with the apache group's portability library long_description apr-util is a library of useful utilities built with \ and intended to be used with the Apache Portable Runtime. homepage http://apr.apache.org/ master_sites apache:apr use_bzip2 yes checksums md5 4ec0474c61113dcb57943916e7f53522 \ sha1 1e0e4215ce064544976d96118ab1e51100aab577 \ rmd160 5290770ae1a97b022d93f4596aa612130fee6187 depends_lib port:apr port:expat \ port:libiconv port:db44 \ port:sqlite3 configure.args --with-apr=${prefix}/bin/apr-1-config --with-expat=${prefix} \ --with-iconv=${prefix} --with-berkeley-db=${prefix}/include:${prefix}/lib/db44 \ --without-mysql --without-pgsql --with-sqlite3=${prefix} test.run yes test.target check test.env DYLD_LIBRARY_PATH=${worksrcpath}/.libs 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 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 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: ${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@prefix@/include/postgresql82 |" \ $worksrcpath/Makefile.in reinplace "s|^APRUTIL_LDFLAGS = |APRUTIL_LDFLAGS = -L@prefix@/lib/postgresql82 |" \ $worksrcpath/Makefile.in } } livecheck.check regex livecheck.url http://apache.org/dist/apr/ livecheck.regex {APR-util (\d+(?:\.\d+)*) is the latest available version}