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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Mar 2 21:55:33 2013 UTC (7 years, 8 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +3 -3 lines
Move Qt dependencies to the new category

(Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key C2BA7F3C!)

1 # Copyright 1999-2013 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.5.ebuild,v 1.7 2012/11/24 15:06:02 aballier Exp $
4
5 EAPI=4
6 inherit eutils multilib flag-o-matic toolchain-funcs
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 jack ladspa lash oss portaudio"
16
17 RDEPEND="dev-qt/qtgui:4 dev-qt/qtcore:4
18 archive? ( app-arch/libarchive )
19 !archive? ( >=dev-libs/libtar-1.2.11-r3 )
20 >=media-libs/libsndfile-1.0.18
21 alsa? ( media-libs/alsa-lib )
22 jack? ( media-sound/jack-audio-connection-kit )
23 ladspa? ( media-libs/liblrdf )
24 lash? ( media-sound/lash )
25 portaudio? ( >=media-libs/portaudio-19_pre )"
26 DEPEND="${RDEPEND}
27 virtual/pkgconfig
28 dev-util/scons"
29
30 src_prepare() {
31 sed -i -e '/cppflags +=/d' Sconstruct || die
32 epatch \
33 patches/portaudio.patch \
34 "${FILESDIR}"/${P}-use_lrdf_pkgconfig.patch \
35 "${FILESDIR}"/${P}-gcc47.patch
36 }
37
38 src_compile() {
39 # FIXME: The -I/usr/include/raptor2 gets lost in middle of build
40 # despite -use_lrdf_pkgconfig.patch
41 use ladspa && append-flags $($(tc-getPKG_CONFIG) --cflags lrdf)
42
43 export QTDIR="/usr/$(get_libdir)"
44 local myconf='portmidi=0' #90614
45
46 use alsa || myconf+=' alsa=0'
47 use archive && myconf+=' libarchive=1'
48 use jack || myconf+=' jack=0'
49 use ladspa || myconf+=' lrdf=0'
50 use lash && myconf+=' lash=1'
51 use oss || myconf+=' oss=0'
52 use portaudio && myconf+=' portaudio=1'
53
54 scons \
55 prefix=/usr \
56 DESTDIR="${D}" \
57 optflags="${CXXFLAGS}" \
58 ${myconf} || die
59 }
60
61 src_install() {
62 dobin hydrogen
63 insinto /usr/share/hydrogen
64 doins -r data
65 doicon data/img/gray/h2-icon.svg
66 domenu hydrogen.desktop
67 dosym /usr/share/hydrogen/data/doc /usr/share/doc/${PF}/html
68 dodoc AUTHORS ChangeLog README.txt
69 }

  ViewVC Help
Powered by ViewVC 1.1.20