/[gentoo-x86]/games-action/poopmup/poopmup-1.2.ebuild
Gentoo

Contents of /games-action/poopmup/poopmup-1.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.20 - (show annotations) (download)
Thu Jan 1 20:14:18 2015 UTC (5 years ago) by tupone
Branch: MAIN
CVS Tags: HEAD
Changes since 1.19: +8 -7 lines
EAPI 4

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0145142D)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-action/poopmup/poopmup-1.2.ebuild,v 1.19 2010/10/11 20:43:14 mr_bones_ Exp $
4
5 EAPI=4
6 inherit eutils toolchain-funcs games
7
8 DESCRIPTION="You are now free to fly around the city and poop on passers-by"
9 HOMEPAGE="http://poopmup.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ppc x86"
15 IUSE=""
16 RESTRICT="test"
17
18 DEPEND="media-libs/freeglut
19 x11-libs/libXi
20 x11-libs/libXmu
21 virtual/opengl"
22 RDEPEND="${DEPEND}"
23
24 S=${WORKDIR}/${PN}
25
26 src_prepare() {
27 sed -i \
28 -e "s:textures/:${GAMES_DATADIR}/${PN}/:" \
29 includes/textureLoader.h || die "sed failed"
30 sed -i \
31 -e "s:config/:${GAMES_SYSCONFDIR}/:" \
32 myConfig.h || die "sed failed"
33 sed -i \
34 -e '/clear/d' \
35 Makefile || die "sed failed" # bug #120907
36
37 epatch \
38 "${FILESDIR}"/${P}-freeglut.patch \
39 "${FILESDIR}"/${P}-gcc43.patch \
40 "${FILESDIR}"/${P}-ldflags.patch
41 ecvs_clean
42 }
43
44 src_compile() {
45 emake CC="$(tc-getCXX) ${CFLAGS}"
46 }
47
48 src_install() {
49 newgamesbin poopmup.o poopmup
50
51 insinto "${GAMES_DATADIR}/${PN}"
52 doins textures/*
53
54 insinto "${GAMES_SYSCONFDIR}"
55 doins config/*
56
57 dodoc README docs/*.doc
58 dohtml docs/userman.htm
59
60 prepgamesdirs
61 }

  ViewVC Help
Powered by ViewVC 1.1.20