| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name apr-util |
|---|
| 6 | version 1.3.7 |
|---|
| 7 | categories devel |
|---|
| 8 | maintainers geeklair.net:dluke |
|---|
| 9 | platforms darwin |
|---|
| 10 | description utilities built with the apache group's portability library |
|---|
| 11 | |
|---|
| 12 | long_description apr-util is a library of useful utilities built with \ |
|---|
| 13 | and intended to be used with the Apache Portable Runtime. |
|---|
| 14 | |
|---|
| 15 | homepage http://apr.apache.org/ |
|---|
| 16 | master_sites apache:apr |
|---|
| 17 | use_bzip2 yes |
|---|
| 18 | checksums md5 2ed3ae6734290296faa193e1177d50e6 \ |
|---|
| 19 | sha1 7fb9be40c978bf912d459342ec99f2bbd4235fa8 \ |
|---|
| 20 | rmd160 7fc6c43d06d643298e30915bf83afd37d5456ce2 |
|---|
| 21 | |
|---|
| 22 | depends_lib port:apr port:expat \ |
|---|
| 23 | port:libiconv port:db46 \ |
|---|
| 24 | port:sqlite3 |
|---|
| 25 | |
|---|
| 26 | use_parallel_build yes |
|---|
| 27 | configure.args --with-apr=${prefix}/bin/apr-1-config --with-expat=${prefix} \ |
|---|
| 28 | --with-iconv=${prefix} --with-berkeley-db=${prefix}/include:${prefix}/lib/db46 \ |
|---|
| 29 | --without-mysql --without-pgsql --with-sqlite3=${prefix} |
|---|
| 30 | |
|---|
| 31 | test.run yes |
|---|
| 32 | test.target check |
|---|
| 33 | test.env DYLD_LIBRARY_PATH=${worksrcpath}/.libs |
|---|
| 34 | pre-test { |
|---|
| 35 | use_parallel_build no |
|---|
| 36 | } |
|---|
| 37 | |
|---|
| 38 | |
|---|
| 39 | variant no_bdb description {Build without BerkeleyDB support} { |
|---|
| 40 | depends_lib-delete port:db46 |
|---|
| 41 | configure.args-delete --with-berkeley-db=${prefix}/include:${prefix}/lib/db46 |
|---|
| 42 | configure.args-append --without-berkeley-db |
|---|
| 43 | } |
|---|
| 44 | |
|---|
| 45 | variant no_sqlite description {Build without sqlite support} { |
|---|
| 46 | depends_lib-delete port:sqlite3 |
|---|
| 47 | configure.args-delete --with-sqlite3=${prefix} |
|---|
| 48 | configure.args-append --without-sqlite2 \ |
|---|
| 49 | --without-sqlite3 |
|---|
| 50 | } |
|---|
| 51 | |
|---|
| 52 | variant openldap description {Build with OpenLDAP support} { |
|---|
| 53 | depends_lib-append port:openldap |
|---|
| 54 | configure.args-append --with-ldap \ |
|---|
| 55 | --with-ldap-include=${prefix}/include \ |
|---|
| 56 | --with-ldap-lib=${prefix}/lib |
|---|
| 57 | } |
|---|
| 58 | |
|---|
| 59 | set extralibs "-L${prefix}/lib/db46" |
|---|
| 60 | |
|---|
| 61 | pre-configure { |
|---|
| 62 | reinplace "s|^Libs: |Libs: ${extralibs} |" $worksrcpath/apr-util.pc.in |
|---|
| 63 | } |
|---|
| 64 | |
|---|
| 65 | variant postgresql83 description {Build with postgres support (using postgresql v8.3)} conflicts postgresql82 { |
|---|
| 66 | depends_lib-append port:postgresql83 |
|---|
| 67 | configure.args-delete --without-pgsql |
|---|
| 68 | configure.args-append --with-pgsql=yes |
|---|
| 69 | configure.cppflags-append "-I${prefix}/include/postgresql83" |
|---|
| 70 | configure.ldflags-append "-L${prefix}/lib/postgresql83" |
|---|
| 71 | post-patch { |
|---|
| 72 | set extralibs "${extralibs} -L${prefix}/lib/postgresql83" |
|---|
| 73 | reinplace "s|^INCLUDES = |INCLUDES = -I@prefix@/include/postgresql83 |" \ |
|---|
| 74 | $worksrcpath/Makefile.in |
|---|
| 75 | reinplace "s|^APRUTIL_LDFLAGS = |APRUTIL_LDFLAGS = -L@prefix@/lib/postgresql83 |" \ |
|---|
| 76 | $worksrcpath/Makefile.in |
|---|
| 77 | } |
|---|
| 78 | } |
|---|
| 79 | |
|---|
| 80 | variant postgresql82 description {Build with postgres support (using postgresql v8.2)} conflicts postgresql83 { |
|---|
| 81 | depends_lib-append port:postgresql82 |
|---|
| 82 | configure.args-delete --without-pgsql |
|---|
| 83 | configure.args-append --with-pgsql=yes |
|---|
| 84 | configure.cppflags-append "-I${prefix}/include/postgresql82" |
|---|
| 85 | configure.ldflags-append "-L${prefix}/lib/postgresql82" |
|---|
| 86 | post-patch { |
|---|
| 87 | set extralibs "${extralibs} -L${prefix}/lib/postgresql82" |
|---|
| 88 | reinplace "s|^INCLUDES = |INCLUDES = -I@prefix@/include/postgresql82 |" \ |
|---|
| 89 | $worksrcpath/Makefile.in |
|---|
| 90 | reinplace "s|^APRUTIL_LDFLAGS = |APRUTIL_LDFLAGS = -L@prefix@/lib/postgresql82 |" \ |
|---|
| 91 | $worksrcpath/Makefile.in |
|---|
| 92 | } |
|---|
| 93 | } |
|---|
| 94 | |
|---|
| 95 | variant mysql5 description {Build with MySQL5 suppoprt} { |
|---|
| 96 | depends_lib-append path:bin/mysql_config5:mysql5 |
|---|
| 97 | configure.args-delete --without-mysql |
|---|
| 98 | configure.args-append --with-mysql=yes |
|---|
| 99 | configure.env-append MYSQL_CONFIG=${prefix}/bin/mysql_config5 |
|---|
| 100 | } |
|---|
| 101 | |
|---|
| 102 | livecheck.check regex |
|---|
| 103 | livecheck.url http://apache.org/dist/apr/ |
|---|
| 104 | livecheck.regex {<a href="#aprutil">APR-util (\d+(?:\.\d+)*) is the latest available version</a>} |
|---|