# Distributed under the terms of the GNU General Public License v2
# $Header: $ raijin
inherit eutils
MY_P="${P/libvisual-projectm/libvisual-projectM}"
S="${WORKDIR}/${P}"
#S="${WORKDIR}/${PN}/src/${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=""
RDEPEND="libvisual? ( >=media-libs/libvisual-0.4.0 )"
DEPEND="${RDEPEND}"
src_unpack() {
unpack ${A}
}
src_compile() {
cd work/libvisual-projectM
econf || die "econf failed"
emake || die "emake failed"
}
src_install() {
cd work/libvisual-projectM
make DESTDIR="${D}" install || die "libvisual plugin install failed"
}