blob: 5c7c58b4e1b48508fd2e8070009a33718a31c1ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/supertux/supertux-0.0.4.ebuild,v 1.2 2004/01/01 01:31:06 mr_bones_ Exp $
inherit games
DESCRIPTION="A game similar to Super Mario Bros."
SRC_URI="ftp://ftp.sonic.net/pub/users/nbs/unix/x/supertux/src/${P}.tar.gz"
HOMEPAGE="http://www.newbreedsoftware.com/supertux/"
KEYWORDS="x86"
LICENSE="GPL-2"
SLOT="0"
RDEPEND=">=media-libs/libsdl-1.1.5
>=media-libs/sdl-image-1.2.2
>=media-libs/sdl-mixer-1.2.4"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
src_unpack() {
unpack ${A}
cd ${S}
sed -i \
-e "/^DATA_PREFIX=/ s:=.*:=${GAMES_DATADIR}/${PN}/:" \
-e "/^JOY=/ s/YES/NO/" \
-e "s:-O2:${CFLAGS}:" Makefile || \
die "sed Makefile failed"
rm -rf data/images/shared/.xvpics
}
src_install() {
dogamesbin supertux
dodir ${GAMES_DATADIR}/${PN}
cp -r data/{images,sounds,music,levels} ${D}/${GAMES_DATADIR}/${PN}/
dodoc {AUTHORS,CHANGES,INSTALL,README,TODO}.txt
prepgamesdirs
}
|