tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Testing NetBSD Versions
On Wed, Dec 17, 2008 at 04:16:35PM +0100, Hubert Feyrer wrote:
> On Wed, 17 Dec 2008, Robert Elz wrote:
> > | -.if !empty(MACHINE_PLATFORM:MNetBSD-4*)
> > | +.if !empty(MACHINE_PLATFORM:MNetBSD-[4-9]*)
> > | USE_PKGSRC_GCC=3D yes
> > | .endif
>
> I guess something like
>
> .if !empty(MACHINE_PLATFORM:MNetBSD-[4-9]*) \
> || !empty(MACHINE_PLATFORM:MNetBSD-1[0-9]*)
>
> will do. For the case at hand, I'd actually be more interested in fixing
> qemu to not require me to build an ancient gcc version...
>
> As for the relational test, I don't know if make(1) supports that in some
> way in .if tests. Maybe something like platform==NetBSD && os-version>=4
> ...
Something like:
.if ${MACHINE_PLATFORM:MNetBSD-:S/NetBSD-//:S/^$/0/} >= 4
might work (you might need to remove trailing chars as well)
David
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index