blob: c57ea59504d365fe8128dbaf2ce6e8dd422accf7 (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/xwax/xwax-1.4.ebuild,v 1.5 2013/12/24 12:42:04 ago Exp $
EAPI=5
inherit toolchain-funcs
DESCRIPTION="Digital vinyl emulation software"
HOMEPAGE="http://www.xwax.co.uk/"
SRC_URI="http://www.xwax.co.uk/releases/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86"
IUSE="alsa jack oss cdda mp3 +fallback"
REQUIRED_USE="|| ( cdda mp3 fallback )
|| ( alsa jack oss )"
RDEPEND="sys-libs/glibc
media-libs/libsdl
media-libs/sdl-ttf
media-fonts/dejavu
alsa? ( media-libs/alsa-lib )
jack? ( media-sound/jack-audio-connection-kit )
cdda? ( media-sound/cdparanoia )
mp3? ( media-sound/mpg123 )
fallback? ( virtual/ffmpeg )"
DEPEND="${RDEPEND}"
DOCS="README CHANGES"
src_prepare() {
# Remove the forced optimization from 'CFLAGS' and 'LDFLAGS' in
# the Makefile
# Also remove the dependency on the .version target so we don't need
# git just to build
sed -i -e 's/\(^\(LD\|C\)FLAGS.*\)-O[0-9]\(.*\)/\1\3/g' \
-e 's/^xwax\.o:.*\.version//' \
Makefile || die "sed failed"
}
src_configure() {
tc-export CC
econf \
--prefix "${EROOT}usr" \
$(use_enable alsa) \
$(use_enable jack) \
$(use_enable oss)
}
src_compile() {
# EXECDIR is the default directory in which xwax will look for
# the 'xwax-import' and 'xwax-scan' scripts
emake EXECDIR="\$(BINDIR)" VERSION="${PV}" xwax
}
src_install() {
# This is easier than setting all the environment variables
# needed, running the sed script required to get the man directory
# correct, and removing the GPL-2 after a 'make install' run
dobin xwax || die "failed to install xwax"
newbin scan xwax-scan || die "failed to install xwax-scan"
newbin import xwax-import || die "failed to install xwax-import"
doman xwax.1 || die "failed to install man page"
dodoc ${DOCS} || die "failed to install docs"
}
|