Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Jun 2013 17:20:29 -0500
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Baptiste Daroussin <bapt@FreeBSD.org>
Cc:        ports@FreeBSD.org
Subject:   Re: [CFT] New helpers now that new options frameworks allow them :)
Message-ID:  <51B4FFAD.9090105@FreeBSD.org>
In-Reply-To: <20130609221208.GU35160@ithaqua.etoilebsd.net>
References:  <20130609221208.GU35160@ithaqua.etoilebsd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
------enig2IFANJHEQXURDUVNHJQGM
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 6/9/2013 5:12 PM, Baptiste Daroussin wrote:
> Hi,
>=20
> Here is a couple of new helpers that the new options framework allows.
>=20
> To simplify some ports here is a couple of helpers I propose to add to =
the ports
> tree:
>=20
> OPTIONS_SUB=3D yes
>=20
> if set, the framework will automatically some new PLIST_SUB:
> for example: OPTIONS_DEFINE=3D OPT1
>=20
> if OPT1 is set OPT1=3D"" will be added to PLIST_SUB
> if OPT1 is unset OPT1=3D"@comment " will be added to the PLIST_SUB
>=20
> OPT1_CONFIGURE_ENABLE=3D option
>=20
> if OPT1 is set --enable-option will be added to CONFIGURE_ARGS
> if OPT1 is unset --disable-option will be added to CONFIGURE_ARGS
>=20
> OPT1_CONFIGURE_ON=3D --with-bla
> OPT1_CONFIGURE_OFF=3D --no-something
>=20
> if OPT1 is set --with-bla will be added to CONFIGURE_ARGS
> if OPT1 is unset --no-something will be added to CONFIGURE_ARGS
>=20
> OPT1_CFLAGS
> OPT1_LDFLAGS
> OPT1_CXXFLAGS
> OPT1_MAKE_ENV
> OPT1_CONFIGURE_ENV
>=20
> if OPT1 is set the flags will be appended to the corresponding MACROS.
>=20
> OPT1_USES=3D	bla
>=20
> if OP1 is set bla will be added to USES
>=20
> OPT1_TYPE_DEPENDS=3D	XXX:${PORTSDIR}/cat/port
>=20
> with TYPE being PKG EXTRACT PATCH FETCH BUILD LIB or RUN
>=20
> Will add the given dependency to the right place if OPT1 is set
>=20
> Patch is here:
> http://people.freebsd.org/~bapt/optionsng.diff
>=20
> An example of usage is:
> http://people.freebsd.org/~bapt/zsh-new-options.diff
>=20
> (on top of the zsh Makefile)
>=20
> Any opinion?
>=20
> regards,
> Bapt
>=20

Great idea. All tested here, works great.

--=20
Regards,
Bryan Drewery


------enig2IFANJHEQXURDUVNHJQGM
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRtP+tAAoJEG54KsA8mwz5FBcP/3TIcAlYCSQ5O0z9AsI6yQYP
xLdLrzYFd0MJkOTPxrMc5MB+8CLn26n2qaBwvWebPfRvIJDhTDzJ6v5Hcrm9QDcD
fjZK+YqoIFS/6DoO1mQg6T7BdqXRilX2+BIlPd2/SZhSht17Idc/lFMSnQmAwILZ
3xHc/vbznsvOO/0bagLLWxybqSso9/Bt+rU2hoO3TU0MnX9I4ExmR3dXLPcr9lWQ
IQSLiTjwBfZEofJX7dsDeaMWA/Hxt1+pn2WSgqqrbSwfetFxoKf0rgG6E1ByL23z
pkiYrLWmKeySROyJr4ErlKDpn3Kv61lpKBb7BUsf8m5lspf0QPzSgdE4/YVBhPaC
UrcggZvLNUVMJQWQNRLSR81Iy8kunbWJW14Qe+OjDD3Iz3ik7xcIcS53p89yVhdH
lfZcUA3sOkBdyVNe78HB07NJe15RKZERpLPZQkz8ZPjmgEk2B2J2ekjwWxnpm5VO
bcRqnu7HNCIfZjW7Hmkpd7+RJwAURpo3X8GVa1knxkB4ALYXMZrmpWnOwJRGmtIX
5WsxcBmswb6w8zU4Go7Rqo5YXsXE6c6AyJXKWQOwiPs0CgS3TylIEnaQclQ4j55g
W1BSqptGDJSU1zAj3JxxuQzLwXjMKy0XNbmzHWxhpETSmZkD7xNRTPaq8qe65INP
IDXkrPnRtGYfMTO+xQkp
=rDky
-----END PGP SIGNATURE-----

------enig2IFANJHEQXURDUVNHJQGM--



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