# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ IUSE="" DESCRIPTION="Timidity++ Dependent MIDI Plugin for BMP" HOMEPAGE="http://www.sosdg.org/~larne/w/Plugin_list" SRC_URI="http://mitglied.lycos.de/mldoering/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" DEPEND="media-sound/beep-media-player media-sound/timidity++" S=${WORKDIR}/${PN} src_unpack() { unpack ${A} cd ${S} sed -si "s:xmms/plugin.h:beep-media-player/bmp/plugin.h:" mid.h } src_compile() { econf --disable-static emake } src_install() { make DESTDIR=${D} install || die dodoc ChangeLog README TODO # fixing libtool links, perhaps there is a smarter solution rm ${D}/usr/lib/bmp/Input/{libmid.so,libmid.so.0} mv ${D}/usr/lib/bmp/Input/libmid.so.0.0.0 ${D}/usr/lib/bmp/Input/libmid.so sed -i -e "s:^\(dlname=\).*$:\1'libmid.so':g" \ -e "s:^\(library_names=\).*$:\1'libmid.so':g" \ ${D}/usr/lib/bmp/Input/libmid.la } pkg_postinst() { ewarn "This plugin can not deal with multi-track MIDI files, this will segfault BMP." echo einfo "You need to place a working timidity.cfg in /etc; timidity-config will normally" einfo "arrange for this if you emerge timidity-eawpatches." ewarn "MIDI files will play silently if this condition is not met." }