source: trunk/dports/php/php5-postgresql/Portfile @ 55041

Last change on this file since 55041 was 55041, checked in by ryandesign@…, 10 years ago

php5extension-1.0.tcl: Now use phpize even for bundled extensions by default. This makes them configure faster and, more importantly, lets us make ports for several extensions which you can't build shared with the main configure script.

php5-curl, php5-gd, php5-gmp, php5-imap, php5-mcrypt, php5-pspell, php5-readline, php5-tidy, php5-xsl, php5-zlib: simplify configure arguments to match

php5-mssql, php5-mysql, php5-oracle, php5-postgresql, php5-sqlite: these still need to use the main configure script so they can build multiple extensions

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 55041 2009-08-06 09:41:03Z ryandesign@macports.org $
2
3PortSystem                      1.0
4PortGroup                       php5extension 1.0
5
6php5extension.setup             postgresql 5.3.0 bundled
7php5extension.use_phpize        no
8categories-append               databases
9platforms                       darwin
10maintainers                     ryandesign
11
12description                     a PHP interface to PostgreSQL, including \
13                                the pgsql and pdo_pgsql extensions
14
15long_description                ${description}
16
17checksums                       md5     846760cd655c98dfd86d6d97c3d964b0 \
18                                sha1    934700941d216c453376e3bf24347041cf12c6dc \
19                                rmd160  9a71b74052b0ca515f2ddf95c051b47a73d33f44
20
21configure.args-append           --enable-pdo
22
23use_parallel_build              yes
24
25variant postgresql82 conflicts postgresql83 postgresql84 description {Use PostgreSQL 8.2 libraries} {
26    depends_lib-append          port:postgresql82
27    configure.args-append       --with-pgsql=shared,${prefix}/lib/postgresql82/bin \
28                                --with-pdo-pgsql=shared,${prefix}/lib/postgresql82/bin
29}
30
31variant postgresql83 conflicts postgresql82 postgresql84 description {Use PostgreSQL 8.3 libraries} {
32    depends_lib-append          port:postgresql83
33    configure.args-append       --with-pgsql=shared,${prefix}/lib/postgresql83/bin \
34                                --with-pdo-pgsql=shared,${prefix}/lib/postgresql83/bin
35}
36
37variant postgresql84 conflicts postgresql82 postgresql83 description {Use PostgreSQL 8.4 libraries (default)} {
38    depends_lib-append          port:postgresql84
39    configure.args-append       --with-pgsql=shared,${prefix}/lib/postgresql84/bin \
40                                --with-pdo-pgsql=shared,${prefix}/lib/postgresql84/bin
41}
42
43if {![variant_isset postgresql82] && ![variant_isset postgresql83]} {
44    default_variants +postgresql84
45}
Note: See TracBrowser for help on using the repository browser.