summaryrefslogtreecommitdiff
path: root/audio/py-aubio/Makefile
blob: dcd93d374270a29301341020434adcd264e76ec6 (plain)
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
PORTREVISION=	0
CATEGORIES=	audio python
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	jhale@FreeBSD.org
COMMENT=	Python bindings for aubio music analysis

LIB_DEPENDS=	libaubio.so:audio/aubio
BUILD_DEPENDS=	${PYNUMPY}
RUN_DEPENDS=	${PYNUMPY}
TEST_DEPENDS=	sox:audio/sox \
		${PYTHON_PKGNAMEPREFIX}pytest>=2.9:devel/py-pytest@${PY_FLAVOR}

USES+=		python:3.6+
USE_PYTHON=	autoplist concurrent distutils

TEST_TARGET=	${WRKSRC}/python
DO_MAKE_TEST=	${SETENV} ${TEST_ENV} ${LOCALBASE}/bin/pytest-${PYTHON_VER}

MASTERDIR=	${.CURDIR}/../../audio/aubio
SLAVEPORT=	py
PLIST=		${.CURDIR}/pkg-plist

pre-test:
	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} create_test_sounds)

post-install:
	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/_aubio*.so

.include "${MASTERDIR}/Makefile"