Ticket #18720: portaudio-18720.diff

File portaudio-18720.diff, 1.7 KB (added by ryandesign (Ryan Carsten Schmidt), 16 years ago)
  • Portfile

     
    33PortSystem       1.0
    44name             portaudio
    55version          19.20071207
     6revision         1
    67categories       audio devel
    78platforms        macosx
    89maintainers      themiwi@users.sourceforge.net
     
    3031# Universal building is on by default
    3132universal_variant   no
    3233
    33 post-build {
    34   copy ${worksrcpath}/portaudio-2.0.pc.in ${worksrcpath}/portaudio.pc
    35   reinplace -E "s|\@prefix\@|${prefix}|g" ${worksrcpath}/portaudio.pc
    36   reinplace -E "s|\@exec_prefix\@|${prefix}/bin|g" ${worksrcpath}/portaudio.pc
    37   reinplace -E "s|\@libdir\@|${prefix}/lib|g" ${worksrcpath}/portaudio.pc
    38   reinplace -E "s|\@includedir\@|${prefix}/include|g" ${worksrcpath}/portaudio.pc
    39   reinplace -E "s|\@LIBS\@|-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework -framework CoreServices|g" ${worksrcpath}/portaudio.pc
    40   reinplace -E "s|\@THREAD_CFLAGS\@||g" ${worksrcpath}/portaudio.pc
    41 }
    42 
    4334post-destroot {
    44   xinstall -c -d  ${destroot}/${prefix}/lib/pkgconfig
    45   xinstall -c -m 644 ${worksrcpath}/portaudio.pc ${destroot}/${prefix}/lib/pkgconfig
    46   xinstall -c -d  ${destroot}/${prefix}/share/doc/${name}
    47   xinstall -c -m 644 ${worksrcpath}/README.txt  \
    48                      ${worksrcpath}/COMPILING.DARWIN \
    49                      ${worksrcpath}/LICENSE.txt \
    50                      ${worksrcpath}/V19-devel-readme.txt \
    51                      ${destroot}/${prefix}/share/doc/${name}
     35  xinstall -d ${destroot}${prefix}/share/doc/${name}
     36  xinstall -m 644 -W ${worksrcpath} \
     37    README.txt  \
     38    LICENSE.txt \
     39    V19-devel-readme.txt \
     40    ${destroot}${prefix}/share/doc/${name}
    5241}
    5342