Date: Sat, 29 Dec 2001 12:43:20 -0600 From: "Scot W. Hetzel" <hetzels@westbend.net> To: "Alan Eldridge" <alane@geeksrus.net>, "Simon 'corecode' Schubert" <corecode@corecode.ath.cx> Cc: "Maxim Sobolev" <sobomax@FreeBSD.ORG>, <jeh@FreeBSD.ORG>, <mi@aldan.algebra.com>, <joseph@randomnetworks.com>, <lioux@FreeBSD.ORG>, <ports@FreeBSD.ORG> Subject: Re: PORTOPTIONS Message-ID: <001f01c19098$b056ecc0$11fd2fd8@westbend.net> References: <200112282206.fBSM6kf36064@aldan.algebra.com> <1009581412.225.2.camel@notebook> <3C2D18FB.855F80EC@FreeBSD.org> <1009610598.225.7.camel@notebook> <20011229155716.37dfba55.corecode@corecode.ath.cx> <20011229153541.GB52997@wwweasel.geeksrus.net>
next in thread | previous in thread | raw e-mail | index | archive | help
From: "Alan Eldridge" <alane@geeksrus.net> > On Sat, Dec 29, 2001 at 03:57:16PM +0100, Simon 'corecode' Schubert wrote: > >On 29 Dec 2001 09:25:54 +0200 Maxim Sobolev <sobomax@FreeBSD.ORG> wrote: > >> For example: > >> > >> PORTOPTIONS= WITH_FOO WITHOUT_BAR > >> > >> The Makefile obviously should recognize those options, enable/disable > >> approprite features, set sensible PKGNAMESUFFIXes, etc. > >> > > > >actually there should be 4 packages: standard, +foo, -bar, +foo-bar > > > >this is indeed a good idea and i've been thinking about some kind of > >this a while now. if there is a way to: > > >o set all possilbe permutations (can be very much) > > Ouch! Umm, let's think about (bento and other) build times..... > > >o set all "reasonable" permutations > > >o except the mutually exclusive permutations (could result in too much > >packages tho) > > IOW, we need to introduce some kind of conflict management. This ought to be > general enough to handle the case of "don't do foo/spacely -with-sprockets in > conjuction with bar/cogswell --with-cogs". > Get rid of the WITH_/WITHOUT_ prefixes and just use +/- to enable/disable options: PORTOPTIONS= NONE +FOO -BAR +FOO-BAR The above would then create the 4 packages: standard, +foo, -bar, +foo-bar. This way the port maintainer can specify which packages bento can build, without bento having to create a package for each combination of options. > >also, if the chosen options (in gereral, whilst building) are recorded > >in the package description in /var/db/ there is a easy way to > > Yep. What about ports that with dialog/xdialog (like ghostscript-gnu and the > php ports)? > These port options would need to be passed to the configure scripts via the SCRIPTS_ENV variable. The security/cyrus-sasl port currently has this capability to pass port options to its configure script. The configure script bypasses the dialog/xdialog menu when BATCH is defined (see the security/cyrus-sasl ports Makefile & scripts/configure.sasl for an example). cd /usr/ports/security/cyrus-sasl make configure -DBATCH ENABLE_DB3=YES Will cause the port to configure it self with a dependency on the db3 port in batch mode and without the dialog menu showing. NOTE: I'll rename them to WITH_ in the next port upgrade. Scot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001f01c19098$b056ecc0$11fd2fd8>