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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Tue Dec 2 21:52:40 2008 UTC (11 years, 11 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.6_rc2/cvs/Linux 2.6.27.7 i686)

1 # Copyright 1999-2008 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-r2.ebuild,v 1.13 2008/05/19 19:49:04 drac 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 portaudio"
15
16 RDEPEND="dev-libs/libxml2
17 media-libs/libsndfile
18 media-libs/audiofile
19 flac? ( media-libs/flac )
20 portaudio? ( =media-libs/portaudio-18* )
21 alsa? ( media-libs/alsa-lib )
22 jack? ( media-sound/jack-audio-connection-kit )
23 ladspa? ( media-libs/liblrdf )"
24
25 DEPEND="${RDEPEND}
26 doc? ( app-text/docbook-sgml-utils )
27 dev-util/pkgconfig"
28
29 need-qt 3
30
31 pkg_setup() {
32 if use alsa && ! built_with_use --missing true media-libs/alsa-lib midi; then
33 eerror ""
34 eerror "To be able to build ${CATEGORY}/${PN} with ALSA support you"
35 eerror "need to have built media-libs/alsa-lib with midi USE flag."
36 die "Missing midi USE flag on media-libs/alsa-lib"
37 fi
38 if use flac && ! built_with_use --missing true media-libs/flac cxx; then
39 eerror "To build ${PN} with flac support you need the C++ bindings for flac."
40 eerror "Please enable the cxx USE flag for media-libs/flac"
41 die "Missing FLAC C++ bindings."
42 fi
43 }
44
45 src_unpack() {
46 unpack ${A}
47 if use ppc; then
48 cd "${S}/src"
49 epatch "${FILESDIR}/0.9.1-OSS.patch" || die "patching failed"
50 fi
51 cd "${S}"
52
53 mv data/doc/man "${S}"
54 # broken or portability issue
55 find . -iname Makefile.in -exec sed -i -e "s:update-menus::" {} \;
56 # find PortAudio/Midi files
57 sed -e "s:pa_unix_oss:lib:g" -e "s:pa_common:include:g" \
58 -e "s:pm_linux:lib:g" -e "s:pm_common:include:g" \
59 -i configure.in
60 sed -e "s:lib/hydrogen:$(get_libdir)/hydrogen:g" -i plugins/wasp/Makefile.in
61
62 epatch "${FILESDIR}/hydrogen-0.9.2-configure.in.patch"
63 epatch "${FILESDIR}/hydrogen-0.9.3-gcc-4.1-tinyxml.h.patch"
64 epatch "${FILESDIR}/${P}-flac113.patch"
65 epatch "${FILESDIR}/${P}-automagic.patch"
66 epatch "${FILESDIR}/${P}-desktop-noexec.patch"
67 epatch "${FILESDIR}/${P}-gcc43.patch"
68 eautoreconf
69 }
70
71 src_compile() {
72 export PORTAUDIOPATH="/usr"
73 # PortMidi not yet in the repository
74 # export PORTMIDIPATH="/usr"
75
76 local myconf="$(use_enable jack jack-support) \
77 $(use_enable portaudio) \
78 $(use_enable alsa) \
79 $(use_enable debug) \
80 $(use_enable flac flac_support) \
81 $(use_enable ladspa) \
82 $(use_enable ladspa lrdf-support) \
83 $(use_enable oss oss-support)"
84
85 econf ${myconf} || die "Failed configuring hydrogen!"
86 emake -j1 || die "Failed making hydrogen!"
87 }
88
89 src_install() {
90 pushd data/i18n
91 use doc && ./updateTranslations.sh
92 rm *.ts updateTranslations.sh
93 popd
94
95 pushd data/doc
96 use doc && ./updateManuals.sh
97 rm *.docbook updateManuals.sh
98 popd
99
100 emake DESTDIR="${D}" install || die "make install failed"
101 dodoc AUTHORS ChangeLog README
102 dosym /usr/share/hydrogen/data/doc /usr/share/doc/${PF}/html
103 doman man/C/hydrogen.1
104
105 for N in 16 24 32 48 64 ; do
106 dodir /usr/share/icons/hicolor/${N}x${N}/apps
107 dosym /usr/share/hydrogen/data/img/gray/icon${N}.png \
108 /usr/share/icons/hicolor/${N}x${N}/apps/hydrogen.png
109 done
110 dodir /usr/share/icons/hicolor/scalable/apps
111 dosym /usr/share/hydrogen/data/img/gray/icon.svg \
112 /usr/share/icons/hicolor/scalable/apps/hydrogen.svg
113 }

  ViewVC Help
Powered by ViewVC 1.1.20