Ticket #39195: py-pyaudio.diff
File py-pyaudio.diff, 1.0 KB (added by larryv (Lawrence Velázquez), 11 years ago) |
---|
-
Portfile
32 32 if {${name} != ${subport}} { 33 33 depends_lib-append port:portaudio 34 34 35 patchfiles patch-setup.py.diff 35 36 post-patch { 36 reinplace "s| portaudio-v19|${prefix}|g" ${worksrcpath}/setup.py37 reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py 37 38 } 38 39 39 40 python.link_binaries no -
files/patch-setup.py.diff
1 --- setup.py.orig 2012-10-20 23:08:06.000000000 -0400 2 +++ setup.py 2013-05-24 19:11:44.000000000 -0400 3 @@ -57,7 +57,7 @@ 4 5 pyaudio_module_sources = ['src/_portaudiomodule.c'] 6 7 -include_dirs = [] 8 +include_dirs = ['__PREFIX__/include'] 9 external_libraries = [] 10 extra_compile_args = ['-fno-strict-aliasing'] 11 extra_link_args = []