| @@ -1,52 +1,55 @@ | | | @@ -1,52 +1,55 @@ |
1 | # $NetBSD: Makefile,v 1.24 2020/05/06 14:04:43 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.25 2020/08/20 01:52:38 tnn Exp $ |
2 | | | 2 | |
3 | DISTNAME= gr-osmosdr-0.1.4 | | 3 | DISTNAME= gr-osmosdr-0.1.4 |
4 | PKGREVISION= 17 | | 4 | PKGREVISION= 18 |
5 | CATEGORIES= ham | | 5 | CATEGORIES= ham |
6 | MASTER_SITES+= http://git.osmocom.org/gr-osmosdr/snapshot/ | | 6 | MASTER_SITES+= http://git.osmocom.org/gr-osmosdr/snapshot/ |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://git.osmocom.org/gr-osmosdr | | 9 | HOMEPAGE= https://git.osmocom.org/gr-osmosdr |
10 | COMMENT= SDR Hardware support for OsmoSDR and so many more | | 10 | COMMENT= SDR Hardware support for OsmoSDR and so many more |
11 | LICENSE= gnu-gpl-v2 | | 11 | LICENSE= gnu-gpl-v2 |
12 | | | 12 | |
13 | USE_LANGUAGES= c c++ | | 13 | USE_LANGUAGES= c c++ |
14 | USE_TOOLS= cmake | | 14 | USE_TOOLS= cmake |
15 | USE_CMAKE= yes | | 15 | USE_CMAKE= yes |
16 | | | 16 | |
17 | # Suppress warning for developer | | 17 | # Suppress warning for developer |
18 | CMAKE_ARGS+= -Wno-dev | | 18 | CMAKE_ARGS+= -Wno-dev |
19 | # -- * Ettus USRP Devices | | 19 | # -- * Ettus USRP Devices |
20 | CMAKE_ARGS+= -DGNURADIO_UHD_INCLUDE_DIRS=${PREFIX}/include/uhd | | 20 | CMAKE_ARGS+= -DGNURADIO_UHD_INCLUDE_DIRS=${PREFIX}/include/uhd |
21 | CMAKE_ARGS+= -DGNURADIO_BLOCKS_INCLUDE_DIRS=${PREFIX}/include | | 21 | CMAKE_ARGS+= -DGNURADIO_BLOCKS_INCLUDE_DIRS=${PREFIX}/include |
| | | 22 | # TODO: make it PKG_OPTION |
| | | 23 | CMAKE_ARGS+= -DENABLE_DOXYGEN=OFF |
22 | | | 24 | |
23 | PLIST_SUBST+= PYSITELIB=${PYSITELIB} | | 25 | PLIST_SUBST+= PYSITELIB=${PYSITELIB} |
24 | | | 26 | |
25 | # Python 36 and 37 result in build errors; 27 builds ok. | | 27 | # Python 36 and 37 result in build errors; 27 builds ok. |
26 | PYTHON_VERSIONS_ACCEPTED= 27 | | 28 | PYTHON_VERSIONS_ACCEPTED= 27 |
27 | REPLACE_PYTHON+= apps/osmocom_siggen_base.py | | 29 | REPLACE_PYTHON+= apps/osmocom_siggen_base.py |
28 | | | 30 | |
29 | .include "../../devel/boost-headers/buildlink3.mk" | | 31 | .include "../../devel/boost-headers/buildlink3.mk" |
30 | .include "../../devel/boost-libs/buildlink3.mk" | | 32 | .include "../../devel/boost-libs/buildlink3.mk" |
31 | .include "../../devel/libusb1/buildlink3.mk" | | 33 | .include "../../devel/libusb1/buildlink3.mk" |
32 | .include "../../devel/orc/buildlink3.mk" | | 34 | .include "../../devel/orc/buildlink3.mk" |
33 | | | 35 | |
34 | # \todo Clearly threre is some ordering scheme. Explain it. | | 36 | # \todo Clearly threre is some ordering scheme. Explain it. |
35 | | | 37 | |
36 | .include "../../ham/uhd/buildlink3.mk" | | 38 | .include "../../ham/uhd/buildlink3.mk" |
37 | .include "../../lang/python/application.mk" | | 39 | .include "../../lang/python/application.mk" |
38 | .include "../../lang/python/extension.mk" | | 40 | .include "../../lang/python/extension.mk" |
39 | | | 41 | |
40 | .include "../../ham/rtl-sdr/buildlink3.mk" | | 42 | .include "../../ham/rtl-sdr/buildlink3.mk" |
41 | .include "../../ham/libmirisdr/buildlink3.mk" | | 43 | .include "../../ham/libmirisdr/buildlink3.mk" |
42 | .include "../../ham/osmo-sdr/buildlink3.mk" | | 44 | .include "../../ham/osmo-sdr/buildlink3.mk" |
43 | # \todo Re-enable gr-fcdproplus when it works, or optionize it. | | 45 | # \todo Re-enable gr-fcdproplus when it works, or optionize it. |
44 | # gr-fcdproplus does not build at the moment | | 46 | # gr-fcdproplus does not build at the moment |
45 | #.include "../../ham/gr-fcdproplus/buildlink3.mk" | | 47 | #.include "../../ham/gr-fcdproplus/buildlink3.mk" |
46 | .include "../../ham/hackrf/buildlink3.mk" | | 48 | .include "../../ham/hackrf/buildlink3.mk" |
| | | 49 | .include "../../ham/soapy-sdr/buildlink3.mk" |
47 | | | 50 | |
| | | 51 | BUILDLINK_API_DEPENDS.gnuradio-core+= gnuradio-core>=3.8 |
48 | .include "../../ham/gnuradio-core/buildlink3.mk" | | 52 | .include "../../ham/gnuradio-core/buildlink3.mk" |
49 | .include "../../ham/gnuradio-fcd/buildlink3.mk" | | | |
50 | .include "../../ham/gnuradio-uhd/buildlink3.mk" | | 53 | .include "../../ham/gnuradio-uhd/buildlink3.mk" |
51 | | | 54 | |
52 | .include "../../mk/bsd.pkg.mk" | | 55 | .include "../../mk/bsd.pkg.mk" |