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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jan 24 17:04:10 2013 UTC (21 months, 4 weeks ago) by hasufell
Branch: MAIN
add missing deps, add midi and webcam useflag, fix build time issues wrt #452476, bump EAPI

(Portage version: 2.2.0_alpha159/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)

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.3 2013/01/13 11:22:47 ago Exp $
4
5 EAPI=5
6
7 CMAKE_REMOVE_MODULES="yes"
8 CMAKE_REMOVE_MODULES_LIST="FindALSA FindBoost FindGettext FindJpeg FindPng FindTiff FindZ"
9 inherit eutils base cmake-utils games
10
11 MY_PN=Performous
12 MY_P=${MY_PN}-${PV}
13 SONGS_PN=ultrastar-songs
14
15 DESCRIPTION="SingStar GPL clone"
16 HOMEPAGE="http://sourceforge.net/projects/performous/"
17 SRC_URI="mirror://sourceforge/performous/${P}.tar.bz2
18 songs? (
19 mirror://sourceforge/performous/${SONGS_PN}-restricted-3.zip
20 mirror://sourceforge/performous/${SONGS_PN}-jc-1.zip
21 mirror://sourceforge/performous/${SONGS_PN}-libre-3.zip
22 mirror://sourceforge/performous/${SONGS_PN}-shearer-1.zip
23 )"
24
25 LICENSE="GPL-2
26 songs? (
27 CCPL-Attribution-ShareAlike-NonCommercial-2.5
28 CCPL-Attribution-NonCommercial-NoDerivs-2.5
29 )"
30 SLOT="0"
31 KEYWORDS="~amd64 ~x86"
32 IUSE="midi songs tools webcam"
33
34 RDEPEND="dev-cpp/glibmm
35 dev-cpp/libxmlpp
36 media-libs/portaudio
37 dev-libs/boost[threads(+)]
38 dev-libs/glib
39 dev-libs/libxml2
40 gnome-base/librsvg
41 media-gfx/imagemagick
42 virtual/jpeg
43 media-libs/libpng:0
44 media-libs/libsdl[joystick,video]
45 virtual/ffmpeg
46 virtual/opengl
47 virtual/glu
48 sys-libs/zlib
49 virtual/libintl
50 x11-libs/cairo
51 x11-libs/gdk-pixbuf
52 x11-libs/pango
53 midi? ( media-libs/portmidi )
54 webcam? ( media-libs/opencv )"
55 DEPEND="${RDEPEND}
56 media-libs/glew
57 sys-apps/help2man
58 sys-devel/gettext"
59
60 PATCHES=(
61 "${FILESDIR}"/${P}-libav.patch
62 "${FILESDIR}"/${P}-gentoo.patch
63 "${FILESDIR}"/${P}-linguas.patch
64 "${FILESDIR}"/${P}-desktop.patch
65 "${FILESDIR}"/${P}-cmake.patch
66 )
67
68 src_prepare() {
69 base_src_prepare
70 sed -i \
71 -e "s:@GENTOO_BINDIR@:${GAMES_BINDIR}:" \
72 game/CMakeLists.txt \
73 || die
74
75 strip-linguas -u lang
76 }
77
78 src_configure() {
79 local mycmakeargs=(
80 $(cmake-utils_use_enable tools TOOLS)
81 $(usex midi "" "-DNO_PORTMIDI=ON")
82 $(usex webcam "" "-DNO_WEBCAM=ON")
83 -DCMAKE_VERBOSE_MAKEFILE=TRUE
84 -DSHARE_INSTALL="${GAMES_DATADIR}"/${PN}
85 )
86 cmake-utils_src_configure
87 }
88
89 src_compile() {
90 cmake-utils_src_compile
91 }
92
93 src_install() {
94 cmake-utils_src_install
95 if use songs ; then
96 insinto "${GAMES_DATADIR}"/${PN}
97 doins -r "${WORKDIR}/songs"
98 fi
99 dodoc docs/{Authors,DeveloperReadme,instruments,TODO}.txt
100 prepgamesdirs
101 }

  ViewVC Help
Powered by ViewVC 1.1.20