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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sun Sep 11 19:36:40 2011 UTC (9 years, 2 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
punt, uncompatible with raptor2

(Portage version: 2.2.0_alpha54/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.9.4.ebuild,v 1.8 2010/10/24 16:41:45 armin76 Exp $
4
5 EAPI=2
6 inherit eutils multilib
7
8 DESCRIPTION="Advanced drum machine"
9 HOMEPAGE="http://www.hydrogen-music.org/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11
12 LICENSE="GPL-2 ZLIB"
13 SLOT="0"
14 KEYWORDS="amd64 ppc ppc64 x86"
15 IUSE="alsa flac jack ladspa lash oss"
16
17 RDEPEND="x11-libs/qt-gui:4
18 app-arch/libarchive
19 media-libs/libsndfile
20 alsa? ( media-libs/alsa-lib )
21 flac? ( media-libs/flac[cxx] )
22 jack? ( media-sound/jack-audio-connection-kit )
23 ladspa? ( media-libs/liblrdf )
24 lash? ( media-sound/lash )"
25 DEPEND="${RDEPEND}
26 dev-util/scons"
27
28 src_prepare() {
29 sed -i \
30 -e '/cppflags +=/d' \
31 Sconstruct || die
32 }
33
34 src_compile() {
35 export QTDIR="/usr/$(get_libdir)"
36
37 local myconf="libarchive=1 portaudio=0 portmidi=0"
38
39 use alsa || myconf="${myconf} alsa=0"
40 use flac || myconf="${myconf} flac=0"
41 use jack || myconf="${myconf} jack=0"
42 use ladspa || myconf="${myconf} lrdf=0"
43 use lash && myconf="${myconf} lash=1"
44 use oss || myconf="${myconf} oss=0"
45
46 scons \
47 prefix=/usr \
48 DESTDIR="${D}" \
49 optflags="${CXXFLAGS}" \
50 ${myconf} || die
51 }
52
53 src_install() {
54 dobin hydrogen || die
55 insinto /usr/share/hydrogen
56 doins -r data || die
57 doicon data/img/gray/h2-icon.svg
58 domenu hydrogen.desktop
59 dosym /usr/share/hydrogen/data/doc /usr/share/doc/${PF}/html
60 dodoc AUTHORS ChangeLog README.txt
61 }

  ViewVC Help
Powered by ViewVC 1.1.20