# $Id$ PNAME="libao" PVER="1.2.0" PBUILD="r1" PCAT="media-libs" DESCRIPTION="libao is a cross-platform audio library that allows programs to output audio using a simple API on a wide variety of platforms." HOMEPAGE="http://www.xiph.org/ao/" DEPEND=">= virtual/glibc >= media-libs/alsa-lib-1.0.27 >= media-libs/nas-1.9 >= media-sound/libpulse-4" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( http://downloads.xiph.org/releases/ao/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd http://downloads.xiph.org/releases/ao/ | lasttarball gz" src_compile() { local myconf cd ${SRCDIR} # no arts support anymore -> using kde4-branch myconf+=" --disable-arts" # no esound support anymore -> gnome-2.28 myconf+=" --disable-esd" # but enable pulseaudio support myconf+=" --enable-pulse" mconfigure \ --enable-alsa \ --enable-alsa-mmap \ --enable-nas \ --enable-shared \ --disable-static \ ${myconf} \ || die mmake || die }