What is the best way in FreeBSD to compile programm from ports if I need some custom configure arguments which is not present in default make config
window? For example I want compile php with --enable-intl flag
Asked
Active
Viewed 2,309 times
0

zim32
- 2,561
- 1
- 24
- 31
2 Answers
2
You can try
make configure CONFIGURE_ARGS=--enable-intl
but i'm not sure if it will work. If not, edit /usr/ports/lang/php5/Makefile
file and add --enable-intl
to CONFIGURE_ARGS
there. After that do not forget to make clean
.

arrowd
- 33,231
- 8
- 79
- 110
-
Thanks. I've edit Makefile by hands and than do make reinstall. All works fine – zim32 Aug 12 '12 at 16:37
-
Don't forget that you have to re-do this edit after every update of the ports tree! – Roland Smith Aug 15 '12 at 11:05
1
The proper way in this case is to install the extension: /usr/ports/devel/pecl-intl
.
Generally, if you want a configure option that it not in the port, the best way is to submit a patch for the port Makefile that includes it as an option. That way you don't have to worry about re-applying the patch after every ports tree update, and other people can benefit from it as well.

Roland Smith
- 42,427
- 3
- 64
- 94