Yes, I think that would be a good idea. I worked out how to enable it and it works great. 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. 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.
--
To reply to the mailing list, please use your mailer's Reply To All function
Hi Matt On 4/19/07, Matt Eckhaus <matt@wickedweasel.com> wrote:
Yes, I think that would be a good idea. I worked out how to enable it and it works great.
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]'.
There's an even easier way, provided the EDITOR environment variable points to your editor of choice... ;) Just do 'sudo port edit pkg-name', and substitute pkg-name with what ever package's portfile you want to edit. -- Kind regards, Andi
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.
On Apr 19, 2007, at 19:17, Ryan Schmidt wrote:
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?
Matt: Please let me know if adding this snippet to the php5 portfile and installing php5 with the +mssql variant works for you, so that I can apply the patch to the portfile and commit it. Thanks. variant mssql { depends_lib-append \ port:freetds configure.args-append \ --with-mssql=${prefix} }
On Apr 28, 2007, at 14:15, Ryan Schmidt wrote:
On Apr 19, 2007, at 19:17, Ryan Schmidt wrote:
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?
Matt: Please let me know if adding this snippet to the php5 portfile and installing php5 with the +mssql variant works for you, so that I can apply the patch to the portfile and commit it. Thanks.
variant mssql { depends_lib-append \ port:freetds configure.args-append \ --with-mssql=${prefix} }
On second thought: I've just committed that change (in r24586). So you can wait 12 hours and try "sudo port install php5 +mssql" and hopefully it will work. If it does not, please let me know so I can fix it.
Looks like it worked fine. Thanks. On 29/04/2007, at 5:19 AM, Ryan Schmidt wrote:
On Apr 28, 2007, at 14:15, Ryan Schmidt wrote:
On Apr 19, 2007, at 19:17, Ryan Schmidt wrote:
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?
Matt: Please let me know if adding this snippet to the php5 portfile and installing php5 with the +mssql variant works for you, so that I can apply the patch to the portfile and commit it. Thanks.
variant mssql { depends_lib-append \ port:freetds configure.args-append \ --with-mssql=${prefix} }
On second thought: I've just committed that change (in r24586). So you can wait 12 hours and try "sudo port install php5 +mssql" and hopefully it will work. If it does not, please let me know so I can fix it.
participants (3)
-
Andreas Wuest
-
Matt Eckhaus
-
Ryan Schmidt