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.
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/pingus/pingus-0.7.6.ebuild,v 1.5 2012/05/24 18:06:07 mr_bones_ Exp $
|
|
|
|
|
|
|
|
EAPI=2
|
|
|
|
inherit eutils flag-o-matic scons-utils toolchain-funcs games
|
|
|
|
|
|
|
|
DESCRIPTION="free Lemmings clone"
|
|
|
|
HOMEPAGE="http://pingus.seul.org/"
|
|
|
|
SRC_URI="http://pingus.googlecode.com/files/${P}.tar.bz2"
|
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="amd64 ppc x86"
|
|
|
|
IUSE="opengl"
|
|
|
|
|
|
|
|
DEPEND="media-libs/libsdl[joystick,opengl?,video]
|
|
|
|
media-libs/sdl-image[png]
|
|
|
|
media-libs/sdl-mixer
|
|
|
|
opengl? ( virtual/opengl )
|
|
|
|
media-libs/libpng
|
|
|
|
dev-libs/boost"
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
strip-flags
|
|
|
|
escons \
|
|
|
|
CXX="$(tc-getCXX)" \
|
|
|
|
CCFLAGS="${CXXFLAGS}" \
|
|
|
|
LINKFLAGS="${LDFLAGS}" \
|
|
|
|
$(use_scons opengl with_opengl) \
|
|
|
|
|| die
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake install-exec install-data \
|
|
|
|
DESTDIR="${D}" \
|
|
|
|
PREFIX="/usr" \
|
|
|
|
DATADIR="${GAMES_DATADIR}/${PN}" \
|
|
|
|
BINDIR="${GAMES_BINDIR}" \
|
|
|
|
|| die
|
|
|
|
doman doc/man/pingus.6
|
|
|
|
doicon data/images/icons/pingus.svg
|
|
|
|
make_desktop_entry ${PN} Pingus
|
|
|
|
dodoc AUTHORS NEWS README TODO
|
|
|
|
prepgamesdirs
|
|
|
|
}
|