blob: 1012fa9d6295d88474d55d5f284e84abf71c6f71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/sonic-visualiser/sonic-visualiser-1.8.ebuild,v 1.3 2012/05/05 08:50:44 mgorny Exp $
EAPI=4
inherit eutils qt4-r2 autotools fdo-mime
DESCRIPTION="Music audio files viewer and analiser"
HOMEPAGE="http://www.sonicvisualiser.org/"
SRC_URI="mirror://sourceforge/sv1/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="fftw id3tag jack mad ogg osc portaudio pulseaudio"
RDEPEND="x11-libs/qt-core:4
x11-libs/qt-gui:4
media-libs/libsndfile
media-libs/libsamplerate
fftw? ( sci-libs/fftw:3.0 )
app-arch/bzip2
>=media-libs/dssi-0.9.1
media-libs/liblrdf
dev-libs/redland
media-libs/ladspa-sdk
osc? ( media-libs/liblo )
media-libs/speex
>=media-libs/vamp-plugin-sdk-2.0
media-libs/rubberband
jack? ( media-sound/jack-audio-connection-kit )
mad? ( media-libs/libmad )
id3tag? ( media-libs/libid3tag )
ogg? ( media-libs/libfishsound >=media-libs/liboggz-1.1.0 )
portaudio? ( >=media-libs/portaudio-19_pre20071207 )
pulseaudio? ( media-sound/pulseaudio )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
REQUIRED_USE="|| ( jack pulseaudio portaudio )"
sv_disable_opt() {
einfo "Disabling $1"
for i in sonic-visualiser svapp svcore svgui ; do
sed -i -e "/$1/d" "${S}/$i/configure.ac" || die "failed to remove $1 support"
done
}
src_prepare() {
# remove unnecessary check for raptor: http://code.soundsoftware.ac.uk/issues/136
sv_disable_opt raptor
epatch "${FILESDIR}"/${P}-configure.patch
epatch "${FILESDIR}"/${P}-gcc46.patch
cd svcore
epatch "${FILESDIR}"/${PN}-1.7.1-liboggz11.patch
use fftw || sv_disable_opt fftw3f
use fftw || sv_disable_opt fftw3
use id3tag || sv_disable_opt id3tag
use jack || sv_disable_opt jack
use mad || sv_disable_opt mad
use ogg || sv_disable_opt fishsound
use ogg || sv_disable_opt oggz
use osc || sv_disable_opt liblo
use portaudio || sv_disable_opt portaudio
use pulseaudio || sv_disable_opt libpulse
for i in sonic-visualiser svapp svcore svgui ; do
pushd "${S}"/$i > /dev/null
eautoreconf
popd > /dev/null
done
}
src_install() {
cd ${PN}
dobin ${PN}
dodoc README*
#install samples
insinto /usr/share/${PN}/samples
doins samples/*
# desktop entry
doicon icons/sv-icon.svg
domenu *.desktop
}
pkg_postinst() {
fdo-mime_desktop_database_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
}
|