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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Sep 29 01:45:43 2010 UTC (10 years, 1 month ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2_rc87/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-r1.ebuild,v 1.1 2010/05/03 18:02:30 ssuominen 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 ~sparc ~x86"
15 IUSE="alsa +archive flac jack ladspa lash oss"
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 DEPEND="${RDEPEND}
27 dev-util/scons"
28
29 src_prepare() {
30 sed -i \
31 -e '/cppflags +=/d' \
32 Sconstruct || die
33 }
34
35 src_compile() {
36 export QTDIR="/usr/$(get_libdir)"
37
38 # obsolete portaudio v18 and portmidi not yet in portage
39 local myconf="portaudio=0 portmidi=0"
40
41 use alsa || myconf="${myconf} alsa=0"
42 use archive && myconf="${myconf} libarchive=1"
43 use flac || myconf="${myconf} flac=0"
44 use jack || myconf="${myconf} jack=0"
45 use ladspa || myconf="${myconf} lrdf=0"
46 use lash && myconf="${myconf} lash=1"
47 use oss || myconf="${myconf} oss=0"
48
49 scons \
50 prefix=/usr \
51 DESTDIR="${D}" \
52 optflags="${CXXFLAGS}" \
53 ${myconf} || die
54 }
55
56 src_install() {
57 dobin hydrogen || die
58 insinto /usr/share/hydrogen
59 doins -r data || die
60 doicon data/img/gray/h2-icon.svg
61 domenu hydrogen.desktop
62 dosym /usr/share/hydrogen/data/doc /usr/share/doc/${PF}/html
63 dodoc AUTHORS ChangeLog README.txt
64 }

  ViewVC Help
Powered by ViewVC 1.1.20