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

Diff of /media-sound/timidity++/timidity++-2.13.2-r10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/media-sound/timidity++/Attic/timidity++-2.13.2-r10.ebuild,v 1.1 2009/05/13 20:29:56 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-sound/timidity++/Attic/timidity++-2.13.2-r10.ebuild,v 1.2 2009/05/21 14:20:26 ssuominen Exp $
4 4
5EAPI=2
5inherit eutils elisp-common 6inherit eutils elisp-common
6 7
7MY_PV=${PV/_/-} 8MY_PV=${PV/_/-}
8MY_P=TiMidity++-${MY_PV} 9MY_P=TiMidity++-${MY_PV}
9S=${WORKDIR}/${MY_P} 10S=${WORKDIR}/${MY_P}
13SRC_URI="mirror://sourceforge/timidity/${MY_P}.tar.bz2 mirror://gentoo/${P}-exiterror.patch" 14SRC_URI="mirror://sourceforge/timidity/${MY_P}.tar.bz2 mirror://gentoo/${P}-exiterror.patch"
14 15
15LICENSE="GPL-2" 16LICENSE="GPL-2"
16SLOT="0" 17SLOT="0"
17KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" 18KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
18IUSE="oss nas esd motif X gtk vorbis tk slang alsa arts jack emacs ao speex flac ncurses" 19IUSE="oss nas esd motif X gtk vorbis tk slang alsa jack emacs ao speex flac ncurses"
19 20
20DEPEND="ncurses? ( >=sys-libs/ncurses-5 ) 21DEPEND="ncurses? ( >=sys-libs/ncurses-5 )
21 emacs? ( virtual/emacs ) 22 emacs? ( virtual/emacs )
22 gtk? ( >=x11-libs/gtk+-2 ) 23 gtk? ( >=x11-libs/gtk+-2 )
23 tk? ( >=dev-lang/tk-8.1 ) 24 tk? ( >=dev-lang/tk-8.1 )
24 motif? ( x11-libs/openmotif ) 25 motif? ( x11-libs/openmotif )
25 esd? ( >=media-sound/esound-0.2.22 ) 26 esd? ( >=media-sound/esound-0.2.22 )
26 nas? ( >=media-libs/nas-1.4 ) 27 nas? ( >=media-libs/nas-1.4 )
27 alsa? ( media-libs/alsa-lib ) 28 alsa? ( media-libs/alsa-lib[midi] )
28 slang? ( sys-libs/slang ) 29 slang? ( sys-libs/slang )
29 arts? ( kde-base/arts )
30 jack? ( media-sound/jack-audio-connection-kit ) 30 jack? ( media-sound/jack-audio-connection-kit )
31 vorbis? ( media-libs/libvorbis ) 31 vorbis? ( media-libs/libvorbis )
32 flac? ( media-libs/flac ) 32 flac? ( media-libs/flac )
33 speex? ( media-libs/speex ) 33 speex? ( media-libs/speex )
34 ao? ( >=media-libs/libao-0.8.5 )" 34 ao? ( >=media-libs/libao-0.8.5 )"
39PDEPEND="|| ( media-sound/timidity-eawpatches media-sound/timidity-shompatches media-sound/timidity-freepats )" 39PDEPEND="|| ( media-sound/timidity-eawpatches media-sound/timidity-shompatches media-sound/timidity-freepats )"
40 40
41SITEFILE=50${PN}-gentoo.el 41SITEFILE=50${PN}-gentoo.el
42 42
43pkg_setup() { 43pkg_setup() {
44 if use alsa && ! built_with_use --missing true media-libs/alsa-lib midi; then
45 eerror ""
46 eerror "To be able to build TiMidity++ with ALSA support you need"
47 eerror "to have built media-libs/alsa-lib with midi USE flag."
48 die "Missing midi USE flag on media-libs/alsa-lib"
49 fi
50
51 enewgroup audio 18 # Just make sure it exists 44 enewgroup audio 18 # Just make sure it exists
52 enewuser timidity -1 -1 /var/lib/timidity audio 45 enewuser timidity -1 -1 /var/lib/timidity audio
53} 46}
54 47
55src_unpack() { 48src_prepare() {
56 unpack ${A}
57 cd "${S}"
58 epatch "${DISTDIR}"/${P}-exiterror.patch 49 epatch "${DISTDIR}"/${P}-exiterror.patch \
59 epatch "${FILESDIR}"/${P}-gtk26.patch 50 "${FILESDIR}"/${P}-gtk26.patch \
60 epatch "${FILESDIR}"/${P}-gcc4.patch 51 "${FILESDIR}"/${P}-gcc4.patch \
61 epatch "${FILESDIR}"/${P}-flac.patch 52 "${FILESDIR}"/${P}-flac.patch \
62 epatch "${FILESDIR}"/${P}-flac113.patch 53 "${FILESDIR}"/${P}-flac113.patch \
63 epatch "${FILESDIR}"/${P}-protos.patch 54 "${FILESDIR}"/${P}-protos.patch \
64 epatch "${FILESDIR}"/${P}-polling.patch 55 "${FILESDIR}"/${P}-polling.patch \
65 56
66 # fix header location of speex 57 # fix header location of speex
67 sed -i -e "s:#include <speex:#include <speex/speex:g" configure* timidity/speex_a.c 58 sed -i -e "s:#include <speex:#include <speex/speex:g" configure* timidity/speex_a.c
68} 59}
69 60
70src_compile() { 61src_configure() {
71 local myconf 62 local myconf
72 local audios 63 local audios
73 64
74 use flac && audios="${audios},flac" 65 use flac && audios="${audios},flac"
75 use speex && audios="${audios},speex" 66 use speex && audios="${audios},speex"
76 use vorbis && audios="${audios},vorbis" 67 use vorbis && audios="${audios},vorbis"
77 68
78 use oss && audios="${audios},oss" 69 use oss && audios="${audios},oss"
79 use esd && audios="${audios},esd" 70 use esd && audios="${audios},esd"
80 use arts && audios="${audios},arts"
81 use jack && audios="${audios},jack" 71 use jack && audios="${audios},jack"
82 use ao && audios="${audios},ao" 72 use ao && audios="${audios},ao"
83 73
84 if use nas; then 74 if use nas; then
85 audios="${audios},nas" 75 audios="${audios},nas"
117 $(use_enable X xskin) \ 107 $(use_enable X xskin) \
118 $(use_enable X xaw) \ 108 $(use_enable X xaw) \
119 $(use_enable gtk) \ 109 $(use_enable gtk) \
120 $(use_enable tk tcltk) \ 110 $(use_enable tk tcltk) \
121 --disable-motif \ 111 --disable-motif \
122 ${myconf} || die 112 ${myconf}
123
124 emake || die
125} 113}
126 114
127src_install() { 115src_install() {
128 make DESTDIR="${D}" install || die 116 emake DESTDIR="${D}" install || die "emake install failed"
129 117
130 dodoc AUTHORS ChangeLog* 118 dodoc AUTHORS ChangeLog*
131 dodoc NEWS README* "${FILESDIR}/timidity.cfg-r1" 119 dodoc NEWS README* "${FILESDIR}/timidity.cfg-r1"
132 120
133 # these are only for the ALSA sequencer mode 121 # these are only for the ALSA sequencer mode

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20