# $NetBSD: Makefile,v 1.49 2023/07/01 08:37:37 wiz Exp $
DISTNAME= gr-osmosdr-0.2.4
PKGREVISION= 3
CATEGORIES= ham
# main git repo doesn't allow snapshots to be downloaded
#MASTER_SITES= https://git.osmocom.org/gr-osmosdr/snapshot/
MASTER_SITES= ${MASTER_SITE_GITHUB:=osmocom/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://git.osmocom.org/gr-osmosdr
COMMENT= SDR Hardware support for OsmoSDR and so many more
LICENSE= gnu-gpl-v2
# for docs/doxygen/update_pydoc.py
TOOL_DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
GCC_REQD+= 8 # stdc++fs
USE_CMAKE= yes
USE_LANGUAGES= c c++11
USE_TOOLS= cmake
# Suppress warning for developer
CMAKE_ARGS+= -Wno-dev
# TODO: make it PKG_OPTION
CMAKE_ARGS+= -DENABLE_DOXYGEN=OFF
CMAKE_ARGS+= -Dpybind11_DIR=${PREFIX}/${PYSITELIB}/pybind11/share/cmake/pybind11
PLIST_SUBST+= PYSITELIB=${PYSITELIB}
PYTHON_VERSIONS_INCOMPATIBLE= 27 37 38
REPLACE_PYTHON+= apps/osmocom_siggen_base.py
.include "../../audio/libsndfile/buildlink3.mk"
.include "../../devel/boost-headers/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/libusb1/buildlink3.mk"
.include "../../devel/orc/buildlink3.mk"
.include "../../devel/py-pybind11/buildlink3.mk"
.include "../../ham/gnuradio-core/buildlink3.mk"
.include "../../ham/gnuradio-uhd/buildlink3.mk"
.include "../../ham/hackrf/buildlink3.mk"
.include "../../ham/rtl-sdr/buildlink3.mk"
.include "../../ham/soapy-sdr/buildlink3.mk"
.include "../../ham/uhd/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../math/py-numpy/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>