diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2001-02-05 15:26:13 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2001-02-05 15:26:13 +0000 |
commit | f7c61c692b035ec56f46093b826894cb1775ec8d (patch) | |
tree | aa3067fb8b941889530698e9c4bbdccfff94f42d /audio/aureal-kmod | |
parent | 1be0301128e5d1b778ba6ee37da3e561969b27ce (diff) | |
download | ports-f7c61c692b035ec56f46093b826894cb1775ec8d.tar.gz ports-f7c61c692b035ec56f46093b826894cb1775ec8d.zip |
Notes
Diffstat (limited to 'audio/aureal-kmod')
-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 |