From 875bed125b97cc2db855b153e0aaee9baec48c88 Mon Sep 17 00:00:00 2001 From: will Date: Mon, 12 Feb 2001 06:11:36 +0000 Subject: Make sure the user doesn't have any stray files from previous attempts to compile aureal in their kernel statically (yes, having them there does break the aureal module). Modularize the makefile using SRCPREFIX, which can be changed in the environment. Approved in principle by: maintainer (except SRCPREFIX) --- audio/aureal-kmod/Makefile | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'audio/aureal-kmod') diff --git a/audio/aureal-kmod/Makefile b/audio/aureal-kmod/Makefile index 1547effd256b..370bd6cd68ab 100644 --- a/audio/aureal-kmod/Makefile +++ b/audio/aureal-kmod/Makefile @@ -17,6 +17,8 @@ MAINTAINER= matey@cis.ohio-state.edu 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} @@ -26,9 +28,9 @@ MAKE_ENV= WRKSRC="${WRKSRC}" .include -.if exists(/usr/src/sys/dev/sound/pcm/sound.c) +.if exists(${SRCPREFIX}/sys/dev/sound/pcm/sound.c) VERSION_SOUND_C!= ${AWK} '/.*\$$FreeBSD/ { print $$4; exit; }' \ - /usr/src/sys/dev/sound/pcm/sound.c + ${SRCPREFIX}/sys/dev/sound/pcm/sound.c .else VERSION_SOUND_C= .endif @@ -64,7 +66,23 @@ DISTNAME= au88x0-${PORTVERSION}_${PORTREVISION} .endif pre-fetch: - @if [ ! -d /sys -o ! -d /usr/src/sys ]; then \ +.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 + + @if [ ! -d /sys -o ! -d ${SRCPREFIX}/sys ]; then \ ${ECHO} "****************************************" ; \ ${ECHO} " You need to extract kernel source tree" ; \ ${ECHO} " before you build this package..." ; \ -- cgit ebsd-ports-graphics/refs/?id=6d41c0f3ae7274273c4a4784387ad6ac096c83a6'>refslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Bump PORTREVISION to chase the glib20 shared lib version change.marcus2005-03-121-1/+1
|
* Bump PORTREVISIONS for all ports that depend on atk or pango to ease in themarcus2004-11-081-1/+1
| | | | big upgrade.
* - Fix build with gcc 3.4 [1]bland2004-08-195-2/+56
| | | | | | - Fix plist. Reported by: pointyhat via kris [1]
* Chase the glib20 update, and bump all affected ports' PORTREVISIONs.marcus2004-04-051-1/+1
|
* - Add SIZE to GNOME portspav2004-03-181-0/+1
| | | | Submitted by: trevor
* Whoa there, boy, that's a mighty big commit y'all have there...ade2004-03-141-1/+1
| | | | | | | | | | | | | | | Begin autotools sanitization sequence by requiring ports to explicitly specify which version of {libtool,autoconf,automake} they need, erasing the concept of a "system default". For ports-in-waiting: USE_LIBTOOL=YES -> USE_LIBTOOL_VER=13 USE_AUTOCONF=YES -> USE_AUTOCONF_VER=213 USE_AUTOMAKE=YES -> USE_AUTOMAKE_VER=14 Ports attempting to use the old style system after June 1st 2004 will be sorely disappointed.
* Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-1/+1
| | | | (Part 2)
* Add bit wich let configure always detect FAM library if installed.bland2004-01-181-0/+3
|
* Update to 0.4bland2004-01-1812-99/+91
|
* Fix build on -STABLE.bland2003-12-055-11/+107
|
* Update to 0.3bland2003-12-046-26/+24
|
* Fixes due libxml++ update.bland2003-11-121-3/+4
|
* Fix build on 4.x systems.bland2003-11-037-2/+119
| | | | Reported by: bento via kris
* Fix run-time dependency on xsltproc.bland2003-10-051-0/+2
|