/[gentoo-x86]/media-sound/timidity++/timidity++-2.13.0.ebuild
Gentoo

Contents of /media-sound/timidity++/timidity++-2.13.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Oct 8 04:35:52 2004 UTC (15 years, 1 month ago) by eradicator
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Version bump and cleanup.

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/timidity++/timidity++-2.13.0.ebuild,v 1.5 2004/07/04 23:08:59 fvdpol Exp $
4
5 inherit gnuconfig
6
7 MY_PV=${PV/_/-}
8 MY_P=TiMidity++-${MY_PV}
9 S=${WORKDIR}/${MY_P}
10
11 DESCRIPTION="A handy MIDI to WAV converter with OSS and ALSA output support"
12 HOMEPAGE="http://timidity.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/timidity/${MY_P}.tar.bz2"
14 RESTRICT="nomirror"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~x86 ~ppc ~amd64 ~sparc"
19 IUSE="oss nas esd motif X gtk oggvorbis tcltk slang alsa kde jack portaudio emacs"
20
21 RDEPEND=">=sys-libs/ncurses-5.0
22 X? ( virtual/x11 )
23 esd? ( >=media-sound/esound-0.2.22 )
24 gtk? ( =x11-libs/gtk+-1.2* )
25 nas? ( >=media-libs/nas-1.4 )
26 alsa? ( media-libs/alsa-lib )
27 motif? ( >=x11-libs/openmotif-2.1 )
28 slang? ( >=sys-libs/slang-1.4 )
29 kde? ( kde-base/arts )
30 jack? ( !sparc? ( media-sound/jack-audio-connection-kit ) )
31 portaudio? ( !ppc? ( media-libs/portaudio ) )
32 oggvorbis? ( >=media-libs/libvorbis-1.0_beta4 )"
33
34 DEPEND="${RDEPEND}
35 sys-devel/autoconf"
36
37 RDEPEND="${RDEPEND}
38 tcltk? ( >=dev-lang/tk-8.1 )
39 emacs? ( virtual/emacs )"
40
41 src_compile() {
42 local myconf
43 local audios
44 local interfaces
45
46 interfaces="dynamic,ncurses,emacs,vt100"
47
48 if use X ; then
49 myconf="${myconf} --with-x --enable-spectrogram --enable-wrd"
50 interfaces="${interfaces},xskin,xaw"
51 use gtk && interfaces="${interfaces},gtk"
52 use motif && interfaces="${interfaces},motif"
53 else
54 myconf="${myconf} --without-x"
55 fi
56
57 use slang && interfaces="${interfaces},slang"
58
59 use oss && audios="${audios},oss"
60 use esd && audios="${audios},esd"
61 use oggvorbis && audios="${audios},vorbis"
62 use nas && { audios="${audios},nas"; myconf="${myconf} --with-nas-library=/usr/X11R6/lib/libaudio.so"; }
63 use kde && audios="${audios},arts"
64 (! use sparc) && use jack && audios="${audios},jack"
65 (use x86 || use sparc) && use portaudio && audios="${audios},portaudio"
66
67 use alsa \
68 && audios="${audios},alsa" \
69 && interfaces="${interfaces},alsaseq" \
70 && myconf="${myconf} --with-default-output=alsa"
71
72 econf \
73 --localstatedir=/var/state/timidity++ \
74 --with-elf \
75 --enable-audio=${audios} \
76 --enable-interface=${interfaces} \
77 --enable-server \
78 --enable-network \
79 ${myconf} || die
80
81 emake || die
82 }
83
84 src_install() {
85 make DESTDIR=${D} install || die
86 dodir /usr/share/timidity/config
87 insinto /usr/share/timidity/config
88 doins ${FILESDIR}/timidity.cfg
89 dodoc AUTHORS ChangeLog* INSTALL*
90 dodoc NEWS README*
91
92 insinto /etc/conf.d
93 newins ${FILESDIR}/conf.d.timidity timidity
94
95 exeinto /etc/init.d
96 newexe ${FILESDIR}/init.d.timidity timidity
97
98 if use emacs ; then
99 dosed 's:/usr/local/bin/timidity:/usr/bin/timidity:g' /usr/share/emacs/site-lisp/timidity.el
100 else
101 rm ${D}/timidity.el
102 fi
103 }
104
105 pkg_postinst() {
106 einfo ""
107 einfo "A timidity config file has been installed in"
108 einfo "/usr/share/timidity/config/timidity.cfg. This"
109 einfo "file must to copied into /usr/share/timidity/"
110 einfo "and edited to match your configuration."
111 einfo ""
112 einfo "An init script for the alsa timidity sequencer has been installed."
113 einfo "If you wish to use the timidity virtual sequencer, edit /etc/conf.d/timidity"
114 einfo "and run 'rc-update add timidity <runlevel> && /etc/init.d/timidity start'"
115 }

  ViewVC Help
Powered by ViewVC 1.1.20