/[gentoo-x86]/games-arcade/performous/performous-0.7.0.ebuild
Gentoo

Contents of /games-arcade/performous/performous-0.7.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jan 13 11:22:47 2013 UTC (23 months, 1 week ago) by ago
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #449932

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-arcade/performous/performous-0.7.0.ebuild,v 1.2 2013/01/03 10:57:37 ago Exp $
4
5 EAPI=3
6 inherit eutils flag-o-matic base cmake-utils games
7
8 MY_PN=Performous
9 MY_P=${MY_PN}-${PV}
10 SONGS_PN=ultrastar-songs
11
12 DESCRIPTION="SingStar GPL clone"
13 HOMEPAGE="http://sourceforge.net/projects/performous/"
14 SRC_URI="mirror://sourceforge/performous/${P}.tar.bz2
15 songs? (
16 mirror://sourceforge/performous/${SONGS_PN}-restricted-3.zip
17 mirror://sourceforge/performous/${SONGS_PN}-jc-1.zip
18 mirror://sourceforge/performous/${SONGS_PN}-libre-3.zip
19 mirror://sourceforge/performous/${SONGS_PN}-shearer-1.zip
20 )"
21
22 LICENSE="GPL-2
23 songs? (
24 CCPL-Attribution-ShareAlike-NonCommercial-2.5
25 CCPL-Attribution-NonCommercial-NoDerivs-2.5
26 )"
27 SLOT="0"
28 KEYWORDS="amd64 x86"
29 IUSE="songs tools"
30
31 RDEPEND="dev-cpp/glibmm
32 dev-cpp/libxmlpp
33 media-libs/portaudio
34 >=dev-libs/boost-1.36
35 dev-libs/glib
36 dev-libs/libxml2
37 gnome-base/librsvg
38 media-gfx/imagemagick
39 virtual/jpeg
40 media-libs/libpng:0
41 media-libs/libsdl[joystick,video]
42 virtual/ffmpeg
43 virtual/opengl
44 virtual/glu
45 sys-libs/zlib
46 x11-libs/cairo
47 x11-libs/gdk-pixbuf
48 x11-libs/pango"
49 DEPEND="${RDEPEND}
50 media-libs/glew
51 sys-apps/help2man"
52
53 PATCHES=(
54 "${FILESDIR}"/${P}-libav.patch
55 "${FILESDIR}"/${P}-gentoo.patch
56 "${FILESDIR}"/${P}-linguas.patch
57 "${FILESDIR}"/${P}-desktop.patch
58 )
59
60 src_prepare() {
61 base_src_prepare
62 sed -i \
63 -e "s:@GENTOO_BINDIR@:${GAMES_BINDIR}:" \
64 game/CMakeLists.txt \
65 || die
66
67 strip-linguas -u lang
68
69 # how do I hate boost? Let me count the ways...
70 local boost_ver=$(best_version ">=dev-libs/boost-1.36")
71
72 boost_ver=${boost_ver/*boost-/}
73 boost_ver=${boost_ver%.*}
74 boost_ver=${boost_ver/./_}
75
76 einfo "Using boost version ${boost_ver}"
77 append-cxxflags \
78 -I/usr/include/boost-${boost_ver}
79 append-ldflags \
80 -L/usr/$(get_libdir)/boost-${boost_ver}
81 export BOOST_INCLUDEDIR="/usr/include/boost-${boost_ver}"
82 export BOOST_LIBRARYDIR="/usr/$(get_libdir)/boost-${boost_ver}"
83 }
84
85 src_configure() {
86 local mycmakeargs=(
87 $(cmake-utils_use_enable tools TOOLS)
88 -DCMAKE_VERBOSE_MAKEFILE=TRUE
89 -DSHARE_INSTALL="${GAMES_DATADIR}"/${PN}
90 )
91 cmake-utils_src_configure
92 }
93
94 src_compile() {
95 cmake-utils_src_compile
96 }
97
98 src_install() {
99 cmake-utils_src_install
100 if use songs ; then
101 insinto "${GAMES_DATADIR}"/${PN}
102 doins -r "${WORKDIR}/songs" || die
103 fi
104 dodoc docs/{Authors,DeveloperReadme,instruments,TODO}.txt
105 prepgamesdirs
106 }

  ViewVC Help
Powered by ViewVC 1.1.20