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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Fri Jan 22 18:57:00 2010 UTC (10 years, 10 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.2_rc61/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.3-r4.ebuild,v 1.11 2010/01/11 18:50:00 abcd Exp $
4
5 EAPI=2
6
7 inherit eutils autotools multilib
8
9 DESCRIPTION="Linux Drum Machine"
10 HOMEPAGE="http://www.hydrogen-music.org/"
11 SRC_URI="mirror://sourceforge/hydrogen/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ppc ppc64 sparc x86"
16 IUSE="alsa debug doc +flac jack ladspa oss"
17
18 RDEPEND="dev-libs/libxml2
19 media-libs/libsndfile
20 media-libs/audiofile
21 x11-libs/qt:3
22 flac? ( media-libs/flac[cxx] )
23 alsa? ( media-libs/alsa-lib )
24 jack? ( media-sound/jack-audio-connection-kit )
25 ladspa? ( media-libs/liblrdf )"
26 DEPEND="${RDEPEND}
27 doc? ( app-text/docbook-sgml-utils )
28 dev-util/pkgconfig"
29
30 src_prepare() {
31 if use ppc; then
32 cd "${S}/src"
33 epatch "${FILESDIR}/0.9.1-OSS.patch"
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 epatch "${FILESDIR}/hydrogen-0.9.2-configure.in.patch"
46 epatch "${FILESDIR}/hydrogen-0.9.3-gcc-4.1-tinyxml.h.patch"
47 epatch "${FILESDIR}/${P}-flac113.patch"
48 epatch "${FILESDIR}/${P}-automagic.patch"
49 epatch "${FILESDIR}/${P}-desktop-noexec.patch"
50 epatch "${FILESDIR}/${P}-gcc43.patch"
51 epatch "${FILESDIR}/${P}-gcc43noalsa.patch"
52 epatch "${FILESDIR}/${P}-gcc44.patch"
53 eautoreconf
54 }
55
56 src_configure() {
57 export PORTAUDIOPATH="/usr"
58 # PortMidi not yet in the repository
59 # export PORTMIDIPATH="/usr"
60
61 # Disable portaudio v18 support wrt #222841
62 econf $(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
72 src_compile() {
73 emake -j1 || die
74 }
75
76 src_install() {
77 pushd data/i18n
78 use doc && ./updateTranslations.sh
79 rm *.ts updateTranslations.sh
80 popd
81
82 pushd data/doc
83 use doc && ./updateManuals.sh
84 rm *.docbook updateManuals.sh
85 popd
86
87 emake DESTDIR="${D}" install || die "make install failed"
88 dodoc AUTHORS ChangeLog README
89 dosym /usr/share/hydrogen/data/doc /usr/share/doc/${PF}/html
90 doman man/C/hydrogen.1
91
92 for N in 16 24 32 48 64 ; do
93 dodir /usr/share/icons/hicolor/${N}x${N}/apps
94 dosym /usr/share/hydrogen/data/img/gray/icon${N}.png \
95 /usr/share/icons/hicolor/${N}x${N}/apps/hydrogen.png
96 done
97 dodir /usr/share/icons/hicolor/scalable/apps
98 dosym /usr/share/hydrogen/data/img/gray/icon.svg \
99 /usr/share/icons/hicolor/scalable/apps/hydrogen.svg
100 }

  ViewVC Help
Powered by ViewVC 1.1.20