blob: d1edf5a5ca10091b3c917eefa068e3c4fba2799e (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/nprquake-sdl/nprquake-sdl-1-r1.ebuild,v 1.5 2004/06/24 22:42:39 agriffis Exp $
inherit games eutils
DESCRIPTION="quake1 utilizing a hand drawn engine"
HOMEPAGE="http://www.cs.wisc.edu/graphics/Gallery/NPRQuake/ http://www.tempestgames.com/ryan/"
SRC_URI="http://www.tempestgames.com/ryan/downloads/NPRQuake-SDL.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND="media-libs/libsdl"
S="${WORKDIR}/NPRQuake-SDL"
src_unpack() {
unpack ${A}
cd ${S}
epatch "${FILESDIR}/${PV}-gentoo.patch"
}
src_compile() {
make \
GENTOO_LIBDIR="${GAMES_LIBDIR}/${PN}" \
GENTOO_DATADIR="${GAMES_DATADIR}/quake-data" \
OPTFLAGS="${CFLAGS}" \
release \
|| die
}
src_install() {
dodoc README CHANGELOG
newgamesbin NPRQuakeSrc/release*/bin/* nprquake-sdl \
|| die "newgamesbin failed"
dodir "${GAMES_LIBDIR}/${PN}"
cp -r build/* "${D}/${GAMES_LIBDIR}/${PN}/" || die "cp failed"
cd "${D}/${GAMES_LIBDIR}/${PN}"
mv dr_default.so default.so
ln -s sketch.so dr_default.so
prepgamesdirs
}
|