How to use php5 port with MySQL5 binary?
Karl Timmermann
timmerk at comcast.net
Sat Apr 14 10:16:24 PDT 2007
Hello,
Does anyone know how to modify the php5 port file to let it work with
a binary install of MySQL5 that I installed using the installer found
on mysql.com? I think only part of the port file has to be changed:
variant mysql5 conflicts mysql3 mysql4 {
depends_lib-append \
port:mysql5
configure.args-delete \
--without-mysql
configure.args-append \
--with-mysql=${workpath}/mysql5 \
--with-pdo-mysql=${prefix}/bin/mysql_config5 \
--with-mysql-sock=${prefix}/var/run/mysql5/mysqld.sock \
--with-mysqli=${prefix}/bin/mysql_config5
post-extract {
file mkdir "${workpath}/mysql5"
file link -symbolic "${workpath}/mysql5/lib" "${prefix}/lib/mysql5"
file link -symbolic "${workpath}/mysql5/include" "${prefix}/include/
mysql5"
}
}
The mysql5 directory that the installer uses is: /usr/local/
mysql-5.0.37-osx10.4-i686/ and it contains the bin, lib, include,
data, etc folders. The sock file is at /tmp/mysqld.sock.
I would appreciate any help in changing the above to work with my
MySQL5 install.
Thanks!
Karl
More information about the macports-users
mailing list