diff options
author | Mark Linimon <linimon@FreeBSD.org> | 2011-08-02 12:56:35 +0000 |
---|---|---|
committer | Mark Linimon <linimon@FreeBSD.org> | 2011-08-02 12:56:35 +0000 |
commit | a47071ae5ae5b1a293422f535ee44a42e2b18e16 (patch) | |
tree | 2fa3fc6b4fe8102507be3e41181b9cfeed176684 /misc/dahdi-kmod | |
parent | - Update to 0.9.313 [1] (diff) |
Use the canonical way to test for the presence of FreeBSD src files.
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=278792
Diffstat (limited to 'misc/dahdi-kmod')
-rw-r--r-- | misc/dahdi-kmod/Makefile | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/misc/dahdi-kmod/Makefile b/misc/dahdi-kmod/Makefile index a9777d06df65..32a1d4c2fdb9 100644 --- a/misc/dahdi-kmod/Makefile +++ b/misc/dahdi-kmod/Makefile @@ -54,6 +54,10 @@ CONFLICTS= zaptel-[0-9]* IGNORE= requires firmware(9) support for kernel modules with hyphens .endif +.if !exists(${SRC_BASE}/sys/Makefile) +IGNORE= requires kernel source present in ${SRC_BASE}/sys +.endif + .if ${ARCH} == "i386" || ${ARCH} == "amd64" PLIST_SUB+= X86="" _vpmadt032= VPMADT032 @@ -68,13 +72,6 @@ ${_f}_DISTFILE= ${${_f}_NAME}-${${_f}_VERSION}.tar.gz DISTFILES+= ${${_f}_DISTFILE}:firmware .endfor -pre-everything:: - @if [ ! -f /usr/src/sys/Makefile ]; then \ - ${ECHO_MSG} ">> The dahdi port needs FreeBSD kernel source code to compile."; \ - ${ECHO_MSG} ">> Please install FreeBSD kernel source code in /usr/src/sys."; \ - ${FALSE}; \ - fi - post-extract: @${LN} -s ../../../linux-${OSLEC_VERSION}/drivers/staging ${WRKSRC}/drivers .for _f in ${FIRMWARES} |