summaryrefslogtreecommitdiff
path: root/net/arla/Makefile
diff options
context:
space:
mode:
authorwennmach <wennmach@pkgsrc.org>2000-08-02 13:08:32 +0000
committerwennmach <wennmach@pkgsrc.org>2000-08-02 13:08:32 +0000
commit912907cb152250dabcb2dda196b5fda3033fbb89 (patch)
tree3e475558eafed1eeefa7e61c7ccc181c8c3f3142 /net/arla/Makefile
parent6e64f56d10cd25a8030011dbdac7d4b8eb76265e (diff)
downloadpkgsrc-912907cb152250dabcb2dda196b5fda3033fbb89.tar.gz
Also check if the kernel sources can be found under $BSDSRCDIR/sys
Diffstat (limited to 'net/arla/Makefile')
-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