diff options
author | pawel <pawel@FreeBSD.org> | 2015-01-02 03:56:44 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2015-01-02 03:56:44 +0800 |
commit | 3a80912c720c39bcb315890421b87e11c253bbb3 (patch) | |
tree | 91e27949b9f11b95cff6cade3bac67f4c15f4f85 /audio | |
parent | a2b7ab47f0a21fa817732dafffdbc374c71bea7d (diff) | |
download | freebsd-ports-gnome-3a80912c720c39bcb315890421b87e11c253bbb3.tar.gz freebsd-ports-gnome-3a80912c720c39bcb315890421b87e11c253bbb3.tar.zst freebsd-ports-gnome-3a80912c720c39bcb315890421b87e11c253bbb3.zip |
- Update to version 0.2.8, add LICENSE [1]
- Fix build on DragonFly and when LOCALBASE != PREFIX [2]
- Make sure to link with audio/portaudio2 [2]
PR: 196054
Submitted by: maintainer [1], Jan Beich [2]
Diffstat (limited to 'audio')
-rw-r--r-- | audio/py-pyaudio/Makefile | 9 | ||||
-rw-r--r-- | audio/py-pyaudio/distinfo | 4 | ||||
-rw-r--r-- | audio/py-pyaudio/files/patch-setup.py | 26 |
3 files changed, 14 insertions, 25 deletions
diff --git a/audio/py-pyaudio/Makefile b/audio/py-pyaudio/Makefile index 51598dbbbc66..96e8b3b6d655 100644 --- a/audio/py-pyaudio/Makefile +++ b/audio/py-pyaudio/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= pyaudio -PORTVERSION= 0.2.7 +PORTVERSION= 0.2.8 CATEGORIES= audio python MASTER_SITES= http://people.csail.mit.edu/hubert/pyaudio/packages/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -10,7 +10,9 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= jaap@NLnetLabs.nl COMMENT= Portaudio toolkit bindings for Python -LIB_DEPENDS= libportaudio.so:${PORTSDIR}/audio/portaudio2 +LICENSE= MIT + +LIB_DEPENDS= libportaudio.so.2:${PORTSDIR}/audio/portaudio2 USES= python USE_PYTHON= distutils autoplist @@ -21,7 +23,8 @@ OPTIONS_DEFINE= DOCS PORTDOCS= * post-patch: - @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/setup.py + @${REINPLACE_CMD} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ + ${WRKSRC}/setup.py post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} diff --git a/audio/py-pyaudio/distinfo b/audio/py-pyaudio/distinfo index 508a69ab5126..33bb06e41723 100644 --- a/audio/py-pyaudio/distinfo +++ b/audio/py-pyaudio/distinfo @@ -1,2 +1,2 @@ -SHA256 (pyaudio-0.2.7.tar.gz) = 7807cf937df3652f64b014b9f579c308cf87057d32ed4250a6b28844e2b56287 -SIZE (pyaudio-0.2.7.tar.gz) = 182396 +SHA256 (pyaudio-0.2.8.tar.gz) = 4f85367cf79657616684487037957ac38582ecc5389b89420fe61d901b719551 +SIZE (pyaudio-0.2.8.tar.gz) = 235900 diff --git a/audio/py-pyaudio/files/patch-setup.py b/audio/py-pyaudio/files/patch-setup.py index 185b0d035571..4855cc079d63 100644 --- a/audio/py-pyaudio/files/patch-setup.py +++ b/audio/py-pyaudio/files/patch-setup.py @@ -1,29 +1,15 @@ --- ./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 @@ +@@ -74,6 +74,12 @@ else: external_libraries = ['portaudio'] extra_link_args = [] -+if sys.platform.startswith('freebsd'): -+ extra_link_args = ['-L%%PREFIX%%/lib/portaudio2'] ++if sys.platform.startswith('dragonfly') or \ ++ sys.platform.startswith('freebsd'): ++ include_dirs = ['%%LOCALBASE%%/include/portaudio2'] ++ external_libraries = [] ++ extra_link_args = ['%%LOCALBASE%%/lib/portaudio2/libportaudio.so'] + 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', |