blob: ba9000717505d38c834439deb7f618979ccc879b (
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
67
68
|
# Copyright 1999-2007 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.14 2007/12/25 22:45:44 solar 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 sys-libs/glibc"
RDEPEND="${DEPEND}
cdinstall? ( games-fps/quake1-data )"
S=${WORKDIR}/NPRQuake-SDL
src_unpack() {
unpack ${A}
cd "${S}"
epatch \
"${FILESDIR}"/${PV}-gentoo.patch \
"${FILESDIR}"/${P}-exec-stack.patch
}
src_compile() {
emake \
GENTOO_LIBDIR="$(games_get_libdir)/${PN}" \
GENTOO_DATADIR="${GAMES_DATADIR}/quake1" \
OPTFLAGS="${CFLAGS}" \
release \
|| die "emake failed"
}
src_install() {
dodoc README CHANGELOG
newgamesbin NPRQuakeSrc/release*/bin/* nprquake-sdl \
|| die "newgamesbin failed"
dodir "$(games_get_libdir)/${PN}"
cp -r build/* "${D}/$(games_get_libdir)/${PN}/" || die "cp failed"
cd "${D}/$(games_get_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
elog "Before you can play, you must make sure"
elog "${PN} can find your Quake .pak files"
elog
elog "You have 2 choices to do this"
elog "1 Copy pak*.pak files to ${GAMES_DATADIR}/quake1/id1"
elog "2 Symlink pak*.pak files in ${GAMES_DATADIR}/quake1/id1"
elog
elog "Example:"
elog "my pak*.pak files are in /mnt/secondary/Games/Quake/Id1/"
elog "ln -s /mnt/secondary/Games/Quake/Id1/pak0.pak ${GAMES_DATADIR}/quake1/id1/pak0.pak"
elog
elog "You only need pak0.pak to play the demo version,"
elog "the others are needed for registered version"
}
|