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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Nov 18 20:04:51 2007 UTC (13 years ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +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-r1.ebuild,v 1.3 2007/07/06 17:45:50 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
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 pkg_setup() {
28 if use alsa && ! built_with_use --missing true media-libs/alsa-lib midi; then
29 eerror ""
30 eerror "To be able to build ${CATEGORY}/${PN} with ALSA support you"
31 eerror "need to have built media-libs/alsa-lib with midi USE flag."
32 die "Missing midi USE flag on media-libs/alsa-lib"
33 fi
34 }
35
36 src_unpack() {
37 unpack ${A}
38 if use ppc; then
39 cd ${S}/src
40 epatch ${FILESDIR}/0.9.1-OSS.patch || die "patching failed"
41 fi
42 cd ${S}
43
44 mv data/doc/man ${S}
45 # broken or portability issue
46 find . -iname Makefile.in -exec sed -i -e "s:update-menus::" {} \;
47 # find PortAudio/Midi files
48 sed -e "s:pa_unix_oss:lib:g" -e "s:pa_common:include:g" \
49 -e "s:pm_linux:lib:g" -e "s:pm_common:include:g" \
50 -i configure.in
51 sed -e "s:lib/hydrogen:$(get_libdir)/hydrogen:g" -i plugins/wasp/Makefile.in
52 make -f Makefile.cvs
53
54 epatch ${FILESDIR}/hydrogen-0.9.2-configure.in.patch
55 epatch ${FILESDIR}/hydrogen-0.9.3-gcc-4.1-tinyxml.h.patch
56 epatch "${FILESDIR}/${P}-flac113.patch"
57 }
58
59 src_compile() {
60 export PORTAUDIOPATH="/usr"
61 # PortMidi not yet in the repository
62 # export PORTMIDIPATH="/usr"
63
64 local myconf="$(use_enable jack jack-support) \
65 $(use_enable portaudio) \
66 $(use_enable alsa) \
67 $(use_enable debug) \
68 $(use_enable ladspa) \
69 $(use_enable ladspa lrdf-support) \
70 $(use_enable oss oss-support)"
71
72 eautoconf
73 econf ${myconf} || die "Failed configuring hydrogen!"
74 emake -j1 || die "Failed making hydrogen!"
75 }
76
77 src_install() {
78 pushd data/i18n
79 ./updateTranslations.sh
80 rm *.ts updateTranslations.sh
81 popd
82
83 pushd data/doc
84 ./updateManuals.sh
85 rm *.docbook updateManuals.sh
86 popd
87
88 make DESTDIR="${D}" install || die "make install failed"
89 dodoc AUTHORS ChangeLog README
90 dosym /usr/share/hydrogen/data/doc /usr/share/doc/${PF}/html
91 doman man/C/hydrogen.1
92
93 for N in 16 24 32 48 64 ; do
94 dodir /usr/share/icons/hicolor/${N}x${N}/apps
95 dosym /usr/share/hydrogen/data/img/gray/icon${N}.png \
96 /usr/share/icons/hicolor/${N}x${N}/apps/hydrogen.png
97 done
98 dodir /usr/share/icons/hicolor/scalable/apps
99 dosym /usr/share/hydrogen/data/img/gray/icon.svg \
100 /usr/share/icons/hicolor/scalable/apps/hydrogen.svg
101 }

  ViewVC Help
Powered by ViewVC 1.1.20