blob: 736577e4ea62f5dc37b1e900d00e63310559f053 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
PORTNAME= essentia
DISTVERSIONPREFIX= v
DISTVERSION= 2.1_beta5-859
PORTREVISION= 3
DISTVERSIONSUFFIX= -gb247091f
CATEGORIES= audio
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Python bindings for essentia, C++ library for audio and music analysis
WWW= https://essentia.upf.edu/
LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/COPYING.txt
BUILD_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
LIB_DEPENDS= libessentia.so:audio/essentia
RUN_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
PATCH_SITES= https://raw.githubusercontent.com/MTG/essentia/d02b6c752046802a711530e2bcd5feafca42247d/
PATCH_FILES= waf
USES= eigen:3 pkgconfig python
USE_PYTHON= pytest
USE_GITHUB= yes
GH_ACCOUNT= MTG
post-extract:
@${CP} ${DISTDIR}/waf ${WRKSRC}/
do-configure:
@cd ${BUILD_WRKSRC} && ${SETENV} ${BUILD_ENV} ${PYTHON_CMD} waf configure --only-python
do-build:
@cd ${BUILD_WRKSRC} && ${SETENV} ${BUILD_ENV} ${PYTHON_CMD} waf build --only-python
do-install:
# install
cd ${BUILD_WRKSRC} && ${SETENV} ${BUILD_ENV} ${PYTHON_CMD} waf install --only-python --prefix ${PREFIX} --destdir ${STAGEDIR}
# strip
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/essentia/_essentia${PYTHON_EXT_SUFFIX}.so
.include <bsd.port.mk>
|