1 | # $Id: Portfile,v 1.5 2006/02/01 11:49:30 mww Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name openal |
---|
6 | version 1.0 |
---|
7 | categories audio devel |
---|
8 | platforms darwin |
---|
9 | maintainers mww@opendarwin.org |
---|
10 | description OpenAL is a cross-platform 3D audio API |
---|
11 | long_description OpenAL is a cross-platform 3D audio API appropriate for \ |
---|
12 | use with gaming applications and many other types of audio \ |
---|
13 | applications. |
---|
14 | |
---|
15 | homepage http://www.openal.org/ |
---|
16 | #fetch.type cvs |
---|
17 | #cvs.root :pserver:guest@opensource.creative.com:/usr/local/cvs-repository |
---|
18 | #cvs.password guest |
---|
19 | #cvs.args -D"${version}" |
---|
20 | #cvs.module ${name}/macosx |
---|
21 | fetch.type svn |
---|
22 | svn.url http://opensource.creative.com/repos/openal/tags/MacOSX1-2_Spec1-0/ |
---|
23 | worksrcdir MacOSX1-2_Spec1-0/macosx |
---|
24 | |
---|
25 | use_configure no |
---|
26 | |
---|
27 | build.type pbx |
---|
28 | build.target |
---|
29 | build.args -project al_osx.xcode |
---|
30 | post-build { |
---|
31 | file copy ${filespath}/Makefile ${worksrcpath} |
---|
32 | system "cd ${worksrcpath} && make all PREFIX=${prefix}" |
---|
33 | } |
---|
34 | |
---|
35 | 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 |
---|
39 | xinstall -m 644 ${worksrcpath}/libopenal1.0.0.dylib \ |
---|
40 | ${destroot}${prefix}/lib |
---|
41 | system "cd ${destroot}${prefix}/lib \ |
---|
42 | && ln -s libopenal1.0.0.dylib libopenal1.0.dylib \ |
---|
43 | && ln -s libopenal1.0.0.dylib libopenal1.dylib \ |
---|
44 | && ln -s libopenal1.0.0.dylib libopenal.dylib" |
---|
45 | } |
---|
46 | |
---|