# $Id: Portfile 55041 2009-08-06 09:41:03Z ryandesign@macports.org $ PortSystem 1.0 PortGroup php5extension 1.0 php5extension.setup mysql 5.3.0 bundled php5extension.use_phpize no categories-append databases platforms darwin maintainers ryandesign description a PHP interface to MySQL databases, including \ the mysql, mysqli and pdo_mysql extensions long_description ${description} checksums md5 846760cd655c98dfd86d6d97c3d964b0 \ sha1 934700941d216c453376e3bf24347041cf12c6dc \ rmd160 9a71b74052b0ca515f2ddf95c051b47a73d33f44 depends_lib-append port:zlib configure.args-append --with-zlib-dir=${prefix} \ --enable-pdo use_parallel_build yes variant mysqlnd conflicts mysql4 mysql5 description {Use MySQL Native Driver (default)} { configure.args-append --with-mysql=shared,mysqlnd \ --with-mysqli=shared,mysqlnd \ --with-pdo-mysql=shared,mysqlnd } variant mysql4 conflicts mysql5 mysqlnd description {Use MySQL 4 libraries} { depends_lib-append port:mysql4 configure.args-append --with-mysql=shared,${prefix} \ --with-pdo-mysql=shared,${prefix} } variant mysql5 conflicts mysql4 mysqlnd description {Use MySQL 5 libraries} { depends_lib-append path:bin/mysql_config5:mysql5 configure.args-append --with-mysql=shared,${workpath}/mysql5 \ --with-mysqli=shared,${prefix}/bin/mysql_config5 \ --with-pdo-mysql=shared,${prefix}/bin/mysql_config5 \ --with-mysql-sock=${prefix}/var/run/mysql5/mysqld.sock post-extract { file mkdir ${workpath}/mysql5 file link -symbolic ${workpath}/mysql5/lib ${prefix}/lib/mysql5 file link -symbolic ${workpath}/mysql5/include ${prefix}/include/mysql5 } } if {![variant_isset mysql4] && ![variant_isset mysql5]} { default_variants +mysqlnd }