Hi, quick question.. When installing apache, i used the following make WITH_CATEGORY1_MODULES="yes" WITH_CATEGORY2_MODULES="yes" etc.. etc and "make install clean" which seemed to work fine and install everything I wanted.. but when instealling vim using the NO_GUI="yes" option, it wanted to install X when i did "make install clean" using make NO_GUI="yes" install clean made it install without the gui... So my question is, should i pass the makefile options only when running "make" to compile the program (that would make sence wouldnt it?) or should i use them everytime i run make as in both when doing "make" and "make install clean".
> So my question is, should i pass the makefile options only when running > "make" to compile the program (that would make sence wouldnt it?) or should > i use them everytime i run make as in both when doing "make" and "make > install clean".I think your experience already showed you that the options have to be specified both when compiling and when installing. The reason is that when you run make a second time, the makefile gets parsed again and the dependencies are checked again. Even if you pass the same flags, new dependencies may still appear during the "make install" stage. These are run-time dependencies that were not required to build the port but must be present in order for it to function correctly. Thus, always pass the same options to make but do not be surprised if "make install" still pulls in new dependencies. - Bartosz
On Sat, Mar 10, 2007 at 08:28:45PM +0100, Daniel Mouritsen wrote:> So my question is, should i pass the makefile options only when running > "make" to compile the program (that would make sence wouldnt it?) or should > i use them everytime i run make as in both when doing "make" and "make > install clean".You can put the options in /etc/make.conf. That way you can't forget them when you're (re)building a port. For example, for apache22 you could put the following in /etc/make.conf: .if ${.CURDIR:M*/www/apache22} WITH_CATEGORY1_MODULES=yes WITH_CATEGORY2_MODULES=yes .endif This effectively sets the variables whenever make is invoked in a directory that ends with www/apache22. See make(1). Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20070310/66b9f445/attachment.pgp