1 # Contributer Jonathan Frazier eyeswide@gmail.com
6 pkgdesc="built without esd or oss output (so it uses alsa), and a patch to fix the nasty clicking"
7 url="http://www.openal.org/"
9 makedepends=('subversion' 'yasm' 'cmake' 'rsync')
14 source=(al_filter.patch)
16 md5sums=('d6ef4da923fa21d7a5413687394ac145')
18 _svntrunk=svn://connect.creativelabs.com/OpenAL
24 # Get Latest Source Code
25 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27 msg "SVN checkout done or server timeout"
28 msg "Starting make..."
30 rsync -a $_svnmod/ build/ || return 1
33 # patch for filter clicks
34 patch -d src -Np0 -i ${startdir}/src/al_filter.patch || return 1
37 cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr -DALSA:BOOL=ON \
38 -DALSA_DLOPEN:BOOL=ON -DBUILD_STATIC:BOOL=OFF \
39 -DBUILD_TESTS:BOOL=OFF -DCMAKE_BUILD_TYPE:STRING=none \
40 -DNATIVE:BOOL=ON -DNULLOUT:BOOL=ON -DOPTIMIZATION:BOOL=ON \
41 -DOSS:BOOL=OFF -DSDL:BOOL=ON -DSDL_DLOPEN:BOOL=ON \
42 -DVORBIS:BOOL=ON -DVORBIS_DLOPEN:BOOL=ON -DWARNINGS:BOOL=ON \
43 -DWAVEOUT:BOOL=ON -DESD:BOOL=OFF || return 1
45 make DESTDIR=$startdir/pkg install
46 sed -i -e 's/@requirements@//' ${startdir}/pkg/usr/lib/pkgconfig/openal.pc || return 1