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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Sun Nov 18 20:04:51 2007 UTC (13 years ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +1 -1 lines
FILE REMOVED
remove old
(Portage version: 2.1.3.19)

1 # Copyright 1999-2007 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.ebuild,v 1.14 2007/02/17 00:52:57 flameeyes Exp $
4
5 inherit eutils kde-functions autotools multilib
6
7 DESCRIPTION="Linux Drum Machine"
8 HOMEPAGE="http://hydrogen.sourceforge.net/"
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 jack ladspa oss portaudio"
15
16 RDEPEND="dev-libs/libxml2
17 media-libs/libsndfile
18 media-libs/audiofile
19 ~media-libs/flac-1.1.2
20 portaudio? ( media-libs/portaudio )
21 alsa? ( media-libs/alsa-lib )
22 jack? ( media-sound/jack-audio-connection-kit )
23 ladspa? ( media-libs/liblrdf )"
24
25 need-qt 3
26
27 src_unpack() {
28 unpack ${A}
29 if use ppc; then
30 cd ${S}/src
31 epatch ${FILESDIR}/0.9.1-OSS.patch || die "patching failed"
32 fi
33 cd ${S}
34
35 mv data/doc/man ${S}
36 # broken or portability issue
37 find . -iname Makefile.in -exec sed -i -e "s:update-menus::" {} \;
38 # find PortAudio/Midi files
39 sed -e "s:pa_unix_oss:lib:g" -e "s:pa_common:include:g" \
40 -e "s:pm_linux:lib:g" -e "s:pm_common:include:g" \
41 -i configure.in
42 sed -e "s:lib/hydrogen:$(get_libdir)/hydrogen:g" -i plugins/wasp/Makefile.in
43 make -f Makefile.cvs
44
45 epatch ${FILESDIR}/hydrogen-0.9.2-configure.in.patch
46 epatch ${FILESDIR}/hydrogen-0.9.3-gcc-4.1-tinyxml.h.patch
47 }
48
49 src_compile() {
50 export PORTAUDIOPATH="/usr"
51 # PortMidi not yet in the repository
52 # export PORTMIDIPATH="/usr"
53
54 local myconf="$(use_enable jack jack-support) \
55 $(use_enable portaudio) \
56 $(use_enable alsa) \
57 $(use_enable debug) \
58 $(use_enable ladspa) \
59 $(use_enable ladspa lrdf-support) \
60 $(use_enable oss oss-support)"
61
62 eautoconf
63 econf ${myconf} || die "Failed configuring hydrogen!"
64 emake -j1 || die "Failed making hydrogen!"
65 }
66
67 src_install() {
68 pushd data/i18n
69 ./updateTranslations.sh
70 rm *.ts updateTranslations.sh
71 popd
72
73 pushd data/doc
74 ./updateManuals.sh
75 rm *.docbook updateManuals.sh
76 popd
77
78 make DESTDIR="${D}" install || die "make install failed"
79 dodoc AUTHORS ChangeLog README
80 dosym /usr/share/hydrogen/data/doc /usr/share/doc/${PF}/html
81 doman man/C/hydrogen.1
82
83 for N in 16 24 32 48 64 ; do
84 dodir /usr/share/icons/hicolor/${N}x${N}/apps
85 dosym /usr/share/hydrogen/data/img/gray/icon${N}.png \
86 /usr/share/icons/hicolor/${N}x${N}/apps/hydrogen.png
87 done
88 dodir /usr/share/icons/hicolor/scalable/apps
89 dosym /usr/share/hydrogen/data/img/gray/icon.svg \
90 /usr/share/icons/hicolor/scalable/apps/hydrogen.svg
91 }

  ViewVC Help
Powered by ViewVC 1.1.20