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-2015 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
EAPI=4
|
|
|
|
inherit eutils toolchain-funcs games
|
|
|
|
|
|
|
|
DESCRIPTION="You are now free to fly around the city and poop on passers-by"
|
|
|
|
HOMEPAGE="http://poopmup.sourceforge.net/"
|
|
|
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="amd64 ppc x86"
|
|
|
|
IUSE=""
|
|
|
|
RESTRICT="test"
|
|
|
|
|
|
|
|
DEPEND="media-libs/freeglut
|
|
|
|
x11-libs/libXi
|
|
|
|
x11-libs/libXmu
|
|
|
|
virtual/opengl"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
S=${WORKDIR}/${PN}
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
sed -i \
|
|
|
|
-e "s:textures/:${GAMES_DATADIR}/${PN}/:" \
|
|
|
|
includes/textureLoader.h || die "sed failed"
|
|
|
|
sed -i \
|
|
|
|
-e "s:config/:${GAMES_SYSCONFDIR}/:" \
|
|
|
|
myConfig.h || die "sed failed"
|
|
|
|
sed -i \
|
|
|
|
-e '/clear/d' \
|
|
|
|
Makefile || die "sed failed" # bug #120907
|
|
|
|
|
|
|
|
epatch \
|
|
|
|
"${FILESDIR}"/${P}-freeglut.patch \
|
|
|
|
"${FILESDIR}"/${P}-gcc43.patch \
|
|
|
|
"${FILESDIR}"/${P}-ldflags.patch
|
|
|
|
ecvs_clean
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
emake CC="$(tc-getCXX) ${CFLAGS}"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
newgamesbin poopmup.o poopmup
|
|
|
|
|
|
|
|
insinto "${GAMES_DATADIR}/${PN}"
|
|
|
|
doins textures/*
|
|
|
|
|
|
|
|
insinto "${GAMES_SYSCONFDIR}"
|
|
|
|
doins config/*
|
|
|
|
|
|
|
|
dodoc README docs/*.doc
|
|
|
|
dohtml docs/userman.htm
|
|
|
|
|
|
|
|
prepgamesdirs
|
|
|
|
}
|