blob: 6cafefca5d5e491d4b74c771636486e3671f82f3 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/traverso/traverso-0.30.1.ebuild,v 1.3 2006/11/27 06:38:24 aballier Exp $
inherit eutils qt4 toolchain-funcs
DESCRIPTION="Professional Audio Tools for GNU/Linux"
HOMEPAGE="http://vt.shuis.tudelft.nl/~remon/traverso"
SRC_URI="http://vt.shuis.tudelft.nl/~remon/traverso/${P}.tar.gz"
IUSE="alsa jack sse"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
RDEPEND="$(qt4_min_version 4)
alsa? ( media-libs/alsa-lib )
jack? ( media-sound/jack-audio-connection-kit )
media-libs/libsndfile
media-libs/libsamplerate"
DEPEND="${RDEPEND}
sys-apps/sed"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-nojack.patch"
use jack || sed -ie "s:^\(DEFINES\ +=\ JACK_SUPPORT.*\):#\1:" src/base.pri
use alsa || sed -ie "s:^\(DEFINES\ +=\ ALSA_SUPPORT.*\):#\1:" src/base.pri
use sse || sed -ie "s:^\(.*DEFINES\ +=\ SSE_OPTIMIZATIONS.*\):#\1:" src/base.pri
sed -ie "s:^\(\#define\ RESOURCES_DIR\) \(.*\):\1 \"/usr/share/traverso\":" src/config.h
sed -ie "s:^\(target.path\ =\) \(.*\):\1 /usr/bin:" src/traverso/traverso.pro
sed -ie "s:^\(DESTDIR_TARGET\ =\) \(.*\):\1 /usr/bin:" src/traverso/traverso.pro
# Removing forced cxxflags
sed -ie "s:^\(.*QMAKE_CXXFLAGS_RELEASE.*\):#\1:" src/base.pri
# adding our cxxflags
sed -ie "s:^\(.*release\ {.*\):\1\n QMAKE_CXXFLAGS_RELEASE\ =\ ${CXXFLAGS}:" src/base.pri
}
src_compile() {
QMAKE="/usr/bin/qmake"
$QMAKE traverso.pro -after "QMAKE_STRIP=\"/usr/bin/true\"" || die "qmake failed"
# No no, this is not a typo, LFLAGS is what they use as LDFLAGS...
emake CC=$(tc-getCC) CXX=$(tc-getCXX) LINK=$(tc-getCXX) LFLAGS="${LDFLAGS}" || die "emake failed"
}
src_install() {
emake INSTALL_ROOT=${D} install || die "emake install failed"
dodoc AUTHORS ChangeLog README
}
|