/[gentoo-x86]/games-arcade/sdb/sdb-1.0.2.ebuild
Gentoo

Contents of /games-arcade/sdb/sdb-1.0.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Mon Jan 5 17:32:21 2015 UTC (5 years, 6 months ago) by tupone
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +7 -7 lines
EAPI 5

(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-arcade/sdb/sdb-1.0.2.ebuild,v 1.9 2010/09/21 08:37:24 tupone Exp $
4
5 EAPI=5
6 inherit eutils games
7
8 DESCRIPTION="a 2D top-down action game; escape a facility full of walking death machines"
9 HOMEPAGE="http://sdb.gamecreation.org/"
10 SRC_URI="http://gcsociety.sp.cs.cmu.edu/~frenzy/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ~ppc x86"
15 IUSE=""
16
17 DEPEND="virtual/opengl
18 media-libs/libsdl
19 media-libs/sdl-image[png]
20 media-libs/sdl-mixer"
21 RDEPEND="${DEPEND}"
22
23 src_prepare() {
24 sed -i \
25 -e "s:models/:${GAMES_DATADIR}/${PN}/models/:" \
26 -e "s:snd/:${GAMES_DATADIR}/${PN}/snd/:" \
27 -e "s:sprites/:${GAMES_DATADIR}/${PN}/sprites/:" \
28 -e "s:levels/:${GAMES_DATADIR}/${PN}/levels/:" \
29 src/sdb.h src/game.cpp || die "setting game paths"
30 epatch \
31 "${FILESDIR}"/${P}-endian.patch \
32 "${FILESDIR}"/${P}-gcc43.patch \
33 "${FILESDIR}"/${P}-ldflags.patch
34 }
35
36 src_compile() {
37 emake \
38 -C src \
39 CXXFLAGS="${CXXFLAGS} $(sdl-config --cflags)"
40 }
41
42 src_install() {
43 dogamesbin src/sdb
44 insinto "${GAMES_DATADIR}"/${PN}
45 doins -r levels models snd sprites
46 newicon sprites/barrel.png ${PN}.png
47 make_desktop_entry sdb "Shotgun Debugger"
48 dodoc ChangeLog README
49 prepgamesdirs
50 }

  ViewVC Help
Powered by ViewVC 1.1.20