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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (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.2: +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.2.ebuild,v 1.2 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 +archive flac jack ladspa lash oss portaudio"
16
17 RDEPEND="x11-libs/qt-gui:4
18 archive? ( app-arch/libarchive )
19 !archive? ( >=dev-libs/libtar-1.2.11-r3 )
20 media-libs/libsndfile
21 alsa? ( media-libs/alsa-lib )
22 flac? ( media-libs/flac[cxx] )
23 jack? ( media-sound/jack-audio-connection-kit )
24 ladspa? ( media-libs/liblrdf )
25 lash? ( media-sound/lash )
26 portaudio? ( >=media-libs/portaudio-19_pre )"
27 DEPEND="${RDEPEND}
28 dev-util/scons"
29
30 src_prepare() {
31 sed -i -e '/cppflags +=/d' Sconstruct || die
32 epatch patches/portaudio.patch
33 }
34
35 src_compile() {
36 export QTDIR="/usr/$(get_libdir)"
37 local myconf='portmidi=0' #90614
38
39 use alsa || myconf+=' alsa=0'
40 use archive && myconf+=' libarchive=1'
41 use flac || myconf+=' flac=0'
42 use jack || myconf+=' jack=0'
43 use ladspa || myconf+=' lrdf=0'
44 use lash && myconf+=' lash=1'
45 use oss || myconf+=' oss=0'
46 use portaudio && myconf+=' portaudio=1'
47
48 scons \
49 prefix=/usr \
50 DESTDIR="${D}" \
51 optflags="${CXXFLAGS}" \
52 ${myconf} || die
53 }
54
55 src_install() {
56 dobin hydrogen || die
57 insinto /usr/share/hydrogen
58 doins -r data || die
59 doicon data/img/gray/h2-icon.svg
60 domenu hydrogen.desktop
61 dosym /usr/share/hydrogen/data/doc /usr/share/doc/${PF}/html
62 dodoc AUTHORS ChangeLog README.txt
63 }

  ViewVC Help
Powered by ViewVC 1.1.20