/[gentoo-x86]/media-sound/playmidi/playmidi-2.5-r2.ebuild
Gentoo

Contents of /media-sound/playmidi/playmidi-2.5-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Nov 30 23:31:24 2007 UTC (12 years, 9 months ago) by opfer
Branch: MAIN
Changes since 1.2: +2 -2 lines
stable x86, bug 200822
(Portage version: 2.1.3.19)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/playmidi/playmidi-2.5-r2.ebuild,v 1.2 2007/11/30 21:35:23 beandog Exp $
4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="Command Line and GUI based MIDI Player"
8 HOMEPAGE="http://sourceforge.net/projects/playmidi/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 ~ppc ~sparc x86"
14 IUSE="svga X"
15
16 RDEPEND="sys-libs/ncurses
17 svga? ( media-libs/svgalib )
18 X? ( x11-libs/libX11
19 x11-libs/libSM
20 x11-libs/libXaw )"
21 DEPEND="${RDEPEND}
22 X? ( x11-proto/xextproto )"
23
24 S="${WORKDIR}/${P/2.5/2.4}"
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}"
29 epatch "${FILESDIR}"/${P}.patch
30 epatch "${FILESDIR}"/CAN-2005-0020.patch
31 epatch "${FILESDIR}"/${P}-includes.patch
32 }
33
34 src_compile() {
35 local targets="playmidi"
36
37 use svga && targets="$targets splaymidi"
38 use X && targets="$targets xplaymidi"
39
40 echo "5" | ./Configure
41
42 emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
43 depend clean || die "emake failed."
44 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} -I." LDFLAGS="${LDFLAGS}" ${targets} \
45 || die "emake failed."
46 }
47
48 src_install() {
49 dobin playmidi
50 use svga && dobin splaymidi
51 use X && dobin xplaymidi
52 dodoc BUGS QuickStart README.1ST
53 docinto techref
54 dodoc techref/*
55 }

  ViewVC Help
Powered by ViewVC 1.1.20