svn commit: r447496 - in head/audio: . aubio py-aubio
Jason E. Hale
jhale at FreeBSD.org
Mon Aug 7 15:33:53 UTC 2017
Author: jhale
Date: Mon Aug 7 15:33:51 2017
New Revision: 447496
URL: https://svnweb.freebsd.org/changeset/ports/447496
Log:
New port: audio/py-aubio - Python bindings for audio/aubio
- Adjust audio/aubio to be the master port for audio/py-aubio
- Take maintainership
- Fix LICENSE
Added:
head/audio/py-aubio/
head/audio/py-aubio/Makefile (contents, props changed)
Modified:
head/audio/Makefile
head/audio/aubio/Makefile
Modified: head/audio/Makefile
==============================================================================
--- head/audio/Makefile Mon Aug 7 14:27:08 2017 (r447495)
+++ head/audio/Makefile Mon Aug 7 15:33:51 2017 (r447496)
@@ -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
Modified: head/audio/aubio/Makefile
==============================================================================
--- head/audio/aubio/Makefile Mon Aug 7 14:27:08 2017 (r447495)
+++ head/audio/aubio/Makefile Mon Aug 7 15:33:51 2017 (r447496)
@@ -3,18 +3,22 @@
PORTNAME= aubio
PORTVERSION= 0.4.5
-CATEGORIES= audio
+PORTREVISION?= 0
+CATEGORIES?= audio
MASTER_SITES= http://aubio.org/pub/
-MAINTAINER= ports at FreeBSD.org
-COMMENT= Library for audio labelling
+MAINTAINER?= jhale at 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
@@ -48,5 +52,7 @@ post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/aubio${b}
.endfor
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libaubio.so
+
+.endif # !defined(SLAVEPORT)
.include <bsd.port.mk>
Added: head/audio/py-aubio/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/audio/py-aubio/Makefile Mon Aug 7 15:33:51 2017 (r447496)
@@ -0,0 +1,35 @@
+# $FreeBSD$
+
+PORTREVISION= 0
+CATEGORIES= audio python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= jhale at 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"
More information about the svn-ports-all
mailing list