source: trunk/dports/php/php5-mysql/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: 2.2 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             mysql 5.3.0 bundled
7php5extension.use_phpize        no
8categories-append               databases
9platforms                       darwin
10maintainers                     ryandesign
11
12description                     a PHP interface to MySQL databases, including \
13                                the mysql, mysqli and pdo_mysql extensions
14
15long_description                ${description}
16
17checksums                       md5     846760cd655c98dfd86d6d97c3d964b0 \
18                                sha1    934700941d216c453376e3bf24347041cf12c6dc \
19                                rmd160  9a71b74052b0ca515f2ddf95c051b47a73d33f44
20
21depends_lib-append              port:zlib
22
23configure.args-append           --with-zlib-dir=${prefix} \
24                                --enable-pdo
25
26use_parallel_build              yes
27
28variant mysqlnd conflicts mysql4 mysql5 description {Use MySQL Native Driver (default)} {
29    configure.args-append       --with-mysql=shared,mysqlnd \
30                                --with-mysqli=shared,mysqlnd \
31                                --with-pdo-mysql=shared,mysqlnd
32}
33
34variant mysql4 conflicts mysql5 mysqlnd description {Use MySQL 4 libraries} {
35    depends_lib-append          port:mysql4
36    configure.args-append       --with-mysql=shared,${prefix} \
37                                --with-pdo-mysql=shared,${prefix}
38}
39
40variant mysql5 conflicts mysql4 mysqlnd description {Use MySQL 5 libraries} {
41    depends_lib-append          path:bin/mysql_config5:mysql5
42    configure.args-append       --with-mysql=shared,${workpath}/mysql5 \
43                                --with-mysqli=shared,${prefix}/bin/mysql_config5 \
44                                --with-pdo-mysql=shared,${prefix}/bin/mysql_config5 \
45                                --with-mysql-sock=${prefix}/var/run/mysql5/mysqld.sock
46    post-extract {
47        file mkdir ${workpath}/mysql5
48        file link -symbolic ${workpath}/mysql5/lib ${prefix}/lib/mysql5
49        file link -symbolic ${workpath}/mysql5/include ${prefix}/include/mysql5
50    }
51}
52
53if {![variant_isset mysql4] && ![variant_isset mysql5]} {
54    default_variants +mysqlnd
55}
Note: See TracBrowser for help on using the repository browser.