blob: 679a178649550c5913673ab667a9034ddb41c7f9 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/pingus/pingus-0.7.2.ebuild,v 1.9 2009/04/04 00:53:00 mr_bones_ Exp $
EAPI=2
inherit eutils toolchain-funcs games
DESCRIPTION="free Lemmings clone"
HOMEPAGE="http://pingus.seul.org/"
SRC_URI="http://pingus.seul.org/files/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
RDEPEND="media-libs/libsdl
media-libs/sdl-image
media-libs/sdl-mixer
media-libs/libpng
dev-libs/boost"
DEPEND="${RDEPEND}
>=dev-util/scons-0.97"
src_prepare() {
epatch \
"${FILESDIR}"/${P}-paths.patch \
"${FILESDIR}"/${P}+gcc-4.3.patch \
"${FILESDIR}"/${P}-gcc44.patch
sed -i \
-e "s:GENTOO_BINDIR:${GAMES_BINDIR}:" \
-e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" \
install.sh src/pingus_main.cpp \
|| die "sed failed"
}
src_configure() {
scons configure \
CXX="$(tc-getCXX)" \
CCFLAGS="${CXXFLAGS}" \
LINKFLAGS="${LDFLAGS}" \
|| die "scons configure failed"
}
src_compile() {
local sconsopts=$(echo "${MAKEOPTS}" | sed -e "s/.*\(-j[0-9]\+\).*/\1/")
[[ ${MAKEOPTS/-s/} != ${MAKEOPTS} ]] && sconsopts="${sconsopts} -s"
scons ${sconsopts} || die "scons failed"
}
src_install() {
./install.sh "${D}" || die "install.sh failed"
newicon data/images/core/worldmap/pingus_standing.png ${PN}.png
make_desktop_entry ${PN} Pingus
dodoc AUTHORS NEWS README TODO
prepgamesdirs
}
|