summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn J. Ellis <jje@gentoo.org>2003-07-21 03:51:45 +0000
committerJohn J. Ellis <jje@gentoo.org>2003-07-21 03:51:45 +0000
commit3de6972108f0292ca0420e80d866a11d431a09de (patch)
treee252dabe570cd67097121e659dac17ef4f81c7fc /media-sound/timidity++/timidity++-2.12.0-r3.ebuild
parentUpdated to include sample cfg file. Closes #24331. (diff)
downloadgentoo-2-3de6972108f0292ca0420e80d866a11d431a09de.tar.gz
gentoo-2-3de6972108f0292ca0420e80d866a11d431a09de.tar.bz2
gentoo-2-3de6972108f0292ca0420e80d866a11d431a09de.zip
Updated to include sample cfg file. Closes #24331.
Diffstat (limited to 'media-sound/timidity++/timidity++-2.12.0-r3.ebuild')
-rw-r--r--media-sound/timidity++/timidity++-2.12.0-r3.ebuild89
1 files changed, 89 insertions, 0 deletions
diff --git a/media-sound/timidity++/timidity++-2.12.0-r3.ebuild b/media-sound/timidity++/timidity++-2.12.0-r3.ebuild
new file mode 100644
index 000000000000..1093b2cb0f7e
--- /dev/null
+++ b/media-sound/timidity++/timidity++-2.12.0-r3.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/timidity++/timidity++-2.12.0-r3.ebuild,v 1.1 2003/07/21 03:51:37 jje Exp $
+
+IUSE="nas esd motif X gtk oggvorbis tcltk slang alsa"
+
+MY_P=TiMidity++-${PV}-pre1
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="A handy MIDI to WAV converter with OSS and ALSA output support"
+SRC_URI="http://www.goice.co.jp/member/mo/timidity/dist/${MY_P}.tar.bz2"
+HOMEPAGE="http://www.goice.co.jp/member/mo/timidity/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+
+DEPEND=">=sys-libs/ncurses-5.0
+ X? ( >=x11-base/xfree-4.0 )
+ esd? ( >=media-sound/esound-0.2.22 )
+ gtk? ( =x11-libs/gtk+-1.2* )
+ nas? ( >=media-libs/nas-1.4 )
+ alsa? ( media-libs/alsa-lib )
+ motif? ( >=x11-libs/openmotif-2.1 )
+ slang? ( >=sys-libs/slang-1.4 )
+ tcltk? ( >=dev-lang/tk-8.1 )
+ oggvorbis? ( >=media-libs/libvorbis-1.0_beta4 )"
+
+src_compile() {
+ local myconf
+ local audios
+ local interfaces
+
+ interfaces="dynamic,ncurses,emacs,vt100"
+ if [ "`use oss`" ]; then \
+ audios="oss";
+ fi
+
+ use X \
+ && myconf="${myconf} --with-x \
+ --enable-spectrogram --enable-wrd" \
+ && interfaces="${interfaces},xskin,xaw" \
+ || myconf="${myconf} --without-x "
+
+ use slang && interfaces="${interfaces},slang"
+ if [ "`use X`" ]; then \
+ use gtk && interfaces="${interfaces},gtk";
+ fi
+ if [ "`use X`" ]; then \
+ use motif && interfaces="${interfaces},motif";
+ fi
+
+ use alsa \
+ && audios="${audios},alsa" \
+ && interfaces="${interfaces},alsaseq" \
+ && myconf="${myconf} --with-default-output=alsa"
+
+ use esd && audios="${audios},esd"
+ use oggvorbis && audios="${audios},vorbis"
+ use nas && audios="${audios},nas"
+
+ econf \
+ --localstatedir=/var/state/timidity++ \
+ --with-elf \
+ --enable-audio=${audios} \
+ --enable-interface=${interfaces} \
+ --enable-server \
+ --enable-network \
+ ${myconf} || die
+
+ emake || die
+}
+
+src_install () {
+ make DESTDIR=${D} install || die
+ dodir /usr/share/timidity/config
+ insinto /usr/share/timidity/config
+ doins ${FILESDIR}/timidity.cfg
+ dodoc AUTHORS COPYING ChangeLog* INSTALL*
+ dodoc NEWS README*
+}
+
+pkg_postinst () {
+ einfo ""
+ einfo "A timidity config file has been installed in"
+ einfo "/usr/share/timitidy/config/timidity.cfg. This"
+ einfo "file must to copied into /usr/share/timidity/"
+ einfo "and edited to match your configuration."
+ einfo ""
+}