Avoid rebuilding everything for doxygen, just the docs are fine. Don't keep an insanely long hand-maintained list of Python files, go with wildcards. Simplify various build commands.diff -r1.23 -r1.24 pkgsrc/ham/gnuradio-core/Makefile.common
(joerg)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.23 2020/01/18 23:32:39 rillig Exp $ | 1 | # $NetBSD: Makefile.common,v 1.24 2020/05/19 13:58:24 joerg Exp $ | |
2 | # This Makefile fragment is included in the package Makefiles for | 2 | # This Makefile fragment is included in the package Makefiles for | |
3 | # GNU Radio distributed packages (they all share common configure and build | 3 | # GNU Radio distributed packages (they all share common configure and build | |
4 | # settings). | 4 | # settings). | |
5 | # used by ham/gnuradio-atsc/Makefile | 5 | # used by ham/gnuradio-atsc/Makefile | |
6 | # used by ham/gnuradio-channels/Makefile | 6 | # used by ham/gnuradio-channels/Makefile | |
7 | # used by ham/gnuradio-companion/Makefile | 7 | # used by ham/gnuradio-companion/Makefile | |
8 | # used by ham/gnuradio-core/Makefile | 8 | # used by ham/gnuradio-core/Makefile | |
9 | # used by ham/gnuradio-ctrlport/Makefile | 9 | # used by ham/gnuradio-ctrlport/Makefile | |
10 | 10 | |||
11 | # used by ham/gnuradio-digital/Makefile | 11 | # used by ham/gnuradio-digital/Makefile | |
12 | # used by ham/gnuradio-doxygen/Makefile | 12 | # used by ham/gnuradio-doxygen/Makefile | |
13 | # used by ham/gnuradio-dtv/Makefile | 13 | # used by ham/gnuradio-dtv/Makefile | |
14 | # used by ham/gnuradio-fcd/Makefile | 14 | # used by ham/gnuradio-fcd/Makefile | |
@@ -114,34 +114,34 @@ CMAKE_ARG_PATH= ../ | @@ -114,34 +114,34 @@ CMAKE_ARG_PATH= ../ | |||
114 | SUBST_CLASSES+= alsa | 114 | SUBST_CLASSES+= alsa | |
115 | SUBST_MESSAGE.alsa= Arrange the patched line depepending on alsa is in PKG_OPTIONS or not | 115 | SUBST_MESSAGE.alsa= Arrange the patched line depepending on alsa is in PKG_OPTIONS or not | |
116 | SUBST_FILES.alsa+= gr-audio/lib/CMakeLists.txt | 116 | SUBST_FILES.alsa+= gr-audio/lib/CMakeLists.txt | |
117 | ## The value of ${ALSA_ENABLED} is either '#' or '' by options.mk. | 117 | ## The value of ${ALSA_ENABLED} is either '#' or '' by options.mk. | |
118 | SUBST_SED.alsa= -e 's,@@ALSA@@,${ALSA_ENABLED},' | 118 | SUBST_SED.alsa= -e 's,@@ALSA@@,${ALSA_ENABLED},' | |
119 | SUBST_STAGE.alsa= pre-configure | 119 | SUBST_STAGE.alsa= pre-configure | |
120 | 120 | |||
121 | SUBST_CLASSES+= pyvers | 121 | SUBST_CLASSES+= pyvers | |
122 | SUBST_FILES.pyvers= cmake/Modules/FindSphinx.cmake | 122 | SUBST_FILES.pyvers= cmake/Modules/FindSphinx.cmake | |
123 | SUBST_MESSAGE.pyvers= Fix SPHINX_EXECUTABLE NAMES(sphinx-build) | 123 | SUBST_MESSAGE.pyvers= Fix SPHINX_EXECUTABLE NAMES(sphinx-build) | |
124 | SUBST_VARS.pyvers+= PYVERSSUFFIX | 124 | SUBST_VARS.pyvers+= PYVERSSUFFIX | |
125 | SUBST_STAGE.pyvers= pre-configure | 125 | SUBST_STAGE.pyvers= pre-configure | |
126 | 126 | |||
127 | # REPLACE_PYTHON is some 600 files | 127 | REPLACE_PYTHON = */*.py */*/*.py */*/*/*.py */*/*/*/*.py */*/*/*/*/*.py \ | |
128 | .include "../../ham/gnuradio-core/files/REPLACE_PYTHON" | 128 | */*/*/*/*/*/*.py */*/*/*/*/*/*/*.py */*/*/*/*/*/*/*/*.py | |
129 | 129 | |||
130 | pre-configure: | 130 | pre-configure: | |
131 | (${MKDIR} ${WRKSRC}/build;) | 131 | ${MKDIR} ${WRKSRC}/build | |
132 | 132 | |||
133 | do-install: | 133 | do-install: | |
134 | (cd ${WRKSRC}/build; ${GMAKE} DESTDIR=${DESTDIR} install) | 134 | cd ${WRKSRC}/${BUILD_DIRS} && ${GMAKE} DESTDIR=${DESTDIR} install | |
135 | 135 | |||
136 | .include "../../audio/gsm/buildlink3.mk" | 136 | .include "../../audio/gsm/buildlink3.mk" | |
137 | .include "../../audio/jack/buildlink3.mk" | 137 | .include "../../audio/jack/buildlink3.mk" | |
138 | .include "../../audio/portaudio/buildlink3.mk" | 138 | .include "../../audio/portaudio/buildlink3.mk" | |
139 | 139 | |||
140 | .include "../../devel/boost-headers/buildlink3.mk" | 140 | .include "../../devel/boost-headers/buildlink3.mk" | |
141 | .include "../../devel/boost-libs/buildlink3.mk" | 141 | .include "../../devel/boost-libs/buildlink3.mk" | |
142 | .include "../../devel/cppunit/buildlink3.mk" | 142 | .include "../../devel/cppunit/buildlink3.mk" | |
143 | # VOLK needs orc.h, so in the common | 143 | # VOLK needs orc.h, so in the common | |
144 | .include "../../devel/orc/buildlink3.mk" | 144 | .include "../../devel/orc/buildlink3.mk" | |
145 | .include "../../devel/swig2/buildlink3.mk" | 145 | .include "../../devel/swig2/buildlink3.mk" | |
146 | 146 | |||
147 | .include "../../lang/python/application.mk" | 147 | .include "../../lang/python/application.mk" |
@@ -1,38 +1,38 @@ | @@ -1,38 +1,38 @@ | |||
1 | # $NetBSD: options.mk,v 1.5 2019/11/03 19:32:07 rillig Exp $ | 1 | # $NetBSD: options.mk,v 1.6 2020/05/19 13:58:24 joerg Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.gnuradio | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.gnuradio | |
4 | PKG_SUPPORTED_OPTIONS= ninja-build filter-design alsa | 4 | PKG_SUPPORTED_OPTIONS= ninja-build filter-design alsa | |
5 | # ninja-build is said supported, but not working | 5 | # ninja-build is said supported, but not working | |
6 | # alas is said supported, but not good on NetBSD | 6 | # alas is said supported, but not good on NetBSD | |
7 | 7 | |||
8 | # Adding ninja-build to following line (now) stops | 8 | # Adding ninja-build to following line (now) stops | |
9 | # [164/850] cd /PATH/ham/gnuradio-core/work/gnuradio-3.7.5/build/gr-audio/swig && "" | 9 | # [164/850] cd /PATH/ham/gnuradio-core/work/gnuradio-3.7.5/build/gr-audio/swig && "" | |
10 | # FAILED: cd /PATH/ham/gnuradio-core/work/gnuradio-3.7.5/build/gr-audio/swig && "" | 10 | # FAILED: cd /PATH/ham/gnuradio-core/work/gnuradio-3.7.5/build/gr-audio/swig && "" | |
11 | # : permission denied | 11 | # : permission denied | |
12 | 12 | |||
13 | PKG_SUGGESTED_OPTIONS= filter-design | 13 | PKG_SUGGESTED_OPTIONS= filter-design | |
14 | 14 | |||
15 | .include "../../mk/bsd.options.mk" | 15 | .include "../../mk/bsd.options.mk" | |
16 | 16 | |||
17 | .if !empty(PKG_OPTIONS:Mninja-build) | 17 | .if !empty(PKG_OPTIONS:Mninja-build) | |
18 | CMAKE_ARGS+= -GNinja | 18 | CMAKE_ARGS+= -GNinja | |
19 | BUILD_DEPENDS+= ninja-build-[0-9]*:../../devel/ninja-build | 19 | BUILD_DEPENDS+= ninja-build-[0-9]*:../../devel/ninja-build | |
20 | 20 | |||
21 | do-build: | 21 | do-build: | |
22 | (cd ${WRKSRC}/build; ninja) | 22 | cd ${WRKSRC}/${BUILD_DIRS} && ${PKGSRC_SETENV} ${MAKE_ENV} ninja | |
23 | .else | 23 | .else | |
24 | do-build: | 24 | do-build: | |
25 | (cd ${WRKSRC}/build; ${BUILD_MAKE_CMD}) | 25 | cd ${WRKSRC}/${BUILD_DIRS} && ${BUILD_MAKE_CMD} | |
26 | .endif | 26 | .endif | |
27 | 27 | |||
28 | .if !empty(PKG_OPTIONS:Mfilter-design) | 28 | .if !empty(PKG_OPTIONS:Mfilter-design) | |
29 | # Running gr_filter_design asks for the package | 29 | # Running gr_filter_design asks for the package | |
30 | DEPENDS+= ${PYPKGPREFIX}-scipy-[0-9]*:../../math/py-scipy12 | 30 | DEPENDS+= ${PYPKGPREFIX}-scipy-[0-9]*:../../math/py-scipy12 | |
31 | .endif | 31 | .endif | |
32 | 32 | |||
33 | .if !empty(PKG_OPTIONS:Malsa) | 33 | .if !empty(PKG_OPTIONS:Malsa) | |
34 | .include "../../audio/alsa-lib/buildlink3.mk" | 34 | .include "../../audio/alsa-lib/buildlink3.mk" | |
35 | ALSA_ENABLED= | 35 | ALSA_ENABLED= | |
36 | CONF_FILES+= ${EGDIR}/gr-audio-alsa.conf ${PKG_SYSCONFDIR}/gr-audio-alsa.conf | 36 | CONF_FILES+= ${EGDIR}/gr-audio-alsa.conf ${PKG_SYSCONFDIR}/gr-audio-alsa.conf | |
37 | PLIST_SRC+= ${PKGDIR}/PLIST.alsa | 37 | PLIST_SRC+= ${PKGDIR}/PLIST.alsa | |
38 | .else | 38 | .else |
@@ -1,19 +1,21 @@ | @@ -1,19 +1,21 @@ | |||
1 | # $NetBSD: Makefile,v 1.31 2020/05/06 14:04:41 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.32 2020/05/19 13:58:24 joerg Exp $ | |
2 | 2 | |||
3 | PKGNAME= gnuradio-doxygen-${VERSION} | 3 | PKGNAME= gnuradio-doxygen-${VERSION} | |
4 | PKGREVISION= 4 | 4 | PKGREVISION= 4 | |
5 | COMMENT= Doxygen documentation of GNU Radio | 5 | COMMENT= Doxygen documentation of GNU Radio | |
6 | 6 | |||
7 | BUILD_DIRS= build/docs | |||
8 | ||||
7 | .include "../../ham/gnuradio-core/Makefile.common" | 9 | .include "../../ham/gnuradio-core/Makefile.common" | |
8 | .include "../../ham/gnuradio-core/Nocore.mk" | 10 | .include "../../ham/gnuradio-core/Nocore.mk" | |
9 | 11 | |||
10 | BUILD_DEPENDS+= doxygen>=1.8.15:../../devel/doxygen | 12 | BUILD_DEPENDS+= doxygen>=1.8.15:../../devel/doxygen | |
11 | BUILD_DEPENDS+= graphviz-[0-9]*:../../graphics/graphviz | 13 | BUILD_DEPENDS+= graphviz-[0-9]*:../../graphics/graphviz | |
12 | 14 | |||
13 | DEPENDS+= web2c-[0-9]*:../../print/web2c | 15 | DEPENDS+= web2c-[0-9]*:../../print/web2c | |
14 | # in case those packages are already installed by other requirement.. | 16 | # in case those packages are already installed by other requirement.. | |
15 | DEPENDS+= texlive-collection-latex-[0-9]*:../../meta-pkgs/texlive-collection-latex | 17 | DEPENDS+= texlive-collection-latex-[0-9]*:../../meta-pkgs/texlive-collection-latex | |
16 | DEPENDS+= tex-newunicodechar-[-0-9]*:../../print/tex-newunicodechar | 18 | DEPENDS+= tex-newunicodechar-[-0-9]*:../../print/tex-newunicodechar | |
17 | 19 | |||
18 | PYTHON_VERSIONED_DEPENDENCIES= sphinx:build | 20 | PYTHON_VERSIONED_DEPENDENCIES= sphinx:build | |
19 | 21 |