summaryrefslogtreecommitdiff
blob: 7a0b93f916a6638d9e9d0a4b55d67c8f5cb9b5ec (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

inherit eutils scons-utils toolchain-funcs

DESCRIPTION="Automatic BPM detection utility"
HOMEPAGE="https://sourceforge.net/projects/bpmdetect"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="media-libs/taglib
	media-libs/id3lib
	>=media-libs/fmod-4.25.07-r1:1
	dev-qt/qtgui:4"
DEPEND="${RDEPEND}
	sys-apps/sed
	dev-util/scons
	virtual/pkgconfig"

S=${WORKDIR}/${PN}
PATCHES=(
	"${FILESDIR}/${P}-gcc44_and_fmodex_path.patch"
	"${FILESDIR}/${P}-fix-buildsystem.patch"
	"${FILESDIR}/${P}-fix-printf-format.patch"
)

src_configure() {
	myscons=(
		CC="$(tc-getCC)"
		CXX="$(tc-getCXX)"
		QTDIR="/usr/$(get_libdir)"
		prefix="${D}/usr"
	)
}

src_compile() {
	escons "${myscons[@]}"
}

src_install() {
	escons "${myscons[@]}" install
	dodoc authors readme todo
}