Ticket #54125: portaudio.diff

File portaudio.diff, 2.4 KB (added by RJVB (René Bertin), 7 years ago)
  • audio/portaudio/Portfile

    old new  
    33PortSystem          1.0
    44
    55name                portaudio
    6 version             19.20140130
    7 revision            1
     6version             190600_20161030
    87categories          audio devel
    98platforms           darwin macosx
    109maintainers         nomaintainer
     
    2625distname            pa_stable_v[strsed ${version} {g/\./_/}]
    2726extract.suffix      .tgz
    2827
    29 checksums           rmd160  0a290cea8a102a45b2df9b72046b3eed0ab35b4f \
    30                     sha256  8fe024a5f0681e112c6979808f684c3516061cc51d3acc0b726af98fc96c8d57
     28checksums           rmd160  e6e5cd3f3cb7469aa17549c189e445d573567e13 \
     29                    sha256  f5a21d7dcd6ee84397446fa1fa1a0675bb2e8a4a6dceb4305a8404698d8d1513
    3130
    3231worksrcdir          ${name}
    3332
     
    3534# To build a non-universal library for the host architecture,
    3635# simply use the --disable-mac-universal option with configure.
    3736# http://www.portaudio.com/trac/wiki/TutorialDir/Compile/MacintoshCoreAudio
    38 configure.args      --disable-mac-universal --enable-cxx
     37configure.args      --disable-mac-universal --enable-cxx --disable-jack
     38
     39variant jack description {enable JACK support} {
     40    configure.args-replace --disable-jack \
     41                    --enable-jack
     42    depends_lib-append \
     43                    port:jack
     44}
     45
     46variant tools description "install the example and test utilities to ${prefix}/libexec/portaudio" {
     47    post-build {
     48        # be certain the targets were build
     49        system -W ${build.dir} "make tests"
     50        system -W ${build.dir} "make examples"
     51    }
     52    post-destroot {
     53        set utildir ${destroot}${prefix}/libexec/portaudio
     54        xinstall -m 755 -d ${utildir}
     55        # clean up any .dSYM directories that might have been created
     56        foreach b [glob -nocomplain ${build.dir}/bin/.libs/pa*.dSYM] {
     57            file delete -force ${b}
     58        }
     59        foreach b [glob ${build.dir}/bin/.libs/pa*] {
     60            xinstall -m 755 ${b} ${utildir}
     61        }
     62    }
     63}
    3964
    4065# patch-configure removes -Werror, and adds -DNDEBUG.
    4166patchfiles          patch-configure \
     
    4974    }
    5075}
    5176
    52 use_parallel_build  no
    53 
    5477post-destroot {
    5578    xinstall -d ${destroot}${prefix}/share/doc/${name}
    5679    xinstall -m 644 -W ${worksrcpath} \