FreeBSD Bugzilla – Attachment 151004 Details for
Bug 196054
audio/py-pyaudio: Links with portaudio instead of portaudio2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to py-pyaudio
py-pyaudio.patch (text/plain), 2.65 KB, created by
Jaap Akkerhuis
on 2014-12-27 20:02:47 UTC
(
hide
)
Description:
Patch to py-pyaudio
Filename:
MIME Type:
Creator:
Jaap Akkerhuis
Created:
2014-12-27 20:02:47 UTC
Size:
2.65 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 374914) >+++ Makefile (working copy) >@@ -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,8 +10,11 @@ > MAINTAINER= jaap@NLnetLabs.nl > COMMENT= Portaudio toolkit bindings for Python > >-LIB_DEPENDS= libportaudio.so:${PORTSDIR}/audio/portaudio2 >+LICENSE= MIT > >+BUILD_DEPENDS= portaudio2>0:${PORTSDIR}/audio/portaudio2 >+RUN_DEPENDS= portaudio2>0:${PORTSDIR}/audio/portaudio2 >+ > USES= python > USE_PYTHON= distutils autoplist > >@@ -21,7 +24,8 @@ > 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} >Index: distinfo >=================================================================== >--- distinfo (revision 374914) >+++ distinfo (working copy) >@@ -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 >Index: files/patch-setup.py >=================================================================== >--- files/patch-setup.py (revision 374914) >+++ files/patch-setup.py (working copy) >@@ -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',
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 196054
:
150695
|
150732
| 151004 |
151006