Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Dec 2012 10:11:42 +0000 (UTC)
From:      Marcus von Appen <mva@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r309383 - in head/audio: . py-pyaudio py-pyaudio/files
Message-ID:  <201212221011.qBMABgQX056039@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mva
Date: Sat Dec 22 10:11:42 2012
New Revision: 309383
URL: http://svnweb.freebsd.org/changeset/ports/309383

Log:
  PyAudio provides Python bindings for PortAudio, the cross-platform
  audio I/O library. With PyAudio, you can easily use Python to play
  and record audio on a variety of platforms.
  
  WWW: http://people.csail.mit.edu/hubert/pyaudio/
  
  PR:		ports/173708
  Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl>

Added:
  head/audio/py-pyaudio/
  head/audio/py-pyaudio/Makefile   (contents, props changed)
  head/audio/py-pyaudio/distinfo   (contents, props changed)
  head/audio/py-pyaudio/files/
  head/audio/py-pyaudio/files/patch-setup.py   (contents, props changed)
  head/audio/py-pyaudio/pkg-descr   (contents, props changed)
  head/audio/py-pyaudio/pkg-plist   (contents, props changed)
Modified:
  head/audio/Makefile

Modified: head/audio/Makefile
==============================================================================
--- head/audio/Makefile	Sat Dec 22 07:02:30 2012	(r309382)
+++ head/audio/Makefile	Sat Dec 22 10:11:42 2012	(r309383)
@@ -602,6 +602,7 @@
     SUBDIR += pure-audio
     SUBDIR += py-ao
     SUBDIR += py-apetag
+    SUBDIR += py-pyaudio
     SUBDIR += py-cddb
     SUBDIR += py-eyed3
     SUBDIR += py-fastaudio

Added: head/audio/py-pyaudio/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/py-pyaudio/Makefile	Sat Dec 22 10:11:42 2012	(r309383)
@@ -0,0 +1,38 @@
+# Created by: Jaap Akkerhuis <jaap@NLnetLabs.nl>
+# $FreeBSD$
+
+PORTNAME=	pyaudio
+PORTVERSION=	0.2.7
+CATEGORIES=	audio python
+MASTER_SITES=	http://people.csail.mit.edu/hubert/pyaudio/packages/
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	jaap@NLnetLabs.nl
+COMMENT=	Portaudio toolkit bindings for Python
+
+LIB_DEPENDS=	portaudio.2:${PORTSDIR}/audio/portaudio2
+
+USE_PYTHON=		yes
+USE_PYDISTUTILS=	yes
+PYDISTUTILS_PKGNAME=	PyAudio
+
+WRKSRC=		${WRKDIR}/PyAudio-${PORTVERSION}
+
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
+post-patch:
+	@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/setup.py
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	@${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}
+	@${INSTALL_DATA} ${WRKSRC}/docs/*.js ${DOCSDIR}
+	@${INSTALL_DATA} ${WRKSRC}/docs/*.inv ${DOCSDIR}
+	@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} _static ${DOCSDIR}/
+	@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} _sources ${DOCSDIR}/
+.endif
+
+.include <bsd.port.mk>

Added: head/audio/py-pyaudio/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/py-pyaudio/distinfo	Sat Dec 22 10:11:42 2012	(r309383)
@@ -0,0 +1,2 @@
+SHA256 (pyaudio-0.2.7.tar.gz) = 7807cf937df3652f64b014b9f579c308cf87057d32ed4250a6b28844e2b56287
+SIZE (pyaudio-0.2.7.tar.gz) = 182396

Added: head/audio/py-pyaudio/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/py-pyaudio/files/patch-setup.py	Sat Dec 22 10:11:42 2012	(r309383)
@@ -0,0 +1,29 @@
+--- ./setup.py.orig	2012-11-07 00:17:06.624869638 +0100
++++ ./setup.py	2012-11-07 00:37:17.129040078 +0100
+@@ -57,7 +57,7 @@
+ 
+ pyaudio_module_sources = ['src/_portaudiomodule.c']
+ 
+-include_dirs = []
++include_dirs = ['%%PREFIX%%/include/portaudio2']
+ external_libraries = []
+ extra_compile_args = ['-fno-strict-aliasing']
+ extra_link_args = []
+@@ -74,6 +74,9 @@
+     external_libraries = ['portaudio']
+     extra_link_args = []
+ 
++if sys.platform.startswith('freebsd'):
++    extra_link_args = ['-L%%PREFIX%%/lib/portaudio2']
++
+ if sys.platform == 'darwin':
+     defines += [('MACOSX', '1')]
+ 
+@@ -83,7 +86,6 @@
+ 
+ if STATIC_LINKING:
+ 
+-    # platform specific configuration
+     if sys.platform == 'darwin':
+         extra_link_args += ['-framework', 'CoreAudio',
+                             '-framework', 'AudioToolbox',

Added: head/audio/py-pyaudio/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/py-pyaudio/pkg-descr	Sat Dec 22 10:11:42 2012	(r309383)
@@ -0,0 +1,5 @@
+PyAudio provides Python bindings for PortAudio, the cross-platform
+audio I/O library. With PyAudio, you can easily use Python to play
+and record audio on a variety of platforms.
+
+WWW: http://people.csail.mit.edu/hubert/pyaudio/

Added: head/audio/py-pyaudio/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/py-pyaudio/pkg-plist	Sat Dec 22 10:11:42 2012	(r309383)
@@ -0,0 +1,35 @@
+%%PYTHON_SITELIBDIR%%/pyaudio.py
+%%PYTHON_SITELIBDIR%%/pyaudio.pyc
+%%PYTHON_SITELIBDIR%%/pyaudio.pyo
+%%PYTHON_SITELIBDIR%%/_portaudio.so
+%%PORTDOCS%%%%DOCSDIR%%/_sources/examples.txt
+%%PORTDOCS%%%%DOCSDIR%%/_sources/index.txt
+%%PORTDOCS%%%%DOCSDIR%%/_static/ajax-loader.gif
+%%PORTDOCS%%%%DOCSDIR%%/_static/basic.css
+%%PORTDOCS%%%%DOCSDIR%%/_static/comment-bright.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/comment-close.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/comment.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/doctools.js
+%%PORTDOCS%%%%DOCSDIR%%/_static/down-pressed.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/down.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/file.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/jquery.js
+%%PORTDOCS%%%%DOCSDIR%%/_static/minus.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/nature.css
+%%PORTDOCS%%%%DOCSDIR%%/_static/plus.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/pygments.css
+%%PORTDOCS%%%%DOCSDIR%%/_static/searchtools.js
+%%PORTDOCS%%%%DOCSDIR%%/_static/underscore.js
+%%PORTDOCS%%%%DOCSDIR%%/_static/up-pressed.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/up.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/websupport.js
+%%PORTDOCS%%%%DOCSDIR%%/examples.html
+%%PORTDOCS%%%%DOCSDIR%%/genindex.html
+%%PORTDOCS%%%%DOCSDIR%%/index.html
+%%PORTDOCS%%%%DOCSDIR%%/objects.inv
+%%PORTDOCS%%%%DOCSDIR%%/py-modindex.html
+%%PORTDOCS%%%%DOCSDIR%%/search.html
+%%PORTDOCS%%%%DOCSDIR%%/searchindex.js
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/_sources
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/_static
+%%PORTDOCS%%@dirrm %%DOCSDIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212221011.qBMABgQX056039>