summaryrefslogtreecommitdiff
path: root/ham
diff options
context:
space:
mode:
authordbj <dbj@pkgsrc.org>2015-01-27 07:05:17 +0000
committerdbj <dbj@pkgsrc.org>2015-01-27 07:05:17 +0000
commit7d70f777ccd8b13bc0f0ba44bb23cdfe88c83a58 (patch)
tree58b544bba5bdeb9902098714c6e2f849191f133b /ham
parent64be34e7bb2001aa17a68bab347390f383f279dc (diff)
downloadpkgsrc-7d70f777ccd8b13bc0f0ba44bb23cdfe88c83a58.tar.gz
don't set UHD_LIBRARIES and UHD_INCLUDE_DIRS in CMAKE_ARGS on Darwin
The explicit use of .so in the shared lib causes a problem. I've also set UHD_DIR in the environment in the UHD buildlink3.mk file which should make these two CMAKE_ARGS unnecessary
Diffstat (limited to 'ham')
-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"