Date: Sun, 3 Sep 2017 15:51:59 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-ports@freebsd.org Subject: Re: What is the right way to make OPTIONS_DEFAULT depend on Message-ID: <c9c271c1-25a6-1cdf-7790-b4e16a03812f@FreeBSD.org> In-Reply-To: <26464750-b401-1b14-9b3f-cd9b7b83bd4f@rawbw.com> References: <26464750-b401-1b14-9b3f-cd9b7b83bd4f@rawbw.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jGtWeVpiU0U5dffvda193KvOv3XnG3nEs Content-Type: multipart/mixed; boundary="iNHMMopM30HgtawUj164kotoX3BlThtNO"; protected-headers="v1" From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-ports@freebsd.org Message-ID: <c9c271c1-25a6-1cdf-7790-b4e16a03812f@FreeBSD.org> Subject: Re: What is the right way to make OPTIONS_DEFAULT depend on References: <26464750-b401-1b14-9b3f-cd9b7b83bd4f@rawbw.com> In-Reply-To: <26464750-b401-1b14-9b3f-cd9b7b83bd4f@rawbw.com> --iNHMMopM30HgtawUj164kotoX3BlThtNO Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable On 03/09/2017 05:57, Yuri wrote: > This doesn't work: >=20 >> .include <bsd.port.options.mk> >> >> .if ${OPSYS} =3D=3D FreeBSD && ${OSVERSION} < 1100000 >> OPTIONS_DEFAULT+=3D MYOPT >> .endif > MYOPT isn't picked up >=20 >=20 > I tried with a regular expressions, witout .include: >> SYSVERSION=3D=C2=A0=C2=A0=C2=A0 ${OPSYS}${OSVERSION} >> OPTIONS_DEFAULT=3DHELP >> ${SYSVERSION:C/^FreeBSD1[1-9][0-9]{5}$/MYOPT/:MMYOPT} > MYOPT isn't picked up again. >=20 If you're referring to $OPSYS or $OSVERSION then you'll want to put that section of code after =2Einclude <bsd.port.pre.mk> and obviously change the last line in your Makefile to =2Einclude <bsd.port.post.mk> Cheers, Matthew --iNHMMopM30HgtawUj164kotoX3BlThtNO-- --jGtWeVpiU0U5dffvda193KvOv3XnG3nEs Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJZrBcVXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATbvEP/j7TVMnIh4jOt/s4/MkgXr4o eygP/9BpOQ9nAcjxCof5tBD7BnekiOUfSLnrgddbuDMhlphBw2LCvJhMdCWvJ4fC /OeOjds9v/ru+zPBgXD0JE+fpL4r7L5+QBdFVNaUeyssjjpRaK7LzBPibSTpiyvt bzboYPTFWfvjauLLv7HBJeubBq0Xxj8B4pAvQINz3YCvJ+KXhUCjY8epUF2NxqK8 qpXAzsvDydS3S8xJ/D+s4O8iEtIylJJ06jJB0375/U0YkEsR00fxMdH2ovdZX74z vUwo8ilXSgfxQDSniHLeNg4DNZakg0BLivax/Gq6WstAc2p++r/YsrWDgLVbTlAZ MbXli54kcIwfufC/Qoj/LTJ8TNVrBmCEwez5uorGknO2jPtnyazyNzV5M2vFW0HO l9TZ8otB/qmxr4y0n7wzE69peoqU3NnYLainJkXRagqgKoKPVd3OifWkgILTQSbk +aRJZdQ1nfBAkmIEihlSluNa0ZSq33SXHJHIff8UqjM1RJPIDHueW4VHkHE81xZI CFBbv5k2QuSmv0nb1nJzVy9Mpys5wYRm9yMKR/wj413PX6D3mR4Cg2IR/bjDTe+x iNBP12JfUdIG3SqpBnJf3K6VjUivzBDEDXOsXMpFm6IPbki6sasa3HEFw7oOXI8W fw/2kDJ7SdGlTVjcydVE =7uA+ -----END PGP SIGNATURE----- --jGtWeVpiU0U5dffvda193KvOv3XnG3nEs--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c9c271c1-25a6-1cdf-7790-b4e16a03812f>