blob: 0aed03ae1c367ea8d33119fac78a96ca832cf7d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
# Ports collection makefile for: aureal-kmod
# Date created: 15 January 2001
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= aureal-kmod
PORTVERSION= 1.5
PORTREVISION= 5
CATEGORIES= audio
MASTER_SITES= http://www.matey.org/au88x0/
DISTNAME= au88x0-${PORTVERSION}_${DISTREVISION}
MAINTAINER= ports@matey.org
COMMENT= A FreeBSD Driver for Aureal Vortex based soundcards
NO_PACKAGE= Should be in sync with the kernel to work correctly
ONLY_FOR_ARCHS= i386
SRCPREFIX?= /usr/src
STRAYFILES= au88x0.h au88x0.c asp10.o asp20.o asp30.o
WRKSRC= ${WRKDIR}
PKGMESSAGE= ${WRKSRC}/.MESSAGE
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"
.endif
pre-fetch:
.for STRAY in ${STRAYFILES}
.if exists(${SRCPREFIX}/sys/dev/sound/pci/${STRAY})
@${ECHO}
@${ECHO} "You have stray code in your tree. Make sure you"
@${ECHO} "do not have any of the following:"
@${ECHO}
@${ECHO} "${SRCPREFIX}/sys/dev/sound/pci/au88x0.c"
@${ECHO} "${SRCPREFIX}/sys/dev/sound/pci/au88x0.h"
@${ECHO} "${SRCPREFIX}/sys/dev/sound/pci/asp10.o"
@${ECHO} "${SRCPREFIX}/sys/dev/sound/pci/asp20.o"
@${ECHO} "${SRCPREFIX}/sys/dev/sound/pci/asp30.o"
@${ECHO}
@${FALSE}
.endif
.endfor
pre-install:
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGDIR}/pkg-message > \
${PKGMESSAGE}
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/aureal.sh > \
${WRKDIR}/aureal.sh.sample
${MKDIR} ${PREFIX}/lib/au88x0
post-install:
@${INSTALL_SCRIPT} ${WRKDIR}/aureal.sh.sample ${PREFIX}/etc/rc.d
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|