Ticket #39195: py-pyaudio.diff

File py-pyaudio.diff, 1.0 KB (added by larryv (Lawrence Velázquez), 11 years ago)

explicitly include MacPorts include directory, for older Clang

  • Portfile

     
    3232if {${name} != ${subport}} {
    3333    depends_lib-append  port:portaudio
    3434
     35    patchfiles          patch-setup.py.diff
    3536    post-patch {
    36         reinplace "s|portaudio-v19|${prefix}|g" ${worksrcpath}/setup.py
     37        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
    3738    }
    3839
    3940    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 = []