mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
Remove antiquated OSVERSION cruft.
Hat: portmgr
This commit is contained in:
parent
5ca3bc9c1b
commit
f0f1231a52
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=183845
@ -29,61 +29,6 @@ MAKE_ENV= WRKSRC="${WRKSRC}"
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if exists(${SRCPREFIX}/sys/dev/sound/pcm/sound.c)
|
||||
VERSION_SOUND_C!= ident < ${SRCPREFIX}/sys/dev/sound/pcm/sound.c | \
|
||||
${AWK} '{ print $$3; exit }'
|
||||
.else
|
||||
VERSION_SOUND_C=
|
||||
.endif
|
||||
|
||||
VERSION_SOUND_C_MINOR:= ${VERSION_SOUND_C:S/^1.//:C/\.[0-9\.]+$//}
|
||||
|
||||
.if ${OSVERSION} < 410000
|
||||
IGNORE= "FreeBSD 3.*, 4.0 are not supported"
|
||||
|
||||
.elif ${OSVERSION} < 420000
|
||||
# FreeBSD 4.1, 4.1.1
|
||||
PORTVERSION= 1.1
|
||||
DISTREVISION= 3
|
||||
|
||||
.elif ${OSVERSION} < 440000
|
||||
# FreeBSD 4.2, 4.3
|
||||
PORTVERSION= 1.3
|
||||
|
||||
.if ${VERSION_SOUND_C_MINOR} < 4
|
||||
# FreeBSD 4.2 before kobj MFC
|
||||
DISTREVISION= 1
|
||||
|
||||
.else
|
||||
# FreeBSD 4.2 after kobj MFC, FreeBSD 4.3
|
||||
DISTREVISION= 2
|
||||
MAKE_ENV+= HAVE_KOBJ_PCM=1
|
||||
.endif
|
||||
|
||||
.elif ${OSVERSION} < 450004
|
||||
# FreeBSD 4.4, 4.5-
|
||||
PORTVERSION= 1.3
|
||||
DISTREVISION= 3
|
||||
MAKE_ENV+= HAVE_KOBJ_PCM=1
|
||||
|
||||
.elif ${OSVERSION} < 500000
|
||||
# FreeBSD 4.5+, 4.6, 4.7, 4.8-
|
||||
.if ${VERSION_SOUND_C_MINOR} < 12
|
||||
IGNORE= "Base system is outdated. This port needs -STABLE after 2002-04-22."
|
||||
.endif
|
||||
PORTVERSION= 1.3
|
||||
DISTREVISION= 4
|
||||
MAKE_ENV+= HAVE_KOBJ_PCM=1
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} > 500000
|
||||
# FreeBSD 5-CURRENT
|
||||
DISTREVISION= 4
|
||||
.if ${VERSION_SOUND_C_MINOR} < 70
|
||||
IGNORE= "Base system is outdated. This port needs -CURRENT after 2002-04-04."
|
||||
.endif
|
||||
.endif
|
||||
|
||||
# Make sure kernel sources are present before going any further
|
||||
.if ! exists(${SRCPREFIX}/sys/dev/sound/pcm/sound.c)
|
||||
IGNORE= "You need to extract kernel source tree before building this package"
|
||||
|
Loading…
Reference in New Issue
Block a user