Ticket #13587: openal-1.1-Portfile.diff

File openal-1.1-Portfile.diff, 2.0 KB (added by jmroot (Joshua Root), 16 years ago)

partially working update to version 1.1

  • audio/openal/Portfile

     
    33PortSystem 1.0
    44
    55name                    openal
    6 version                 1.0
     6version                 1.1
    77categories              audio devel
    88platforms               darwin
    99maintainers             nomaintainer
     
    1414
    1515homepage                http://www.openal.org/
    1616master_sites            macports
    17 #svn.url http://opensource.creative.com/repos/openal/tags/MacOSX1-2_Spec1-0/
    18 checksums               sha1 156d26e6369b13efe9a525cb0db9e6078ecb05a9
     17#svn.url http://opensource.creative.com/repos/openal/tags/MacOSX1-1_Spec1-1/
     18checksums               sha1 b4c720ee0b426a0636f13e97af3b6f4f8e170da0
    1919use_bzip2               yes
    2020
    21 worksrcdir              openal-1.0/macosx
     21worksrcdir              ${name}-${version}/OpenAL-MacOSX
    2222
    2323use_configure   no
    2424
    2525build.type              pbx
    26 build.target
    27 build.args              -project al_osx.xcode
    28 post-build      {
    29         file copy ${filespath}/Makefile ${worksrcpath}
    30         system "cd ${worksrcpath} && make all PREFIX=${prefix}"
    31 }
     26build.target            -configuration Deployment
     27build.args              -project OpenAL.xcodeproj
    3228
    33 destroot {
    34         xinstall -m 755 -d ${destroot}${prefix}/include/openal
    35         xinstall -m 644 -W ${worksrcpath}/al al.h alc.h alctypes.h altypes.h \
    36                 alut.h ${destroot}${prefix}/include/openal
    37         xinstall -m 644 ${worksrcpath}/libopenal1.0.0.dylib \
    38                 ${destroot}${prefix}/lib
     29destroot.post_args      -configuration Deployment INSTALL_PATH=${prefix}/lib \
     30                        DSTROOT=${destroot}
     31post-destroot {
     32#       xinstall -m 755 -d ${destroot}${prefix}/include/openal
     33#       xinstall -m 644 -W ${worksrcpath}/al al.h alc.h alctypes.h altypes.h \
     34#               alut.h ${destroot}${prefix}/include/openal
    3935        system "cd ${destroot}${prefix}/lib \
    40                 && ln -s libopenal1.0.0.dylib libopenal1.0.dylib \
    41                 && ln -s libopenal1.0.0.dylib libopenal1.dylib \
    42                 && ln -s libopenal1.0.0.dylib libopenal.dylib"
     36                && mv openal.dylib libopenal1.1.0.dylib \
     37                && ln -s libopenal1.1.0.dylib libopenal1.1.dylib \
     38                && ln -s libopenal1.1.0.dylib libopenal1.dylib \
     39                && ln -s libopenal1.1.0.dylib libopenal.dylib"
    4340}
    44