Ticket #13587: openal-1.1-Portfile.diff
File openal-1.1-Portfile.diff, 2.0 KB (added by jmroot (Joshua Root), 17 years ago) |
---|
-
audio/openal/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 … … 14 14 15 15 homepage http://www.openal.org/ 16 16 master_sites macports 17 #svn.url http://opensource.creative.com/repos/openal/tags/MacOSX1- 2_Spec1-0/18 checksums sha1 156d26e6369b13efe9a525cb0db9e6078ecb05a917 #svn.url http://opensource.creative.com/repos/openal/tags/MacOSX1-1_Spec1-1/ 18 checksums sha1 b4c720ee0b426a0636f13e97af3b6f4f8e170da0 19 19 use_bzip2 yes 20 20 21 worksrcdir openal-1.0/macosx21 worksrcdir ${name}-${version}/OpenAL-MacOSX 22 22 23 23 use_configure no 24 24 25 25 build.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 } 26 build.target -configuration Deployment 27 build.args -project OpenAL.xcodeproj 32 28 33 destroot {34 xinstall -m 755 -d ${destroot}${prefix}/include/openal35 xinstall -m 644 -W ${worksrcpath}/al al.h alc.h alctypes.h altypes.h \ 36 alut.h${destroot}${prefix}/include/openal37 xinstall -m 644 ${worksrcpath}/libopenal1.0.0.dylib\38 ${destroot}${prefix}/lib 29 destroot.post_args -configuration Deployment INSTALL_PATH=${prefix}/lib \ 30 DSTROOT=${destroot} 31 post-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 39 35 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" 43 40 } 44