Tue May 19 13:58:24 2020 UTC ()
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.


(joerg)
diff -r1.23 -r1.24 pkgsrc/ham/gnuradio-core/Makefile.common
diff -r1.5 -r1.6 pkgsrc/ham/gnuradio-core/options.mk
diff -r1.7 -r0 pkgsrc/ham/gnuradio-core/files/REPLACE_PYTHON
diff -r1.31 -r1.32 pkgsrc/ham/gnuradio-doxygen/Makefile

cvs diff -r1.23 -r1.24 pkgsrc/ham/gnuradio-core/Makefile.common (expand / switch to unified diff)

--- pkgsrc/ham/gnuradio-core/Makefile.common 2020/01/18 23:32:39 1.23
+++ pkgsrc/ham/gnuradio-core/Makefile.common 2020/05/19 13:58:24 1.24
@@ -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= ../
114SUBST_CLASSES+= alsa 114SUBST_CLASSES+= alsa
115SUBST_MESSAGE.alsa= Arrange the patched line depepending on alsa is in PKG_OPTIONS or not 115SUBST_MESSAGE.alsa= Arrange the patched line depepending on alsa is in PKG_OPTIONS or not
116SUBST_FILES.alsa+= gr-audio/lib/CMakeLists.txt 116SUBST_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.
118SUBST_SED.alsa= -e 's,@@ALSA@@,${ALSA_ENABLED},' 118SUBST_SED.alsa= -e 's,@@ALSA@@,${ALSA_ENABLED},'
119SUBST_STAGE.alsa= pre-configure 119SUBST_STAGE.alsa= pre-configure
120 120
121SUBST_CLASSES+= pyvers 121SUBST_CLASSES+= pyvers
122SUBST_FILES.pyvers= cmake/Modules/FindSphinx.cmake 122SUBST_FILES.pyvers= cmake/Modules/FindSphinx.cmake
123SUBST_MESSAGE.pyvers= Fix SPHINX_EXECUTABLE NAMES(sphinx-build) 123SUBST_MESSAGE.pyvers= Fix SPHINX_EXECUTABLE NAMES(sphinx-build)
124SUBST_VARS.pyvers+= PYVERSSUFFIX 124SUBST_VARS.pyvers+= PYVERSSUFFIX
125SUBST_STAGE.pyvers= pre-configure 125SUBST_STAGE.pyvers= pre-configure
126 126
127# REPLACE_PYTHON is some 600 files 127REPLACE_PYTHON = */*.py */*/*.py */*/*/*.py */*/*/*/*.py */*/*/*/*/*.py \
128.include "../../ham/gnuradio-core/files/REPLACE_PYTHON" 128 */*/*/*/*/*/*.py */*/*/*/*/*/*/*.py */*/*/*/*/*/*/*/*.py
129 129
130pre-configure: 130pre-configure:
131 (${MKDIR} ${WRKSRC}/build;) 131 ${MKDIR} ${WRKSRC}/build
132 132
133do-install: 133do-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"

cvs diff -r1.5 -r1.6 pkgsrc/ham/gnuradio-core/options.mk (expand / switch to unified diff)

--- pkgsrc/ham/gnuradio-core/options.mk 2019/11/03 19:32:07 1.5
+++ pkgsrc/ham/gnuradio-core/options.mk 2020/05/19 13:58:24 1.6
@@ -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
3PKG_OPTIONS_VAR= PKG_OPTIONS.gnuradio 3PKG_OPTIONS_VAR= PKG_OPTIONS.gnuradio
4PKG_SUPPORTED_OPTIONS= ninja-build filter-design alsa 4PKG_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
13PKG_SUGGESTED_OPTIONS= filter-design 13PKG_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)
18CMAKE_ARGS+= -GNinja 18CMAKE_ARGS+= -GNinja
19BUILD_DEPENDS+= ninja-build-[0-9]*:../../devel/ninja-build 19BUILD_DEPENDS+= ninja-build-[0-9]*:../../devel/ninja-build
20 20
21do-build: 21do-build:
22 (cd ${WRKSRC}/build; ninja) 22 cd ${WRKSRC}/${BUILD_DIRS} && ${PKGSRC_SETENV} ${MAKE_ENV} ninja
23.else 23.else
24do-build: 24do-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
30DEPENDS+= ${PYPKGPREFIX}-scipy-[0-9]*:../../math/py-scipy12 30DEPENDS+= ${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"
35ALSA_ENABLED= 35ALSA_ENABLED=
36CONF_FILES+= ${EGDIR}/gr-audio-alsa.conf ${PKG_SYSCONFDIR}/gr-audio-alsa.conf 36CONF_FILES+= ${EGDIR}/gr-audio-alsa.conf ${PKG_SYSCONFDIR}/gr-audio-alsa.conf
37PLIST_SRC+= ${PKGDIR}/PLIST.alsa 37PLIST_SRC+= ${PKGDIR}/PLIST.alsa
38.else 38.else

File Deleted: pkgsrc/ham/gnuradio-core/files/Attic/REPLACE_PYTHON

cvs diff -r1.31 -r1.32 pkgsrc/ham/gnuradio-doxygen/Makefile (expand / switch to unified diff)

--- pkgsrc/ham/gnuradio-doxygen/Makefile 2020/05/06 14:04:41 1.31
+++ pkgsrc/ham/gnuradio-doxygen/Makefile 2020/05/19 13:58:24 1.32
@@ -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
3PKGNAME= gnuradio-doxygen-${VERSION} 3PKGNAME= gnuradio-doxygen-${VERSION}
4PKGREVISION= 4 4PKGREVISION= 4
5COMMENT= Doxygen documentation of GNU Radio 5COMMENT= Doxygen documentation of GNU Radio
6 6
 7BUILD_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
10BUILD_DEPENDS+= doxygen>=1.8.15:../../devel/doxygen 12BUILD_DEPENDS+= doxygen>=1.8.15:../../devel/doxygen
11BUILD_DEPENDS+= graphviz-[0-9]*:../../graphics/graphviz 13BUILD_DEPENDS+= graphviz-[0-9]*:../../graphics/graphviz
12 14
13DEPENDS+= web2c-[0-9]*:../../print/web2c 15DEPENDS+= 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..
15DEPENDS+= texlive-collection-latex-[0-9]*:../../meta-pkgs/texlive-collection-latex 17DEPENDS+= texlive-collection-latex-[0-9]*:../../meta-pkgs/texlive-collection-latex
16DEPENDS+= tex-newunicodechar-[-0-9]*:../../print/tex-newunicodechar 18DEPENDS+= tex-newunicodechar-[-0-9]*:../../print/tex-newunicodechar
17 19
18PYTHON_VERSIONED_DEPENDENCIES= sphinx:build 20PYTHON_VERSIONED_DEPENDENCIES= sphinx:build
19 21