# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-plugins/bmp-midi/bmp-midi-0.01-r1.ebuild,v 1.1 2005/01/09 13:45:05 chainsaw Exp $ 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_install() { make DESTDIR=${D} install || die dodoc ChangeLog README TODO } pkg_postinst() { ewarn "This plugin can not deal with RMI (RIFF-encoded MIDI) files, this will segfault BMP." ewarn "You can use 'file' to check, as some people insist on renaming .rmi to .mid" 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." }