[BACK]Return to Makefile.common CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / ham / gnuradio-core

Annotation of pkgsrc/ham/gnuradio-core/Makefile.common, Revision 1.17

1.17    ! mef         1: # $NetBSD: Makefile.common,v 1.16 2018/07/04 13:40:21 jperkin Exp $
1.1       mef         2: # This Makefile fragment is included in the package Makefiles for
                      3: # GNU Radio distributed packages (they all share common configure and build
                      4: # settings).
                      5: # used by ham/gnuradio-atsc/Makefile
                      6: # used by ham/gnuradio-channels/Makefile
                      7: # used by ham/gnuradio-companion/Makefile
                      8: # used by ham/gnuradio-core/Makefile
                      9: # used by ham/gnuradio-ctrlport/Makefile
                     10:
                     11: # used by ham/gnuradio-digital/Makefile
                     12: # used by ham/gnuradio-doxygen/Makefile
                     13: # used by ham/gnuradio-dtv/Makefile
                     14: # used by ham/gnuradio-fcd/Makefile
                     15: # used by ham/gnuradio-fec/Makefile
                     16:
                     17: # used by ham/gnuradio-fcd/Makefile
                     18: # used by ham/gnuradio-noaa/Makefile
                     19: # used by ham/gnuradio-pager/Makefile
                     20: # used by ham/gnuradio-qtgui/Makefile
                     21: # used by ham/gnuradio-trellis/Makefile
                     22:
                     23: # used by ham/gnuradio-uhd/Makefile
                     24: # used by ham/gnuradio-utils/Makefile
                     25: # used by ham/gnuradio-video-sdl/Makefile
                     26: # used by ham/gnuradio-vocoder/Makefile
                     27: # used by ham/gnuradio-wavelet/Makefile
                     28:
                     29: # used by ham/gnuradio-wxgui/Makefile
                     30: # used by ham/gnuradio-zeromq/Makefile
                     31:
                     32: .include       "../../ham/gnuradio-core/Makefile.version"
                     33:
                     34: DISTNAME?=     gnuradio-${VERSION}
                     35: CATEGORIES+=   ham
1.7       mef        36: MASTER_SITES=  http://s3-dist.gnuradio.org/
1.8       mef        37: MASTER_SITES=  http://gnuradio.org/releases/gnuradio/
1.1       mef        38:
                     39: MAINTAINER?=   pkgsrc-users@NetBSD.org
                     40: HOMEPAGE?=     http://www.gnu.org/software/gnuradio/
                     41: LICENSE=       gnu-gpl-v3
                     42:
                     43: USE_LANGUAGES= c c++
                     44: USE_TOOLS=     perl gmake cmake pkg-config
                     45: USE_CMAKE=     yes
                     46:
                     47: DEPENDS+=      ${PYPKGPREFIX}-cheetah-[0-9]*:../../devel/py-cheetah
1.17    ! mef        48: DEPENDS+=      ${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako
        !            49: DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
1.1       mef        50: # gr_filter_design in gnuradio-core ask for:
                     51: DEPENDS+=      ${PYPKGPREFIX}-qwt-qt4-[0-9]*:../../x11/py-qwt-qt4
                     52:
                     53: DISTINFO_FILE=         ${.CURDIR}/../../ham/gnuradio-core/distinfo
                     54: PATCHDIR=              ${.CURDIR}/../../ham/gnuradio-core/patches
                     55:
1.15      adam       56: PYTHON_VERSIONS_INCOMPATIBLE=   34 35 36 37 # not yet ported as of 3.3.0
1.1       mef        57: PLIST_SUBST+=  PYVERSSUFFIX=${PYVERSSUFFIX}
                     58: PLIST_SUBST+=  PYSITELIB=${PYSITELIB}
                     59: PY_PATCHPLIST= yes
                     60:
                     61: CONFIGURE_DIRS=        build
                     62:
1.11      mef        63: EGDIR=                 share/gnuradio/examples
1.1       mef        64: PKG_SYSCONFSUBDIR=     gnuradio/conf.d
                     65:
1.14      mef        66: CXXFLAGS+=             -pthread
1.1       mef        67: LDFLAGS.DragonFly+=    -lboost_system
                     68: LDFLAGS.SunOS+=                -lboost_system
1.3       mef        69: CXXFLAGS.SunOS+=       -pthreads
1.1       mef        70:
                     71: INSTALLATION_DIRS+=    ${EGDIR}
                     72:
                     73: # --------       R E S E T  CMAKE_ARGS  H E R E  -------------
                     74: CMAKE_ARGS=
                     75:
                     76: # set default as minimum
                     77: # See  http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide
                     78: #      http://gnuradio.org/redmine/projects/gnuradio/wiki/CygwinInstallMain
                     79:
                     80: CMAKE_ARGS+=   -DENABLE_GNURADIO_RUNTIME=ON
                     81: CMAKE_ARGS+=   -DENABLE_GR_ANALOG=ON
                     82: CMAKE_ARGS+=   -DENABLE_GR_AUDIO=ON
                     83: CMAKE_ARGS+=   -DENABLE_GR_BLOCKS=ON
                     84: CMAKE_ARGS+=   -DENABLE_GR_FFT=ON
                     85: CMAKE_ARGS+=   -DENABLE_GR_FILTER=ON
                     86: CMAKE_ARGS+=   -DENABLE_PYTHON=ON
                     87: CMAKE_ARGS+=   -DENABLE_VOLK=ON
1.17    ! mef        88: CMAKE_ARGS+=   -DCMAKE_HAVE_PTHREADS_CREATE=OFF
1.1       mef        89:
                     90: # Default setting (for pkgsrc)
                     91: CMAKE_ARGS+=   -Wno-dev
                     92: CMAKE_ARGS+=   -DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE
                     93: CMAKE_ARGS+=   -DCMAKE_INCLUDE_PATH=${PREFIX}/include/portaudio2
                     94: CMAKE_ARGS+=   -DCMAKE_LIBRARY_PATH=${PREFIX}/lib/portaudio2
                     95: CMAKE_ARGS+=   -DCMAKE_INSTALL_RPATH=${PREFIX}/lib:${PREFIX}/lib/portaudio2
                     96: CMAKE_ARGS+=   -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE
                     97: CMAKE_ARGS+=   -DLIBUSB_INCLUDE_DIR=${PREFIX}/include/libusb-1.0
                     98:
1.8       mef        99: CMAKE_ARGS+=   -DGR_LIBRARY_DIR=${PREFIX}/lib
1.9       wiedi     100: CMAKE_ARGS+=   -DGR_PREFSDIR=${PREFIX}/share/gnuradio/examples/
1.1       mef       101:
1.17    ! mef       102: # adhoc setup not to pick non default version (say python3.6)
        !           103: # at configure
        !           104: CMAKE_ARGS+=   -DPYTHON_EXECUTABLE=${PREFIX}/bin/python${PYVERSSUFFIX}
        !           105:
1.1       mef       106: CMAKE_ARGS+=   -DZEROMQ_INCLUDE_DIRS=${PREFIX}/include
                    107: CMAKE_ARG_PATH=        ../
                    108:
                    109: .include "options.mk"
                    110:
1.2       mef       111: # disable/enable ALSA, see also patches/patch-gr-audio_lib_CMakeLists.txt
                    112: SUBST_CLASSES+=                alsa
                    113: SUBST_MESSAGE.alsa=    Arrange the patched line depepending on alsa is in PKG_OPTIONS or not
                    114: SUBST_FILES.alsa+=     gr-audio/lib/CMakeLists.txt
                    115: ## The value of ${ALSA_ENABLED} is either '#' or '' by options.mk.
                    116: SUBST_SED.alsa=                -e 's,@@ALSA@@,${ALSA_ENABLED},'
1.16      jperkin   117: SUBST_STAGE.alsa=      pre-configure
1.2       mef       118:
1.7       mef       119: SUBST_CLASSES+=                pyvers
                    120: SUBST_FILES.pyvers=    cmake/Modules/FindSphinx.cmake
                    121: SUBST_MESSAGE.pyvers=  Fix SPHINX_EXECUTABLE NAMES(sphinx-build)
                    122: SUBST_VARS.pyvers+=    PYVERSSUFFIX
                    123: SUBST_STAGE.pyvers=    pre-configure
                    124:
1.1       mef       125: # REPLACE_PYTHON is some 600 files
                    126: .include       "../../ham/gnuradio-core/files/REPLACE_PYTHON"
                    127:
                    128: pre-configure:
                    129:        (${MKDIR} ${WRKSRC}/build;)
                    130:
                    131: do-install:
                    132:        (cd ${WRKSRC}/build; ${GMAKE} DESTDIR=${DESTDIR} install)
                    133:
                    134: .include       "../../audio/gsm/buildlink3.mk"
                    135: .include       "../../audio/jack/buildlink3.mk"
                    136: .include       "../../audio/portaudio-devel/buildlink3.mk"
                    137:
                    138: .include       "../../devel/boost-headers/buildlink3.mk"
                    139: .include       "../../devel/boost-libs/buildlink3.mk"
1.14      mef       140: .include       "../../devel/cppunit/buildlink3.mk"
1.1       mef       141: # VOLK needs orc.h, so in the common
                    142: .include       "../../devel/orc/buildlink3.mk"
                    143: .include       "../../devel/swig2/buildlink3.mk"
                    144:
                    145: .include       "../../lang/python/application.mk"
                    146: .include       "../../math/fftwf/buildlink3.mk"
1.14      mef       147: .include       "../../math/gsl/buildlink3.mk"

CVSweb <webmaster@jp.NetBSD.org>