blob: 897befeb436de0102111f5d8dd6d49dde9c42c68 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2006 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.10 2006/05/26 02:48:18 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="cdinstall"
DEPEND="media-libs/libsdl"
RDEPEND="${DEPEND}
cdinstall? ( games-fps/quake1-data )"
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
}
pkg_postinst() {
# same warning used in quake1 / quakeforge / nprquake-sdl
games_pkg_postinst
echo
einfo "Before you can play, you must make sure"
einfo "${PN} can find your Quake .pak files"
echo
einfo "You have 2 choices to do this"
einfo "1 Copy pak*.pak files to ${GAMES_DATADIR}/quake1/id1"
einfo "2 Symlink pak*.pak files in ${GAMES_DATADIR}/quake1/id1"
echo
einfo "Example:"
einfo "my pak*.pak files are in /mnt/secondary/Games/Quake/Id1/"
einfo "ln -s /mnt/secondary/Games/Quake/Id1/pak0.pak ${GAMES_DATADIR}/quake1/id1/pak0.pak"
echo
einfo "You only need pak0.pak to play the demo version,"
einfo "the others are needed for registered version"
}
|