# $Header: /magellan-cvs/smage/sdl-mixer/sdl-mixer-1.2.8-r1.smage2,v 1.1 2008/03/23 23:53:26 niro Exp $ PNAME="sdl-mixer" PVER="1.2.8" PBUILD="r1" PCATEGORIE="media-libs" STATE="unstable" DESCRIPTION="SDL mixer library." HOMEPAGE="http://www.libsdl.org/projects/SDL_mixer/index.html" DEPEND=">= media-libs/libsdl-1.2.13 >= media-libs/smpeg-0.4.4 >= media-libs/libvorbis-1.0" SDEPEND=">= sys-apps/sed-4" SRCFILE="SDL_mixer-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/SDL_mixer-${PVER}" sminclude mbuild SRC_URI=( http://www.libsdl.org/projects/SDL_mixer/release/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-1.2.7-autoconf110.patch ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fixes compilation with autotools-1.10 mpatch ${PNAME}-1.2.7-autoconf110.patch || die # fix annoying messages touch ${SRCDIR}/{INSTALL,NEWS,AUTHORS,ChangeLog} || die # rebuild makefiles autoreconf -i || die # fix some pathes sed -i 's:/usr/local/lib/timidity:/usr/share/timidity:' timidity/config.h || die } src_compile() { cd ${SRCDIR} mconfigure --enable-mod --enable-music-mp3 --enable-music-ogg || die mmake || die }