# Distributed under the terms of the GNU General Public License v2 # $Header: $ raijin inherit eutils MY_P="${P/libvisual-projectm/libvisual-projectM}" MY_S="${WORKDIR}/${PN}" DESCRIPTION="A libvisual plugin component for projectM" HOMEPAGE="http://xmms-projectm.sourceforge.net/" SRC_URI="mirror://sourceforge/xmms-projectm/${MY_P}.tar.bz2" EWARN="This ebuild is a modified version in an attempt to allow usage of libvisual-0.40 with amarok" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="libvisual" RDEPEND="libvisual? ( >=media-libs/libvisual.0.4.0 )" DEPEND="${RDEPEND}" pkg_setup() { if use !libvisual ; then die "You must enable libvisual with amarok and projectM" fi } src_unpack() { unpack ${A} cd ${MY_S} #sed "s%CFLAGS=[^\"]*%CFLAGS=${CFLAGS}%" -i src/libvisual-projectm/Makefile } src_compile() { #for some reason the configure scripts don't find the X11 headers myconf="${myconf} --x-includes=/usr/include/X11 --x-libraries=/usr/lib/X11" cd ${MY_S}/src/libvisual-projectm emake || die "projectM core build failed" } src_install() { cd ${MY_S}/src/libvisual-projectm make DESTDIR="${D}" install || die "libvisual plugin install failed" }