# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header:$ IUSE="arts musepack mplayer scrobbler lirc xf86audio status crossfade oss oggvorbis blursk asm xvideo minilcd" DESCRIPTION="BMP plugins that have been ported, but are not included in the BMP main tree." HOMEPAGE="" SRC_URI="http://www.t17.ikarnet.pl/~wiget/bmp-extra-plugins/download/bmp-extra-plugins-0.2.1.tar.bz2" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" DEPEND="media-sound/beep-media-player arts? ( kde-base/arts ) mplayer? ( media-video/mplayer ) lirc? ( app-misc/lirc )" src_unpack() { unpack ${A} } src_compile() { local myconf="" if useq !oss; then myconf="${myconf} --disable-oss" fi if useq !lirc; then myconf="${myconf} --disable-lirc" fi if useq !musepack; then myconf="${myconf} --disable-musepack" fi if useq !mplayer; then myconf="${myconf} --disable-mplayer" fi if useq !scrobbler; then myconf="${myconf} --disable-scrobbler" fi if useq !xf86audio; then myconf="${myconf} --disable-xf86audio" fi if useq !status; then myconf="${myconf} --disable-status" fi if useq !crossfade; then myconf="${myconf} --disable-status" fi if useq !oggvorbis; then myconf="${myconf} --disable-ogg" fi if useq !arts; then myconf="${myconf} --disable-arts" fi if useq !blursk; then myconf="${myconf} --disable-blursk" fi if useq !asm; then myconf="${myconf} --disable-asm" fi if useq !xvideo; then myconf="${myconf} --disable-xvideo" fi if useq !minilcd; then myconf="${myconf} --disable-minilcd" fi econf ${myconf} || die die emake || die } src_install () { make DESTDIR=${D} install || die # libblursk causes bmp to segfault. If someone could create a patch for # this, or figure out a better way to disable this, that would be nice. rm -f ${D}/usr/lib/bmp/Visualization/libblursk.* }