On 29 Jan 2014, at 14:15, Montgomery-Smith, Stephen <step...@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
signature.asc
Description: Message signed with OpenPGP using GPGMail