| @@ -1,20 +1,26 @@ | | | @@ -1,20 +1,26 @@ |
1 | # $NetBSD: Makefile,v 1.1 2014/10/13 12:51:10 mef Exp $ | | 1 | # $NetBSD: Makefile,v 1.2 2015/01/27 07:05:17 dbj Exp $ |
2 | | | 2 | |
3 | PKGNAME= gnuradio-uhd-${VERSION} | | 3 | PKGNAME= gnuradio-uhd-${VERSION} |
4 | COMMENT= Uhd-based encoding and decoding algorithms for GNU Radio | | 4 | COMMENT= Uhd-based encoding and decoding algorithms for GNU Radio |
5 | | | 5 | |
6 | # (acutually, redundent for now) | | 6 | # (acutually, redundent for now) |
7 | PKG_OPTIONS.gnuradio= | | 7 | PKG_OPTIONS.gnuradio= |
8 | .include "../../ham/gnuradio-core/Makefile.common" | | 8 | .include "../../ham/gnuradio-core/Makefile.common" |
9 | .include "../../ham/gnuradio-core/Nocore.mk" | | 9 | .include "../../ham/gnuradio-core/Nocore.mk" |
10 | | | 10 | |
11 | CMAKE_ARGS+= -DENABLE_DEFAULT=False | | 11 | CMAKE_ARGS+= -DENABLE_DEFAULT=False |
12 | CMAKE_ARGS+= -DENABLE_GR_UHD=True | | 12 | CMAKE_ARGS+= -DENABLE_GR_UHD=True |
13 | CMAKE_ARGS+= -DENABLE_PYTHON=True | | 13 | CMAKE_ARGS+= -DENABLE_PYTHON=True |
14 | | | 14 | |
| | | 15 | .if ${OPSYS} != "Darwin" |
| | | 16 | # XXX dbj -- i'm not sure why this is necessary, but hard coding |
| | | 17 | # the .so causes problems on Darwin. I've also set UHD_DIR in |
| | | 18 | # the uhd buildlink3.mk file, so it finds the buildlink header files. |
| | | 19 | |
15 | CMAKE_ARGS+= -DUHD_LIBRARIES=${PREFIX}/lib/libuhd.so | | 20 | CMAKE_ARGS+= -DUHD_LIBRARIES=${PREFIX}/lib/libuhd.so |
16 | CMAKE_ARGS+= -DUHD_INCLUDE_DIRS=${PREFIX}/include/uhd/usrp | | 21 | CMAKE_ARGS+= -DUHD_INCLUDE_DIRS=${PREFIX}/include/uhd/usrp |
| | | 22 | .endif |
17 | | | 23 | |
18 | .include "../../ham/uhd/buildlink3.mk" | | 24 | .include "../../ham/uhd/buildlink3.mk" |
19 | | | 25 | |
20 | .include "../../mk/bsd.pkg.mk" | | 26 | .include "../../mk/bsd.pkg.mk" |