ports structure and improvement suggestions

Ulrich Spoerlein uspoerlein at gmail.com
Tue May 9 14:59:06 UTC 2006


Florent Thoumie wrote:
> On Tue, 2006-05-09 at 13:14 +0200, Ulrich Spoerlein wrote:
> > .if ${.CURDIR:M*/audio/amarok}
> > WITH_XINE=      true
> > #...
> > .endif
> 
> 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


Ach, you gotta love those evil twisted .for-loops in make. Who came up
with the unroll-first-parse-later strategy?

Ulrich Spoerlein
-- 
 PGP Key ID: 20FEE9DD				Encrypted mail welcome!
Fingerprint: AEC9 AF5E 01AC 4EE1 8F70  6CBD E76E 2227 20FE E9DD
Which is worse: ignorance or apathy?
Don't know. Don't care.
-------------- 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-ports/attachments/20060509/2a2373b8/attachment.pgp


More information about the freebsd-ports mailing list