View | Details | Raw Unified | Return to bug 196054 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-3 / +7 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	pyaudio
4
PORTNAME=	pyaudio
5
PORTVERSION=	0.2.7
5
PORTVERSION=	0.2.8
6
CATEGORIES=	audio python
6
CATEGORIES=	audio python
7
MASTER_SITES=	http://people.csail.mit.edu/hubert/pyaudio/packages/
7
MASTER_SITES=	http://people.csail.mit.edu/hubert/pyaudio/packages/
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Lines 10-17 Link Here
10
MAINTAINER=	jaap@NLnetLabs.nl
10
MAINTAINER=	jaap@NLnetLabs.nl
11
COMMENT=	Portaudio toolkit bindings for Python
11
COMMENT=	Portaudio toolkit bindings for Python
12
12
13
LIB_DEPENDS=	libportaudio.so:${PORTSDIR}/audio/portaudio2
13
LICENSE=	MIT
14
14
15
BUILD_DEPENDS=	portaudio2>0:${PORTSDIR}/audio/portaudio2
16
RUN_DEPENDS=	portaudio2>0:${PORTSDIR}/audio/portaudio2
17
15
USES=		python
18
USES=		python
16
USE_PYTHON=	distutils autoplist
19
USE_PYTHON=	distutils autoplist
17
20
Lines 21-27 Link Here
21
PORTDOCS=	*
24
PORTDOCS=	*
22
25
23
post-patch:
26
post-patch:
24
	@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/setup.py
27
	@${REINPLACE_CMD} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
28
		${WRKSRC}/setup.py
25
29
26
post-install:
30
post-install:
27
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
31
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (pyaudio-0.2.7.tar.gz) = 7807cf937df3652f64b014b9f579c308cf87057d32ed4250a6b28844e2b56287
1
SHA256 (pyaudio-0.2.8.tar.gz) = 4f85367cf79657616684487037957ac38582ecc5389b89420fe61d901b719551
2
SIZE (pyaudio-0.2.7.tar.gz) = 182396
2
SIZE (pyaudio-0.2.8.tar.gz) = 235900
(-)files/patch-setup.py (-20 / +6 lines)
Lines 1-29 Link Here
1
--- ./setup.py.orig	2012-11-07 00:17:06.624869638 +0100
1
--- ./setup.py.orig	2012-11-07 00:17:06.624869638 +0100
2
+++ ./setup.py	2012-11-07 00:37:17.129040078 +0100
2
+++ ./setup.py	2012-11-07 00:37:17.129040078 +0100
3
@@ -57,7 +57,7 @@
3
@@ -74,6 +74,12 @@ else:
4
 
5
 pyaudio_module_sources = ['src/_portaudiomodule.c']
6
 
7
-include_dirs = []
8
+include_dirs = ['%%PREFIX%%/include/portaudio2']
9
 external_libraries = []
10
 extra_compile_args = ['-fno-strict-aliasing']
11
 extra_link_args = []
12
@@ -74,6 +74,9 @@
13
     external_libraries = ['portaudio']
4
     external_libraries = ['portaudio']
14
     extra_link_args = []
5
     extra_link_args = []
15
 
6
 
16
+if sys.platform.startswith('freebsd'):
7
+if sys.platform.startswith('dragonfly') or \
17
+    extra_link_args = ['-L%%PREFIX%%/lib/portaudio2']
8
+   sys.platform.startswith('freebsd'):
9
+    include_dirs = ['%%LOCALBASE%%/include/portaudio2']
10
+    external_libraries = []
11
+    extra_link_args = ['%%LOCALBASE%%/lib/portaudio2/libportaudio.so']
18
+
12
+
19
 if sys.platform == 'darwin':
13
 if sys.platform == 'darwin':
20
     defines += [('MACOSX', '1')]
14
     defines += [('MACOSX', '1')]
21
 
15
 
22
@@ -83,7 +86,6 @@
23
 
24
 if STATIC_LINKING:
25
 
26
-    # platform specific configuration
27
     if sys.platform == 'darwin':
28
         extra_link_args += ['-framework', 'CoreAudio',
29
                             '-framework', 'AudioToolbox',

Return to bug 196054