ports structure and improvement suggestions

Florent Thoumie flz at xbsd.org
Tue May 9 14:01:14 UTC 2006


On Tue, 2006-05-09 at 13:14 +0200, Ulrich Spoerlein wrote:

> You can already do this with make(1)-magic in /etc/make.conf. This is
> also guaranteed to work, whereas the pkgtools.conf approach is flawed.
> 
> 
> .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

Note: I think it should work with wildcards.

-- 
Florent Thoumie
flz at FreeBSD.org
FreeBSD Committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060509/b72b8579/attachment.pgp


More information about the freebsd-ports mailing list