New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

root/trunk/dports/devel/apr-util/Portfile

Revision 52383, 3.5 KB (checked in by dluke@…, 3 weeks ago)

use a path dependency so mysql5-devel works for the mysql5 variant as well (fixes #19948)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1# $Id$
2
3PortSystem 1.0
4
5name            apr-util
6version         1.3.7
7categories      devel
8maintainers     geeklair.net:dluke
9platforms       darwin
10description     utilities built with the apache group's portability library
11
12long_description        apr-util is a library of useful utilities built with \
13                        and intended to be used with the Apache Portable Runtime.
14
15homepage        http://apr.apache.org/
16master_sites    apache:apr
17use_bzip2       yes
18checksums       md5     2ed3ae6734290296faa193e1177d50e6 \
19                sha1    7fb9be40c978bf912d459342ec99f2bbd4235fa8 \
20                rmd160  7fc6c43d06d643298e30915bf83afd37d5456ce2
21
22depends_lib     port:apr port:expat \
23                port:libiconv port:db46 \
24                port:sqlite3
25
26use_parallel_build      yes
27configure.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
31test.run        yes
32test.target     check
33test.env        DYLD_LIBRARY_PATH=${worksrcpath}/.libs
34pre-test        {
35        use_parallel_build      no
36}
37
38
39variant 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
45variant 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
52variant 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
59set extralibs   "-L${prefix}/lib/db46"
60
61pre-configure   {
62                        reinplace "s|^Libs: |Libs: ${extralibs} |" $worksrcpath/apr-util.pc.in
63                }
64
65variant 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
80variant 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
95variant 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
102livecheck.check regex
103livecheck.url   http://apache.org/dist/apr/
104livecheck.regex {<a href="#aprutil">APR-util (\d+(?:\.\d+)*) is the latest available version</a>}
Note: See TracBrowser for help on using the browser.