# Description: Cross-platform 3D audio.
# URL: http://kcat.strangesoft.net/openal.html
# Maintainer: Danny Rawlins, crux at romster dot me
# Packager: Matt Housh, jaeger at crux dot nu
# Depends on: alsa-lib cmake

name=openal
version=1.18.0
release=1
source=(http://kcat.strangesoft.net/openal-releases/openal-soft-$version.tar.bz2)

build() {
	cd openal-soft-$version/build

	cmake ../ \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DOSS=OFF \
		-DALSOFT_EXAMPLES=OFF \
		-DCMAKE_BUILD_TYPE=Release #-DCMAKE_VERBOSE_MAKEFILE:BOOL="on"

	make
	make DESTDIR=$PKG install
}