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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20