Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 May 2006 15:00:53 +0100
From:      Florent Thoumie <flz@xbsd.org>
To:        Ulrich Spoerlein <uspoerlein@gmail.com>
Cc:        Sideris Michael <msid@daemons.gr>, freebsd-ports@freebsd.org, Jeremy Chadwick <freebsd@jdc.parodius.com>
Subject:   Re: ports structure and improvement suggestions
Message-ID:  <1147183253.4810.38.camel@mayday.esat.net>
In-Reply-To: <20060509111435.GA1228@roadrunner.aventurien.local>
References:  <20060508200926.GA6005@daemons.gr> <20060509061026.GA14039@pentarou.parodius.com> <20060509111435.GA1228@roadrunner.aventurien.local>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-A0UODfUKCs1TVyyuyJEd
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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.
>=20
>=20
> .if ${.CURDIR:M*/audio/amarok}
> WITH_XINE=3D      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:

=3D=3D=3D snip =3D=3D=3D
.if ${.CURDIR:N/usr/ports/*}=3D=3D""
_MKCONF!=3Dmkconf
.for i in ${_MKCONF}
${i}
.endfor
.endif
=3D=3D=3D snip =3D=3D=3D

- Create a /etc/ports.conf file with lines like:
www/apache20: WITH_FOO=3Dyes WITH_BAR=3Dno

Note: I think it should work with wildcards.

--=20
Florent Thoumie
flz@FreeBSD.org
FreeBSD Committer

--=-A0UODfUKCs1TVyyuyJEd
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQBEYKCVMxEkbVFH3PQRAhfyAJ9HllHPzha4Xpynym6Mcr0RsAsiDACghydK
4ZWQyEFMjXbNhRKrJP3zcJ8=
=uLW2
-----END PGP SIGNATURE-----

--=-A0UODfUKCs1TVyyuyJEd--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1147183253.4810.38.camel>