summaryrefslogtreecommitdiff
path: root/ham/gnuradio-uhd
diff options
context:
space:
mode:
Diffstat (limited to 'ham/gnuradio-uhd')
-rw-r--r--ham/gnuradio-uhd/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/ham/gnuradio-uhd/Makefile b/ham/gnuradio-uhd/Makefile
index 15b772decac..808c1496893 100644
--- a/ham/gnuradio-uhd/Makefile
+++ b/ham/gnuradio-uhd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2014/10/13 12:51:10 mef Exp $
+# $NetBSD: Makefile,v 1.2 2015/01/27 07:05:17 dbj Exp $
PKGNAME= gnuradio-uhd-${VERSION}
COMMENT= Uhd-based encoding and decoding algorithms for GNU Radio
@@ -12,8 +12,14 @@ CMAKE_ARGS+= -DENABLE_DEFAULT=False
CMAKE_ARGS+= -DENABLE_GR_UHD=True
CMAKE_ARGS+= -DENABLE_PYTHON=True
+.if ${OPSYS} != "Darwin"
+# XXX dbj -- i'm not sure why this is necessary, but hard coding
+# the .so causes problems on Darwin. I've also set UHD_DIR in
+# the uhd buildlink3.mk file, so it finds the buildlink header files.
+
CMAKE_ARGS+= -DUHD_LIBRARIES=${PREFIX}/lib/libuhd.so
CMAKE_ARGS+= -DUHD_INCLUDE_DIRS=${PREFIX}/include/uhd/usrp
+.endif
.include "../../ham/uhd/buildlink3.mk"