aboutsummaryrefslogtreecommitdiffstats
path: root/devel/volk/Makefile
blob: 89b131628f57099526b2acb1e269746333c2063b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
PORTNAME=	volk
DISTVERSION=	3.1.1
CATEGORIES=	devel comms hamradio
MASTER_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/v${DISTVERSION}/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	hamradio@FreeBSD.org
COMMENT=	Vector-Optimized Library of Kernels
WWW=		https://github.com/gnuradio/volk

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/mako/__init__.py:textproc/py-mako@${PY_FLAVOR}
LIB_DEPENDS=	libcpu_features.so:devel/cpu_features \
		liborc-0.4.so:devel/orc

USES=		cmake:testing compiler:c++17-lang pathfix python
USE_LDCONFIG=	yes

USE_GITHUB=	nodefault
GH_ACCOUNT=	gnuradio

.include <bsd.port.pre.mk>

.if ${ARCH} == armv7
USE_GCC=	yes
.endif

# Otherwise the shebang doubles in installed version.
# Found by running Q/A tests (stage-qa) with 'DEVELOPER=yes' in /etc/make.conf
post-patch:
	@${REINPLACE_CMD} -e '1d' \
		${WRKSRC}/python/volk_modtool/volk_modtool

# Replace by full version
pre-install:
	@${REINPLACE_CMD} -e 's|#!/usr/local/bin/python3|#!/usr/local/bin/python${PYTHON_VER}|' \
		${WRKDIR}/.build/python/volk_modtool/volk_modtool.exe

.include <bsd.port.post.mk>