blob: 980f97038802d09a99752adaeb1a29a06f2e52c0 (
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-2005 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.7 2005/11/05 22:36:21 vapier Exp $
inherit eutils games
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}/quake1" \
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
}
|