blob: b1ffb5a40e046e4dfba88c895dfb79c8fcd9107b (
plain) (
blame)
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header $
inherit subversion cmake-utils games
SONGS_PKG=USDX-SongPackage
SONGS_VER=01
DESCRIPTION="An open-source karaoke game"
HOMEPAGE="http://www.ultrastardeluxe.org/"
ESVN_REPO_URI="https://ultrastardx.svn.sourceforge.net/svnroot/ultrastardx/trunk"
ESVN_PROJECT="ultrastardx"
SRC_URI="songs? ( mirror://sourceforge/${PN}/${SONGS_PKG}-${SONGS_VER}.zip )"
LICENSE="GPL-2
songs? (
CCPL-Attribution-ShareAlike-NonCommercial-2.5
CCPL-Attribution-NonCommercial-NoDerivs-2.5
)"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="projectm debug songs"
RDEPEND="virtual/opengl
virtual/glu
media-libs/libsdl
media-libs/sdl-image
media-libs/freetype
media-libs/libpng
=media-libs/portaudio-19*
media-video/ffmpeg
dev-db/sqlite
projectm? ( media-libs/libprojectm )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
>=dev-lang/fpc-2.2.2"
S=${WORKDIR}/${P}-src
pkg_setup() {
games_pkg_setup
built_with_use media-libs/libsdl opengl \
|| die "You need to compile media-libs/libsdl with USE=opengl."
}
src_unpack() {
unpack ${A}
subversion_src_unpack
}
src_compile() {
if use projectm ; then
enable_projectm="ON"
else
enable_projectm="OFF"
fi
if use debug ; then
build_type="Debug"
else
build_type="Release"
fi
cmake \
-DCMAKE_BUILD_TYPE=$build_type \
-DENABLE_PROJECTM=$enable_projectm \
-DCMAKE_INSTALL_PREFIX="/usr" \
. \
|| die "cmake failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
if use songs; then
insinto "${GAMES_DATADIR}"/${PN}/songs
doins -r ${WORKDIR}/Songs/* || die "doins songs failed"
fi
dodoc AUTHORS.txt ChangeLog.german.txt ChangeLog.txt README.txt
doicon icons/${PN}-icon.svg
make_desktop_entry ${PN} "UltraStar Deluxe"
prepgamesdirs
}
|