« Storing Previous Compilation Options: mod_php4 and make | Main | MyXAML: Open Source XAML »
March 03, 2004
/usr/local/etc/pkgtools.conf
In order to have the mod_php4 port build with the same settings everytime the port is upgraded, the solution is quite simple.
Open /usr/local/etc/pkgtools.conf with your text editor, 'ee' works fine for me.
Go to the MAKE_ARGS section and add the following to the MAKE_ARGS hash. Of course you will want to adjust it to the option you will usually compile.
MAKE_ARGS = {
'www/mod_php4' => 'WITH_BZIP2=yes WITH_CALENDAR=yes WITH_CTYPE=yes WITH_CURL=yes WITH_GDBM=yes WITH_INIFILE=yes WITH_MCRYPT=yes WITH_MYSQL=yes WITH_OP
}
The next time you execute /usr/local/sbin/portupgrade mod_php4 the above parameters will be used to build php4, instead of the configuration screen. Yeah!
This was a follow-up post to my previous rant and is actually a much cleaner solution.
Posted by 0xFF3300 at March 3, 2004 04:48 PM
Trackback Pings
TrackBack URL for this entry:
http://www.dudeforce.net/cgi-bin/mt-tb.cgi/47
Listed below are links to weblogs that reference /usr/local/etc/pkgtools.conf:
Comments
Post a comment
Thanks for signing in, . Now you can comment. (sign out)
(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)