# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header:$ IUSE="xmms bmp" DESCRIPTION="BMP or XMMS effect plugin for pitch and speed control." HOMEPAGE="http://scizzor.sourceforge.net/" SRC_URI="mirror://sourceforge/scizzor/scizzor-${PV}.tar.gz" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" DEPEND="xmms? ( media-sound/xmms ) bmp? ( media-sound/beep-media-player )" S="${WORKDIR}/scizzor" src_unpack() { unpack ${A} einfo "This ebuild uses the xmms and bmp use flags to define which" einfo "plugins to build" } src_compile() { cd ${S} if use !xmms && use bmp; then make bmp || die "Make bmp plugin failed" fi if use !bmp && use xmms; then make xmms || die "Make xmms plugin failed" fi if use bmp && use xmms; then make both || die "Building both plugins failed" fi if use !bmp && use !xmms; then eerror "You need to specify either the xmms or bmp use flag" eerror "or both." die "USE flag not set" fi } src_install () { if use !xmms && use bmp; then mkdir -p ${D}/usr/lib/bmp/General cp ${S}/scizzor-bmp.so ${D}/usr/lib/bmp/General/ fi if use !bmp && use xmms; then mkdir -p ${D}/usr/lib/xmms/Effects cp ${S}/scizzor-xmms.so ${D}/usr/lib/bmp/Effects/ fi if use bmp && use xmms; then # install xmms plugin mkdir -p ${D}/usr/lib/xmms/Effects cp ${S}/scizzor-xmms.so ${D}/usr/lib/bmp/Effects/ # install bmp plugin mkdir -p ${D}/usr/lib/bmp/General cp ${S}/scizzor-bmp.so ${D}/usr/lib/bmp/General/ fi if use !bmp && use !xmms; then eerror "You need to specify either the xmms or bmp use flag" eerror "or both." die "USE flag not set" fi }