# $Id$ PNAME="libsdl" PVER="1.2.15" PBUILD="r5" PCAT="media-libs" DESCRIPTION="Simple DirectMedia Layer is a cross-platform multimedia library." HOMEPAGE="http://www.libsdl.org/" DEPEND=">= virtual/opengl >= x11-libs/libXt-1.1 >= x11-libs/libXext-1.3 >= x11-libs/libX11-1.6 >= x11-libs/libXv-1 >= x11-libs/libXvMC-1 >= media-libs/audiofile-0.3 >= media-libs/alsa-lib-1.0.29" SDEPEND=">= virtual/sed" SRCFILE="SDL-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/SDL-${PVER}" sminclude multilib msetfeature "!check" SRC_URI=( http://www.libsdl.org/release/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-1.2.11-sdl-config.patch mirror://${PNAME}/${PNAME}-${PVER}-x11-symbols.patch ) UP2DATE="updatecmd http://www.libsdl.org/release/ | grep SDL-[0-9] | highesttarball gz" src_prepare() { munpack ${SRCFILE} || die mpatch ${PNAME}-1.2.11-sdl-config.patch || die # fixes a ftbfs with newer x11 mpatch ${PNAME}-${PVER}-x11-symbols.patch || die all-abis ./autogen.sh || die } src_compile() { local myconf [[ ${ARCH} = i*86 ]] && myconf+=" --enable-nasm" # no arts support anymore -> using kde4-branch myconf+=" --disable-arts" # use esd for pulseaudio myconf+=" --enable-esd" # disable rpath myconf+=" --disable-rpath" mconfigure \ --enable-events \ --enable-cdrom \ --enable-threads \ --enable-timers \ --enable-endian \ --enable-file \ --enable-video-dummy \ --enable-oss \ --enable-alsa \ --enable-video-x11 \ --enable-dga \ --enable-video-x11-xv \ --enable-video-dga \ --enable-video-opengl \ ${myconf} \ || die mmake || die } src_install() { mmake DESTDIR=${BINDIR} install || die minstalldocs BUGS COPYING CREDITS README* TODO WhatsNew || die }