configure scripts and FreeBSD-10

Dimitry Andric dim at FreeBSD.org
Wed Jan 29 14:22:34 UTC 2014


On 29 Jan 2014, at 14:15, Montgomery-Smith, Stephen <stephen at missouri.edu> wrote:
> I have ports with configure scripts that include lines like
> 
> freebsd1*)
> 
> Now obviously the script will choose this case when I am running
> FreeBSD-10 as well as FreeBSD-1.
> 
> What solutions have people used to deal with this?    Does anyone have
> good examples of ports I can look at where this was solved?  Somebody
> sent me a patch that replaces freebsd1*) with freebsd1[!0]*), but that
> will fail when FreeBSD-11 comes out.

Please have a look at /usr/ports/Mk/bsd.port.mk, and search for
"run-autotools-fixup".  This stage is run automagically before the
configure stage, and replaces instances of freebsd1*, freebsd2* etc with
freebsd1.*, freebsd2.*, etc.

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20140129/260de3a9/attachment.sig>


More information about the freebsd-ports mailing list