aboutsummaryrefslogtreecommitdiffstats
path: root/audio/aureal-kmod/Makefile
blob: afcce3345fd3fe84b53cf54f8e21b4d326dd9096 (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
# Ports collection makefile for:    aureal-kmod
# Date created:             15 January 2001
# Whom:                 Maxim Sobolev <soobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   aureal-kmod
PORTVERSION=    1.5
CATEGORIES= misc
MASTER_SITES=   http://www.cis.ohio-state.edu/~matey/au88x0/
DISTNAME=   au88x0-${PORTVERSION}

MAINTAINER= sobomax@FreeBSD.org

NO_PACKAGE= package doesn't make any sense, because kld's should be in sync with running kernel to work correctly

WRKSRC=     ${WRKDIR}

PKGMESSAGE= ${WRKSRC}/.MESSAGE

MAKE_ENV=   WRKSRC="${WRKSRC}"

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 400000
BROKEN=     "FreeBSD 3.* isn't supported"
.elif ${OSVERSION} < 500000
PORTVERSION=    1.3
.endif

pre-build:
    @if [ ! -d /sys -o ! -d /usr/src/sys ]; then \
        ${ECHO} "****************************************" ; \
        ${ECHO} " You need to extract kernel source tree" ; \
        ${ECHO} " before you build this package..." ; \
        ${ECHO} "****************************************" ; \
        ${FALSE} ; \
    fi

pre-install:
    @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGDIR}/pkg-message > ${PKGMESSAGE}
    ${MKDIR} ${PREFIX}/lib/au88x0

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>