0

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

zim32
  • 2,561
  • 1
  • 24
  • 31

2 Answers2

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
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