ports structure and improvement suggestions

Fernan Aguero fernan at iib.unsam.edu.ar
Tue May 9 21:21:18 UTC 2006


+----[ Florent Thoumie <flz at xbsd.org> (09.May.2006 11:03):
|
| I think you guys aren't lazy enough.
| 
| - Put http://people.freebsd.org/~flz/local/mkconf somewhere in ${PATH}.
| - Add the following to /etc/make.conf:
| 
| === snip ===
| .if ${.CURDIR:N/usr/ports/*}==""
| _MKCONF!=mkconf
| .for i in ${_MKCONF}
| ${i}
| .endfor
| .endif
| === snip ===
| 
| - Create a /etc/ports.conf file with lines like:
| www/apache20: WITH_FOO=yes WITH_BAR=no
|
+----]

Florent,

first of all thanks for sharing this!

Now, i see this works fine for WITH_X=yes stuff, but it's
not working for me with the following case:

x11/xterm: CONFIGURE_ARGS=--disable-bold-color --enable-256-color --enable-tcap-query

or this (now quoted)

x11/xterm: CONFIGURE_ARGS='--disable-bold-color --enable-256-color --enable-tcap-query'


This is the error I get:
"/etc/make.conf", line 16: Need an operator
"/etc/make.conf", line 16: Need an operator
make: fatal errors encountered -- cannot continue



However, without using ports.conf, I can do

cd /usr/ports/x11/xterm
make CONFIGURE_ARGS='--disable-bold-color --enable-256-color --enable-tcap-query'

and it will get the configure args right. 

My makefile magic knowledge is limited so perhaps I'm
missing something obvious.

Fernan


More information about the freebsd-ports mailing list