summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorwennmach <wennmach>2000-08-02 13:08:32 +0000
committerwennmach <wennmach>2000-08-02 13:08:32 +0000
commit44dce1f876e75440a0461569e0175b1843f44112 (patch)
tree3e475558eafed1eeefa7e61c7ccc181c8c3f3142 /net
parent8d9459157c4024e7d7fd1632df744e8fe0ba2386 (diff)
downloadpkgsrc-44dce1f876e75440a0461569e0175b1843f44112.tar.gz
Also check if the kernel sources can be found under $BSDSRCDIR/sys
Diffstat (limited to 'net')
-rw-r--r--net/arla/Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/net/arla/Makefile b/net/arla/Makefile
index 6702c9333cf..28cbee12122 100644
--- a/net/arla/Makefile
+++ b/net/arla/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2000/08/01 09:31:00 wennmach Exp $
+# $NetBSD: Makefile,v 1.5 2000/08/02 13:08:32 wennmach Exp $
#
DISTNAME= arla-0.33
@@ -10,11 +10,18 @@ HOMEPAGE= http://www.stacken.kth.se/project/arla/
DEPENDS+= kth-krb4-1.0.1:../../security/kth-krb4
+GNU_CONFIGURE= yes
+
+.include "../../mk/bsd.prefs.mk"
+
.if !exists(/sys/lib/libkern/libkern.h)
-IGNORE= "requires kernel sources available under /sys"
-.endif
+.if exists(${BSDSRCDIR}/sys/lib/libkern/libkern.h)
+CONFIGURE_ARGS+= --with-sys=${BSDSRCDIR}/sys
+.else
+IGNORE= "requires kernel sources available under \$$BSDSRCDIR/sys (or /sys)"
+.endif
+.endif
-GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-krb4=${PREFIX}
.if defined(ARLA_CACHE)
CONFIGURE_ARGS+= --with-arlacachedir=${ARLA_CACHE}
@@ -23,8 +30,6 @@ CONFIGURE_ARGS+= --with-arlacachedir=${ARLA_CACHE}
PLIST_SRC= ${WRKDIR}/PLIST
MESSAGE_FILE= ${WRKDIR}/MESSAGE
-.include "../../mk/bsd.prefs.mk"
-
.if defined(ARLA_CACHE)
CACHEDIR= ${ARLA_CACHE}
.else