Ticket #13587: openal-1.1-updated.diff
File openal-1.1-updated.diff, 2.6 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago) |
---|
-
Portfile
3 3 PortSystem 1.0 4 4 5 5 name openal 6 version 1. 06 version 1.1 7 7 categories audio devel 8 8 platforms darwin 9 9 maintainers nomaintainer … … 15 15 16 16 homepage http://www.openal.org/ 17 17 master_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/ 20 19 use_bzip2 yes 21 20 22 worksrcdir openal-1.0/macosx 21 checksums sha1 b4c720ee0b426a0636f13e97af3b6f4f8e170da0 \ 22 rmd160 5bfb2ca0374186f5a4bd2c6a156134197ad897ce 23 23 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 } 24 worksrcdir ${name}-${version}/OpenAL-MacOSX 28 25 29 26 use_configure no 30 27 31 28 build.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 } 29 build.target -configuration Deployment 30 build.args -project OpenAL.xcodeproj 38 31 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 32 destroot.post_args -configuration Deployment \ 33 INSTALL_PATH=${prefix}/lib \ 34 DSTROOT=${destroot} 35 post-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 45 39 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" 49 44 }