summaryrefslogtreecommitdiff
path: root/emulators/haxm
diff options
context:
space:
mode:
authorkamil <kamil@pkgsrc.org>2019-02-16 22:16:08 +0000
committerkamil <kamil@pkgsrc.org>2019-02-16 22:16:08 +0000
commite62d0d624f3481dacab70f2db69c80c5e3a453df (patch)
tree69f6931e3fe317f3b947c3207581bcde9e615d2d /emulators/haxm
parent6ca1f80d31799e1e059bd4e2229fe6f868083051 (diff)
downloadpkgsrc-e62d0d624f3481dacab70f2db69c80c5e3a453df.tar.gz
haxm: Add a verbose message if BSDSRCDIR/src is missing
The kernel modules require kernel sources.
Diffstat (limited to 'emulators/haxm')
-rw-r--r--emulators/haxm/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/emulators/haxm/Makefile b/emulators/haxm/Makefile
index 4f1288ea033..df4af08be10 100644
--- a/emulators/haxm/Makefile
+++ b/emulators/haxm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2019/02/15 00:49:08 kamil Exp $
+# $NetBSD: Makefile,v 1.8 2019/02/16 22:16:08 kamil Exp $
GITHUB_PROJECT= haxm
GITHUB_TAG= 3bdfd1a39021df9b4dfe69e05a277e4e6456494a
@@ -30,6 +30,10 @@ MAKE_FLAGS+= S=${BSDSRCDIR}/sys
BUILD_DEFS+= BSDSRCDIR
+.if !exists(${BSDSRCDIR}/src)
+PKG_FAIL_REASON+= "BSDSRCDIR/src specifies non-existing directory ${BSDSRCDIR}/src"
+.endif
+
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)