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

Contents of /media-sound/hydrogen/hydrogen-0.9.3-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Dec 27 09:58:55 2009 UTC (10 years, 11 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.2_rc61/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.3-r3.ebuild,v 1.9 2009/08/15 15:09:36 ssuominen Exp $
4
5 inherit eutils kde-functions autotools multilib
6
7 DESCRIPTION="Linux Drum Machine"
8 HOMEPAGE="http://www.hydrogen-music.org/"
9 SRC_URI="mirror://sourceforge/hydrogen/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 ppc ppc64 sparc x86"
14 IUSE="alsa debug doc flac jack ladspa oss"
15
16 RDEPEND="dev-libs/libxml2
17 media-libs/libsndfile
18 media-libs/audiofile
19 flac? ( media-libs/flac )
20 alsa? ( media-libs/alsa-lib )
21 jack? ( media-sound/jack-audio-connection-kit )
22 ladspa? ( media-libs/liblrdf )"
23 DEPEND="${RDEPEND}
24 doc? ( app-text/docbook-sgml-utils )
25 dev-util/pkgconfig"
26
27 need-qt 3
28
29 src_unpack() {
30 unpack ${A}
31 if use ppc; then
32 cd "${S}/src"
33 epatch "${FILESDIR}/0.9.1-OSS.patch" || die "patching failed"
34 fi
35 cd "${S}"
36
37 mv data/doc/man "${S}"
38 # broken or portability issue
39 find . -iname Makefile.in -exec sed -i -e "s:update-menus::" {} \;
40 # find PortAudio/Midi files
41 sed -e "s:pa_unix_oss:lib:g" -e "s:pa_common:include:g" \
42 -e "s:pm_linux:lib:g" -e "s:pm_common:include:g" \
43 -i configure.in
44 sed -e "s:lib/hydrogen:$(get_libdir)/hydrogen:g" -i plugins/wasp/Makefile.in
45
46 epatch "${FILESDIR}/hydrogen-0.9.2-configure.in.patch"
47 epatch "${FILESDIR}/hydrogen-0.9.3-gcc-4.1-tinyxml.h.patch"
48 epatch "${FILESDIR}/${P}-flac113.patch"
49 epatch "${FILESDIR}/${P}-automagic.patch"
50 epatch "${FILESDIR}/${P}-desktop-noexec.patch"
51 epatch "${FILESDIR}/${P}-gcc43.patch"
52 epatch "${FILESDIR}/${P}-gcc43noalsa.patch"
53 eautoreconf
54 }
55
56 src_compile() {
57 export PORTAUDIOPATH="/usr"
58 # PortMidi not yet in the repository
59 # export PORTMIDIPATH="/usr"
60
61 # Disable portaudio v18 support wrt #222841
62 local myconf="$(use_enable jack jack-support) \
63 --disable-portaudio \
64 $(use_enable alsa) \
65 $(use_enable debug) \
66 $(use_enable flac flac_support) \
67 $(use_enable ladspa) \
68 $(use_enable ladspa lrdf-support) \
69 $(use_enable oss oss-support)"
70
71 econf ${myconf} || die "Failed configuring hydrogen!"
72 emake -j1 || die "Failed making hydrogen!"
73 }
74
75 src_install() {
76 pushd data/i18n
77 use doc && ./updateTranslations.sh
78 rm *.ts updateTranslations.sh
79 popd
80
81 pushd data/doc
82 use doc && ./updateManuals.sh
83 rm *.docbook updateManuals.sh
84 popd
85
86 emake DESTDIR="${D}" install || die "make install failed"
87 dodoc AUTHORS ChangeLog README
88 dosym /usr/share/hydrogen/data/doc /usr/share/doc/${PF}/html
89 doman man/C/hydrogen.1
90
91 for N in 16 24 32 48 64 ; do
92 dodir /usr/share/icons/hicolor/${N}x${N}/apps
93 dosym /usr/share/hydrogen/data/img/gray/icon${N}.png \
94 /usr/share/icons/hicolor/${N}x${N}/apps/hydrogen.png
95 done
96 dodir /usr/share/icons/hicolor/scalable/apps
97 dosym /usr/share/hydrogen/data/img/gray/icon.svg \
98 /usr/share/icons/hicolor/scalable/apps/hydrogen.svg
99 }

  ViewVC Help
Powered by ViewVC 1.1.20