summaryrefslogtreecommitdiff
blob: 785e18f4cb29335491b4d95fe4210f2e3f39d42f (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
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/sdlsasteroids/sdlsasteroids-3.0.ebuild,v 1.7 2004/07/01 03:08:07 mr_bones_ Exp $

inherit games

DESCRIPTION="Rework of Sasteroids using SDL"
HOMEPAGE="http://sdlsas.sourceforge.net/"
SRC_URI="mirror://sourceforge/sdlsas/sasteroids-${PV}.tar.gz"

LICENSE="GPL-2 freedist"
SLOT="0"
KEYWORDS="x86 ~amd64"
IUSE=""

RDEPEND="virtual/libc
	virtual/opengl
	>=media-libs/sdl-mixer-1.2.0
	media-libs/libsdl
	media-libs/sdl-image
	media-libs/sdl-ttf"
DEPEND="${RDEPEND}
	>=sys-apps/sed-4"

S="${WORKDIR}/SDLSasteroids-${PV}"

src_unpack() {
	unpack ${A}
	cd ${S}
	sed -i \
		-e '34 d' \
		-e 's/make /$(MAKE) /' Makefile \
			|| die "sed Makefile failed"
}

src_compile() {
	emake \
		GAMEDIR="${GAMES_DATADIR}/${PN}" \
		OPTS="${CXXFLAGS}" \
			|| die "emake failed"
}

src_install() {
	dodir /usr/share/man/man6/
	make \
		GAMEDIR="${D}/${GAMES_DATADIR}/${PN}" \
		BINDIR="${D}/${GAMES_BINDIR}" \
		MANDIR="${D}/usr/share/man/" \
		install || die "make install failed"
	dodoc ChangeLog README README.xast TODO description
	prepgamesdirs
}