# $Id$ PNAME="xine-lib" PVER="1.1.16.3" PBUILD="r3" PCATEGORIE="media-libs" STATE="unstable" DESCRIPTION="xine-lib is the xine core engine, it is needed for all frontends and applications that use xine." HOMEPAGE="http://xine.sourceforge.net/" DEPEND=">= virtual/glibc >= media-libs/libvorbis-1.2 >= media-libs/mplayer-codecs-2007 >= media-libs/flac-1.2 >= media-libs/libfame-0.9.1 >= media-libs/xvid-1.2.2 >= media-libs/alsa-lib-1.0.21 >= media-libs/libdvdcss-1.2.10 >= x11-libs/libXext-1 >= x11-libs/libX11-1 >= x11-libs/libXv-1 >= x11-libs/libxcb-1" SDEPEND=">= dev-util/pkgconfig-0.23 >= x11-base/xorg-server-1 >= x11-libs/libXt-1 >= x11-proto/xextproto-7 >= x11-proto/xproto-2 >= x11-proto/videoproto-2 >= x11-proto/xf86vidmodeproto-2" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( sourceforge://xine/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-1.1.4-pic.patch ) UP2DATE="updatecmd_sourceforge xine '${PNAME} (xine core)' - ${PNAME}" # small fix for sse2 support and gcc-3.3 CFLAGS="${CFLAGS} -mno-sse2" # fixes artifacts when playing a movie (-O3 uses -fweb), only >=gcc-3.4 CFLAGS="${CFLAGS} -fno-web" # fixes some compile errors, only >= gcc-3.4 CFLAGS="${CFLAGS} -funit-at-a-time" CXXFLAGS="${CFLAGS}" src_prepare() { # check for older versions [[ -e /usr/$(mlibdir)/libxine.so ]] && die "Uninstall *all* old versions of ${PNAME} first ..." # force libdvdcss support; break build when the lib is not found # as the configure script has no check [[ ! -e /usr/$(mlibdir)/libdvdcss.so ]] && die "Install libdvdcss first ..." munpack ${SRCFILE} || die cd ${SRCDIR} # fixes compilation errors when using -fpic mpatch ${PNAME}-1.1.4-pic.patch || die # libtoolize it or the linking will fail (1.0.2 only?) mlibtoolize || die # rebuild makefiles autoreconf --install --force || die } src_compile() { cd ${SRCDIR} # no arts support anymore -> using kde4-branch local myconf myconf+=" --disable-arts" # no esound support anymore myconf+=" --disable-esd" mconfigure \ --with-included-dvdnav \ --disable-aalib \ --with-w32-path=/usr/$(mlibdir)/win32 \ --with-xv-path=/usr/$(mlibdir) \ --x-includes=/usr/includes \ --x-libraries=/usr/$(mlibdir) \ --disable-sdltest \ --with-x \ --with-xcb \ --enable-x11 \ --enable-shm \ --enable-xft \ --enable-nls \ --enable-ogg \ --enable-vorbis \ --disable-ipv6 \ --disable-directfb \ --enable-alsa \ ${myconf} \ || die # does not like optimations > -j1 mmake -j1 || die }