mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
86922094aa
versions of FreeBSD now use /etc/rc.subr and rc.d scripts without .sh appended to the script name.
74 lines
1.7 KiB
Makefile
74 lines
1.7 KiB
Makefile
# 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= 6
|
|
CATEGORIES= audio kld
|
|
MASTER_SITES= http://www.matey.org/au88x0/
|
|
DISTNAME= au88x0-${PORTVERSION}_${DISTREVISION}
|
|
|
|
MAINTAINER= c.kworr@gmail.com
|
|
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
|
|
DISTREVISION= 4
|
|
|
|
KMODDIR= ${PREFIX}/modules/au88x0
|
|
KMODDIR_REL= ${KMODDIR:S%${PREFIX}/%%}
|
|
|
|
USE_RC_SUBR= aureal
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= KMODDIR=${KMODDIR}
|
|
|
|
PLIST_SUB= KMODDIR=${KMODDIR_REL}
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
MAKE_ENV= WRKSRC="${WRKSRC}"
|
|
MAKE_ARGS= KMODDIR="${KMODDIR}"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 800000
|
|
BROKEN= doesn't build on RELENG_8
|
|
.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-everything::
|
|
.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:
|
|
${MKDIR} ${KMODDIR}
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|