blob: 5584aaecd09a3a7820b642cf3457366c6f371699 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/ultrastar-ng/ultrastar-ng-0.2.1-r1.ebuild,v 1.7 2009/04/29 20:09:17 mr_bones_ Exp $
EAPI=2
inherit autotools eutils games
MY_PN=UltraStar-ng
MY_P=${MY_PN}-${PV}
SONGS_PN=ultrastar-songs
SONGS_P=${SONGS_PN}-2
DESCRIPTION="SingStar GPL clone"
HOMEPAGE="http://sourceforge.net/projects/ultrastar-ng/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
songs? ( mirror://sourceforge/${PN}/${SONGS_P}.tar.bz2 )"
LICENSE="GPL-2
songs? (
CCPL-Attribution-ShareAlike-NonCommercial-2.5
CCPL-Attribution-NonCommercial-NoDerivs-2.5
)"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+video opengl xine debug alsa gstreamer portaudio +songs"
RDEPEND="gnome-base/librsvg
>=dev-libs/boost-1.34
x11-libs/pango
media-libs/libsdl[opengl?]
media-libs/sdl-image[jpeg,png]
media-libs/sdl-gfx
xine? ( media-libs/xine-lib )
!xine? ( media-libs/gstreamer )
opengl? (
virtual/opengl
virtual/glu
)
alsa? ( media-libs/alsa-lib )
portaudio? ( media-libs/portaudio )
gstreamer? ( >=media-libs/gstreamer-0.10 )
video? ( media-libs/smpeg )"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
S=${WORKDIR}/${MY_P}
src_prepare() {
epatch "${FILESDIR}"/${P}-bash4.patch # bug #267316
touch docs/ultrastarng.6 # no, don't try to rebuild the man page
eautoreconf
}
src_configure() {
local myconf
if use video; then
myconf="--with-video=smpeg"
else
myconf="--with-video=disable"
fi
if use opengl; then
myconf="$myconf --with-graphic-driver=opengl"
else
myconf="$myconf --with-graphic-driver=sdl"
fi
if use xine; then
myconf="$myconf --with-audio=xine"
else
myconf="$myconf --with-audio=gstreamer"
fi
egamesconf \
${myconf} \
$(use_enable debug) \
$(use_enable portaudio record-portaudio) \
$(use_enable gstreamer record-gst) \
$(use_enable alsa record-alsa)
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
keepdir "${GAMES_DATADIR}"/${PN}/songs
if use songs; then
insinto "${GAMES_DATADIR}"/${PN}
doins -r ../songs || die "doins songs failed"
fi
mv "${D}${GAMES_DATADIR}"/{applications,pixmaps} "${D}"/usr/share/
dodoc AUTHORS ChangeLog README TODO
prepgamesdirs
}
|