Index: audio/py-jack/Makefile =================================================================== --- /dev/null +++ audio/py-jack/Makefile @@ -0,0 +1,31 @@ +# Created by: Yuri Victorovich +# $FreeBSD$ + +PORTNAME= jack +PORTVERSION= 0.5.2 +CATEGORIES= audio python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= py-${PORTNAME}-${PORTVERSION} + +MAINTAINER= yuri@rawbw.com +COMMENT= PyJack is a Python bindings for the Jack Audio Server + +LICENSE= GPLv2 + +LIB_DEPENDS= libjack.so:audio/jack +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy + +USES= python:-2.7 localbase +USE_PYTHON= distutils autoplist + +post-patch: + @${REINPLACE_CMD} -e \ + 's|"/usr/local/|"${LOCALBASE}/|; \ + s|"jack", "dl"|"jack"|; \ + s|os.system.*|pass|' \ + ${WRKSRC}/setup.py +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/jack.so + +.include Index: audio/py-jack/distinfo =================================================================== --- /dev/null +++ audio/py-jack/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1500938413 +SHA256 (py-jack-0.5.2.tar.gz) = 67951f7b78ded52f3191a5267cd917f1270a6abe28341ccb3575bdd482488590 +SIZE (py-jack-0.5.2.tar.gz) = 13490 Index: audio/py-jack/files/patch-pyjack.c =================================================================== --- /dev/null +++ audio/py-jack/files/patch-pyjack.c @@ -0,0 +1,10 @@ +--- pyjack.c.orig 2017-07-24 23:24:04 UTC ++++ pyjack.c +@@ -40,7 +40,6 @@ TODO's: + // Global shared data for jack + + /* Uncomment the next line if you have Jack2 */ +-#define JACK2 1 + + + #define PYJACK_MAX_PORTS 256 Index: audio/py-jack/pkg-descr =================================================================== --- /dev/null +++ audio/py-jack/pkg-descr @@ -0,0 +1,6 @@ +PyJack is a module written in C which exposes the Jack API to Python. +For information about Jack see http://jackit.sourceforge.net. This +enables a Python program to connect to and interact with pro-audio +applications which use the Jack Audio Server. + +WWW: https://pypi.python.org/pypi/py-jack