New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13587: openal-1.1-updated.diff

File openal-1.1-updated.diff, 2.6 KB (added by ryandesign@…, 21 months ago)

updated patch

  • Portfile

     
    33PortSystem              1.0 
    44 
    55name                    openal 
    6 version                 1.0 
     6version                 1.1 
    77categories              audio devel 
    88platforms               darwin 
    99maintainers             nomaintainer 
     
    1515 
    1616homepage                http://www.openal.org/ 
    1717master_sites            macports 
    18 #svn.url                 http://opensource.creative.com/repos/openal/tags/MacOSX1-2_Spec1-0/ 
    19 checksums               sha1 156d26e6369b13efe9a525cb0db9e6078ecb05a9 
     18#svn.url                 http://opensource.creative.com/repos/openal/tags/MacOSX1-1_Spec1-1/ 
    2019use_bzip2               yes 
    2120 
    22 worksrcdir              openal-1.0/macosx 
     21checksums               sha1    b4c720ee0b426a0636f13e97af3b6f4f8e170da0 \ 
     22                        rmd160  5bfb2ca0374186f5a4bd2c6a156134197ad897ce 
    2323 
    24 patch { 
    25     reinplace "s/CADebugMacros.cp/CADebugMacros.cpp/g" ${worksrcpath}/al_osx.pbproj/project.pbxproj 
    26     reinplace "s/CADebugMacros.cp/CADebugMacros.cpp/g" ${worksrcpath}/al_osx.xcode/project.pbxproj 
    27 } 
     24worksrcdir              ${name}-${version}/OpenAL-MacOSX 
    2825 
    2926use_configure           no 
    3027 
    3128build.type              pbx 
    32 build.target 
    33 build.args              -project al_osx.xcode 
    34 post-build { 
    35     file copy ${filespath}/Makefile ${worksrcpath} 
    36     system "cd ${worksrcpath} && make all PREFIX=${prefix}" 
    37 } 
     29build.target            -configuration Deployment 
     30build.args              -project OpenAL.xcodeproj 
    3831 
    39 destroot { 
    40     xinstall -m 755 -d ${destroot}${prefix}/include/openal 
    41     xinstall -m 644 -W ${worksrcpath}/al al.h alc.h alctypes.h altypes.h \ 
    42         alut.h ${destroot}${prefix}/include/openal 
    43     xinstall -m 644 ${worksrcpath}/libopenal1.0.0.dylib \ 
    44         ${destroot}${prefix}/lib 
     32destroot.post_args      -configuration Deployment \ 
     33                        INSTALL_PATH=${prefix}/lib \ 
     34                        DSTROOT=${destroot} 
     35post-destroot { 
     36#    xinstall -m 755 -d ${destroot}${prefix}/include/openal 
     37#    xinstall -m 644 -W ${worksrcpath}/al al.h alc.h alctypes.h altypes.h \ 
     38#        alut.h ${destroot}${prefix}/include/openal 
    4539    system "cd ${destroot}${prefix}/lib \ 
    46         && ln -s libopenal1.0.0.dylib libopenal1.0.dylib \ 
    47         && ln -s libopenal1.0.0.dylib libopenal1.dylib \ 
    48         && ln -s libopenal1.0.0.dylib libopenal.dylib" 
     40        && mv openal.dylib libopenal1.1.0.dylib \ 
     41        && ln -s libopenal1.1.0.dylib libopenal1.1.dylib \ 
     42        && ln -s libopenal1.1.0.dylib libopenal1.dylib \ 
     43        && ln -s libopenal1.1.0.dylib libopenal.dylib" 
    4944}