diff options
author | Jason E. Hale <jhale@FreeBSD.org> | 2017-08-07 15:33:51 +0000 |
---|---|---|
committer | Jason E. Hale <jhale@FreeBSD.org> | 2017-08-07 15:33:51 +0000 |
commit | 1ef0c674ff6c791040262811ca034bfce5b03cd6 (patch) | |
tree | 2acf0662cc7744b4ae6aa5eedff450d50d3c893d | |
parent | 737e770f0ad54dca17db981d79b74adcc5b5058e (diff) |
Notes
-rw-r--r-- | audio/Makefile | 1 | ||||
-rw-r--r-- | audio/aubio/Makefile | 16 | ||||
-rw-r--r-- | audio/py-aubio/Makefile | 35 |
3 files changed, 47 insertions, 5 deletions
diff --git a/audio/Makefile b/audio/Makefile index 4c39050640d7..e5732815ec2b 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -628,6 +628,7 @@ SUBDIR += py-al SUBDIR += py-ao SUBDIR += py-apetag + SUBDIR += py-aubio SUBDIR += py-cddb SUBDIR += py-discid SUBDIR += py-discogs-client diff --git a/audio/aubio/Makefile b/audio/aubio/Makefile index 41dc05737fde..8e910d5f1e02 100644 --- a/audio/aubio/Makefile +++ b/audio/aubio/Makefile @@ -3,18 +3,22 @@ PORTNAME= aubio PORTVERSION= 0.4.5 -CATEGORIES= audio +PORTREVISION?= 0 +CATEGORIES?= audio MASTER_SITES= http://aubio.org/pub/ -MAINTAINER= ports@FreeBSD.org -COMMENT= Library for audio labelling +MAINTAINER?= jhale@FreeBSD.org +COMMENT?= Library for audio labelling -LICENSE= GPLv3 +LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING +USES+= pkgconfig tar:bzip2 + +.if !defined(SLAVEPORT) BUILD_DEPENDS= txt2man:textproc/txt2man -USES= pkgconfig tar:bzip2 waf +USES+= waf CONFIGURE_ARGS= --mandir=${MANPREFIX}/man USE_LDCONFIG= yes @@ -49,4 +53,6 @@ post-install: .endfor @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libaubio.so +.endif # !defined(SLAVEPORT) + .include <bsd.port.mk> diff --git a/audio/py-aubio/Makefile b/audio/py-aubio/Makefile new file mode 100644 index 000000000000..4e3d12b168b7 --- /dev/null +++ b/audio/py-aubio/Makefile @@ -0,0 +1,35 @@ +# $FreeBSD$ + +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}nose2>=0.6.5:devel/py-nose2 + +USES+= python +USE_PYTHON= autoplist distutils + +CPPFLAGS+= -I${PYTHON_SITELIBDIR}/numpy/core/include + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${WRKSRC}/`ls -rtd build/lib.* | head -1` +TEST_TARGET= test +DO_MAKE_TEST= ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${PYSETUP} + +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" |