source: trunk/dports/php/php5-mysql/Portfile @ 54566

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

php5-mysql: new port; see #19091

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 54566 2009-07-29 16:09:48Z ryandesign@macports.org $
2
3PortSystem                      1.0
4PortGroup                       php5extension 1.0
5
6php5extension.setup             mysql 5.3.0 bundled
7categories-append               databases
8platforms                       darwin
9maintainers                     ryandesign
10
11description                     a PHP interface to MySQL databases, including \
12                                the mysql, mysqli and pdo_mysql extensions
13
14long_description                ${description}
15
16checksums                       md5     846760cd655c98dfd86d6d97c3d964b0 \
17                                sha1    934700941d216c453376e3bf24347041cf12c6dc \
18                                rmd160  9a71b74052b0ca515f2ddf95c051b47a73d33f44
19
20depends_lib-append              port:zlib
21
22configure.args-append           --with-zlib-dir=${prefix} \
23                                --enable-pdo
24
25use_parallel_build              yes
26
27variant mysqlnd conflicts mysql4 mysql5 description {Use MySQL Native Driver (default)} {
28    configure.args-append       --with-mysql=shared,mysqlnd \
29                                --with-mysqli=shared,mysqlnd \
30                                --with-pdo-mysql=shared,mysqlnd
31}
32
33variant mysql4 conflicts mysql5 mysqlnd description {Use MySQL 4 libraries} {
34    depends_lib-append          port:mysql4
35    configure.args-append       --with-mysql=shared,${prefix} \
36                                --with-pdo-mysql=shared,${prefix}
37}
38
39variant mysql5 conflicts mysql4 mysqlnd description {Use MySQL 5 libraries} {
40    depends_lib-append          path:bin/mysql_config5:mysql5
41    configure.args-append       --with-mysql=shared,${workpath}/mysql5 \
42                                --with-mysqli=shared,${prefix}/bin/mysql_config5 \
43                                --with-pdo-mysql=shared,${prefix}/bin/mysql_config5 \
44                                --with-mysql-sock=${prefix}/var/run/mysql5/mysqld.sock
45    post-extract {
46        file mkdir ${workpath}/mysql5
47        file link -symbolic ${workpath}/mysql5/lib ${prefix}/lib/mysql5
48        file link -symbolic ${workpath}/mysql5/include ${prefix}/include/mysql5
49    }
50}
51
52if {![variant_isset mysql4] && ![variant_isset mysql5]} {
53    default_variants +mysqlnd
54}
Note: See TracBrowser for help on using the repository browser.