# $Id$ PNAME="openal" PVER="1.9.563" PBUILD="r1" PCATEGORIE="media-libs" STATE="unstable" DESCRIPTION="openal is a cross-platform 3D audio API appropriate for use with many types of audio applications." HOMEPAGE="http://kcat.strangesoft.net/openal.html" DEPEND=">= media-libs/alsa-lib-1.0.21" # todo: pulseaudio, portaudio! SRCFILE="${PNAME}-soft-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-soft-${PVER}" sminclude cmake SRC_URI=( http://kcat.strangesoft.net/openal-releases/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-oss.patch ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fixes issues with the oss backend mpatch ${PNAME}-${PVER}-oss.patch || die } src_compile() { cd ${SRCDIR} cmake_configure \ $(cmake_with ALSA) \ $(cmake_with OSS) \ $(cmake_without PORTAUDIO) \ $(cmake_without PULSEAUDIO) \ || die mmake || die } postinstall() { echo echo "If you have performance problems using this library, then" echo "try add these lines to your ~/.alsoftrc config file:" echo " [alsa]" echo " mmap = off" echo }