diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-02-05 23:26:13 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-02-05 23:26:13 +0800 |
commit | 541265bb66312a5bef9caceca99ed6022cf27fd9 (patch) | |
tree | 808bdc12d7dfea762fc5d8974b6eb6584a83efff | |
parent | 0fc654c9c4f3faa4091b3d6aa26a2d96254ab331 (diff) | |
download | freebsd-ports-gnome-541265bb66312a5bef9caceca99ed6022cf27fd9.tar.gz freebsd-ports-gnome-541265bb66312a5bef9caceca99ed6022cf27fd9.tar.zst freebsd-ports-gnome-541265bb66312a5bef9caceca99ed6022cf27fd9.zip |
Improve -STABLE support:
- FreeBSD 4.0 - inform that 4.0 is not supported;
- FreeBSD 4.1.* - use an updated tarball with proper kernel module
dependencies;
- FreeBSD 4.2 - with recent newpcm kobj MFC commit in mind, add heuristics
to determine the driver tarball required. Build correctly on both pre-
and post- kobj MFC systems.
Submitted by: maintainer
Slightly improved and polished by: sobomax
-rw-r--r-- | audio/aureal-kmod/Makefile | 43 | ||||
-rw-r--r-- | audio/aureal-kmod/distinfo | 3 | ||||
-rw-r--r-- | audio/aureal-kmod/files/patch-Makefile.inc | 2 |
3 files changed, 37 insertions, 11 deletions
diff --git a/audio/aureal-kmod/Makefile b/audio/aureal-kmod/Makefile index b526c6fac1cf..41ce0c5f6073 100644 --- a/audio/aureal-kmod/Makefile +++ b/audio/aureal-kmod/Makefile @@ -14,7 +14,7 @@ DISTNAME= au88x0-${PORTVERSION} MAINTAINER= matey@cis.ohio-state.edu -NO_PACKAGE= package doesn't make any sense, because kld's should be in sync with running kernel to work correctly +NO_PACKAGE= Should be in sync with the kernel to work correctly ONLY_FOR_ARCHS= i386 @@ -26,19 +26,44 @@ MAKE_ENV= WRKSRC="${WRKSRC}" .include <bsd.port.pre.mk> -.if ${OSVERSION} < 400000 -BROKEN= "FreeBSD 3.* isn't supported" -.elif ${OSVERSION} < 410002 -BROKEN= "Your FreeBSD 4.1 system is too old. Please update it before installing this port" +.if exists(/usr/src/sys/dev/sound/pcm/sound.c) +VERSION_SOUND_C!= ${AWK} '/.*\$$FreeBSD/ { print $$4; exit; }' \ + /usr/src/sys/dev/sound/pcm/sound.c +.else +VERSION_SOUND_C= +.endif + +VERSION_SOUND_C:= ${VERSION_SOUND_C:S/.//g} + +.if ${OSVERSION} < 410000 +BROKEN= "FreeBSD 3.*, 4.0 are not supported" + .elif ${OSVERSION} < 420000 +# FreeBSD 4.1, 4.1.1 PORTVERSION= 1.1 -DISTNAME= au88x0-${PORTVERSION}_1 +PORTREVISION= 2 + .elif ${OSVERSION} < 500000 -PORTVERSION= 1.3 -DISTNAME= au88x0-${PORTVERSION}_1 +# FreeBSD 4.2 +PORTVERSION= 1.3 + +.if ${VERSION_SOUND_C} < 11724 +# FreeBSD 4.2 before kobj MFC +PORTREVISION= 1 + +.else +# FreeBSD 4.2 after kobj MFC +PORTREVISION= 2 +MAKE_ENV+= HAVE_KOBJ_PCM=1 +.endif + +.endif + +.if ${OSVERSION} < 500000 +DISTNAME= au88x0-${PORTVERSION}_${PORTREVISION} .endif -pre-build: +pre-fetch: @if [ ! -d /sys -o ! -d /usr/src/sys ]; then \ ${ECHO} "****************************************" ; \ ${ECHO} " You need to extract kernel source tree" ; \ diff --git a/audio/aureal-kmod/distinfo b/audio/aureal-kmod/distinfo index 38dae5fb4eba..1c0bcdbdd949 100644 --- a/audio/aureal-kmod/distinfo +++ b/audio/aureal-kmod/distinfo @@ -1,3 +1,4 @@ -MD5 (au88x0-1.1_1.tar.gz) = 50882437af6e79694e0db2f200b30c8a +MD5 (au88x0-1.1_2.tar.gz) = 2a738bb71acd20bee05df758feec8545 MD5 (au88x0-1.3_1.tar.gz) = ec49c6e62847f6a0da318fea8c954917 +MD5 (au88x0-1.3_2.tar.gz) = 266a8ba37778bfd1ea4007407f733540 MD5 (au88x0-1.5.tar.gz) = c0e781dde9624eb1213deb84aeb9d099 diff --git a/audio/aureal-kmod/files/patch-Makefile.inc b/audio/aureal-kmod/files/patch-Makefile.inc index c09f270cae54..bb625ed3579c 100644 --- a/audio/aureal-kmod/files/patch-Makefile.inc +++ b/audio/aureal-kmod/files/patch-Makefile.inc @@ -10,7 +10,7 @@ $FreeBSD$ +KMOD = snd_au88${MODEL} +SRCS += au88x0.c +SRCS += device_if.h bus_if.h isa_if.h pci_if.h -+.if ${OSVERSION} > 500000 ++.if ${OSVERSION} > 500000 || defined(HAVE_KOBJ_PCM) +SRCS += ac97_if.h channel_if.h feeder_if.h mixer_if.h +.endif +OBJS = ${WRKSRC}/asp${MODEL}.o |