/[gentoo-x86]/media-sound/hydrogen/hydrogen-0.8.2-r1.ebuild
Gentoo

Contents of /media-sound/hydrogen/hydrogen-0.8.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Oct 20 05:29:08 2004 UTC (16 years, 1 month ago) by eradicator
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Removing old versions.

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/hydrogen/hydrogen-0.8.2-r1.ebuild,v 1.2 2004/06/25 00:05:33 agriffis Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Linux Drum Machine"
8 HOMEPAGE="http://hydrogen.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/hydrogen/${P}.tar.gz \
10 mirror://sourceforge/hydrogen/3355606.tar.gz \
11 mirror://sourceforge/hydrogen/DrumkitPack1.tar.gz \
12 mirror://sourceforge/hydrogen/DrumkitPack2.tar.gz \
13 mirror://sourceforge/hydrogen/EasternHop-1.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~x86"
18
19 IUSE="alsa jack"
20
21
22 RDEPEND="virtual/x11
23 >=media-libs/audiofile-0.2.3 \
24 alsa? ( media-libs/alsa-lib ) \
25 jack? ( media-sound/jack-audio-connection-kit ) \
26 >=x11-libs/qt-3"
27
28 DEPEND="$RDEPEND >=sys-devel/autoconf-2.58"
29
30 src_unpack() {
31 unpack ${A}
32
33 epatch ${FILESDIR}/${P}-ui-spacer.patch
34
35 # Drum kits to install
36 local KITS
37 KITS="3355606kit EasternHop-1 HipHop-1 HipHop-2 Synthie-1 TR808909 Techno-1"
38
39 # Grab our drumkits
40 cd ${P}/data/drumkits
41 tar zxf ${WORKDIR}/3355606/3355606kit.h2drumkit
42 tar zxf ${WORKDIR}/DrumkitPack1/HipHop-1.h2drumkit
43 tar zxf ${WORKDIR}/DrumkitPack1/HipHop-2.h2drumkit
44 tar zxf ${WORKDIR}/DrumkitPack2/Synthie-1.h2drumkit
45 tar zxf ${WORKDIR}/DrumkitPack2/TR808909.h2drumkit
46 tar zxf ${WORKDIR}/DrumkitPack2/Techno-1.h2drumkit
47 tar zxf ${WORKDIR}/EasternHop-1/EasternHop-1.h2drumkit
48
49 # Recurse into drumkit directories
50 sed -ie "s:GMkit:GMkit ${KITS}:" Makefile.am
51
52 # Set up drumkit Makefiles, model after GMkit
53
54 for kit in ${KITS}
55 do
56 cd ${kit}
57 cp ../GMkit/Makefile.* .
58 sed -ie "s:GMkit:${kit}:" Makefile.am
59 sed -i "/AC_CONFIG_FILES(\[ data\\/drumkits\\/GMkit/i\\AC_CONFIG_FILES([ data/drumkits/${kit}/Makefile ])\\" ${S}/configure.in
60 cd ..
61 done
62 }
63
64 src_compile() {
65 addwrite ${QTDIR}/etc/settings
66
67 einfo "Reconfiguring..."
68 export WANT_AUTOCONF=2.5
69 export WANT_AUTOMAKE=1.6
70
71 ./autogen.sh
72
73 econf || die
74 emake || die
75 }
76
77 src_install() {
78 make DESTDIR=${D} install || die
79 dodoc AUTHORS BUGS ChangeLog FAQ README TODO
80 }

  ViewVC Help
Powered by ViewVC 1.1.20