# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # /space/gentoo/cvsroot/gentoo-x86/media-sound/xmms/xmms-1.2.7-r7.ebuild,v 1.2 2002/05/31 14:34:51 seemant Exp inherit libtool PLO_VER="$(echo ${PV} | sed -e "s:\.::g")" S=${WORKDIR}/${P} DESCRIPTION="X MultiMedia System" XMMS_URI="ftp://ftp.xmms.org/xmms/1.2.x/${P}.tar.gz avi?( http://www.openface.ca/~nephtes/plover-${PN}${PLO_VER}.tar.gz )" MMX_URI="http://members.jcom.home.ne.jp/jacobi/linux/etc/${P}-mmx.patch.gz" use mmx || use 3dnow \ && SOURCE_HTTP="${XMMS_URI} ${MMX_URI}" \ || SOURCE_HTTP="${XMMS_URI}" SRC_URI="${SOURCE_HTTP}" HOMEPAGE="http://www.xmms.org/" RDEPEND="app-arch/unzip =x11-libs/gtk+-1.2* >=media-libs/libmikmod-3.1.9 avi? ( >=media-video/avifile-0.7.4.20020426-r2 ) esd? ( >=media-sound/esound-0.2.22 ) xml? ( >=dev-libs/libxml-1.8.15 ) gnome? ( >=gnome-base/gnome-panel-1.4.1 =media-libs/libvorbis-1.0_beta4 )" DEPEND="${RDEPEND} nls? ( dev-util/intltool )" src_unpack() { unpack ${P}.tar.gz cd ${S} # For plugins such as avi4xmms, xmms needs to be linked to libavifile # and libstdcxx. # # NOTE: because we change a Makefile.am here, we run auto* at the # bottom. use avi && ( \ patch -p1 <${FILESDIR}/${P}-enable-avifile-plugins.patch || die ) # The following code prevents a correct unpack on PPC, so let's # exclude the code on that platform. Olivier Reisch if [ ${ARCH} != "ppc" ] then # For mmx/3dnow enabled CPUs, this patch adds mmx/3dnow optimisations # # # For you guys who favour this kind of USE flag checking ... this # is exactly why I do NOT like it, because the actual # "cat ${DISTDIR}/${P}-mmx.patch.gz | gunzip -c | patch -p1 || die" # was not in a subshell, it would ALWAYS fail to build if "mmx" or # "3dnow" was not in USE, because of the || die at the end. So # PLEASE, PLEASE test things with all possible USE flags if you use # this style!!!! # # Azarah - 30 Jun 2002 # if use mmx || use 3dnow then cat ${DISTDIR}/${P}-mmx.patch.gz | gunzip -c | patch -p1 || die fi fi # This is for the Plover patch # use avi && (\ # tar -zxf ${DISTDIR}/plover-xmms${PLO_VER}.tar.gz || die # cp plover-xmms${PLO_VER}.diff plover-xmms${PLO_VER}.diff.orig || die # sed -e "s:avifile-config:avifile-config0.7:g" \ # plover-xmms${PLO_VER}.diff.orig >plover-xmms${PLO_VER}.diff # patch -p1