You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.2 KiB
53 lines
1.2 KiB
13 years ago
|
# Copyright 1999-2011 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/pingus/pingus-0.7.3.ebuild,v 1.6 2011/02/15 17:57:52 mr_bones_ Exp $
|
||
|
|
||
|
EAPI=2
|
||
|
inherit eutils scons-utils 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=""
|
||
|
|
||
|
DEPEND="media-libs/libsdl[joystick,video]
|
||
|
media-libs/sdl-image[png]
|
||
|
media-libs/sdl-mixer
|
||
|
media-libs/libpng
|
||
|
dev-libs/boost"
|
||
|
|
||
|
src_prepare() {
|
||
|
epatch \
|
||
|
"${FILESDIR}"/${P}-paths.patch \
|
||
|
"${FILESDIR}"/${P}-libpng15.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() {
|
||
|
escons || die
|
||
|
}
|
||
|
|
||
|
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
|
||
|
}
|