On Apr 18, 2007, at 23:10, Matt Eckhaus wrote:
On 19/04/2007, at 1:47 PM, Ryan Schmidt wrote:
On Apr 18, 2007, at 21:50, Matt Eckhaus wrote:
Is there any way to pass an extra GNU configure option to "port install"?
Specifically, I want it to configure php5 with "--with-mssql=/opt/ local" to make it pick up freeTDS.
So, we should add a freetds variant to the php5 port.
Yes, I think that would be a good idea. I worked out how to enable it and it works great.
Is it something like this patch? Index: Portfile =================================================================== --- Portfile (revision 24193) +++ Portfile (working copy) @@ -161,6 +161,13 @@ --enable-memory-limit } +variant mssql { + depends_lib-append \ + freetds + configure.args-append \ + --with-mssql=${prefix} +} + variant snmp conflicts macports_snmp { # This compiles PHP5 with SNMP linked against Apple's included NET-SNMP. configure.args-append \ I would be happy to commit that patch if it solves the problem. Let me know if that's it or if any additional changes are necessary.
To answer my own original question: to change the GNU configure options, edit the Portfile for the package you are installing. You can find the portfile by running 'port file [packagename]'.
I'm mentioning it here for posterity - it doesn't seem to be included in any MacPorts documentation - I found it on an archive of a DarwinPorts list.
"man port" explains "port file" and others.