|
Author: CJN
Date: 28-09-06 09:36
How to install port with extra options? I mean the options which exist in original tarball but not in port's Makefile.
For example,
I want to build PHP 4.4.4 with --enable-experimental-zts. How to do it with port?
CJN
|
|
Reply To This Message
|
|
Author: Dan
Date: 28-09-06 11:24
flz told me the answer:
Use the environment variable CONFIGURE_ARGS. How you set it depends on your shell. It might be one of:
env CONFIGURE_ARGS=--foo
export CONFIGURE_ARGS=--foo
But most of the time, CONFIGURE_ARGS is set with '=' in the port, so you need to modify the Makefile and replace CONFIGURE_ARGS= with CONFIGURE_ARGS+=
--
The Man Behind The Curtain
|
|
Reply To This Message
|
|
Author: CJN
Date: 28-09-06 12:08
Currently I did modified the Makefile to make it works, however it will be
gone when the port is updated.
Also, I would like to know if theres a method to do in pkgtools.conf, so that
the options will be valid when doing portupgrade.
|
|
Reply To This Message
|
|
Author: Dan
Date: 28-09-06 14:00
Cydex said:
Modifying configure arguments isn't really supported by the ports framework. Perhaps you should submit a patch, either to add that feature to OPTIONS, or change CONFIGURE_ARGS to use +=
--
The Man Behind The Curtain
|
|
Reply To This Message
|
|
Author: Dan
Date: 29-09-06 11:27
CJN wrote:
> Are you meaning there is no way to do this by command line?
AFAIK, if the Makefile does not do CONFIGURE_ARGS +=, there's no day.
--
The Man Behind The Curtain
|
|
Reply To This Message
|
|
Author: Dan
Date: 29-09-06 11:30
To clarify, yes you can use the command line using something like this
env CONFIGURE_ARGS=--foo
export CONFIGURE_ARGS=--foo
BUT ONLY if the Makefile does *not* contain a CONFIGURE_ARGS= statement.
--
The Man Behind The Curtain
|
|
Reply To This Message
|
|