blob: fcc6c63f06f978a952f46737162e8e676593c613 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/blackshades-cvs/blackshades-cvs-20031110.ebuild,v 1.7 2004/07/14 14:43:28 agriffis Exp $
#ECVS_PASS="anonymous"
#ECVS_SERVER="icculus.org:/cvs/cvsroot"
ECVS_MODULE="blackshades"
#inherit cvs
inherit games
DESCRIPTION="you control a psychic bodyguard, and try to protect the VIP"
HOMEPAGE="http://www.wolfire.com/blackshades.html http://www.icculus.org/blackshades/"
SRC_URI="http://filesingularity.timedoctor.org/Textures.tar.bz2
mirror://gentoo/blackshades-${PV}.tar.bz2"
LICENSE="blackshades"
SLOT="0"
KEYWORDS="x86 ~ppc"
IUSE=""
RDEPEND="virtual/x11
virtual/opengl
virtual/glut
media-libs/libvorbis
media-libs/openal
media-libs/libsdl"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
S="${WORKDIR}/${ECVS_MODULE}"
src_unpack() {
if [ -z "${ECVS_SERVER}" ] ; then
unpack blackshades-${PV}.tar.bz2
else
cvs_src_unpack
fi
cd ${WORKDIR}
unpack Textures.tar.bz2
cd ${S}
sed -i "/^CFLAGS/s:$: ${CFLAGS}:" Makefile || die "sed Makefile failed"
}
src_compile() {
make || die
}
src_install() {
dogamesbin ${FILESDIR}/blackshades
dosed "s:GENTOO_DIR:${GAMES_DATADIR}/${PN}:" ${GAMES_BINDIR}/blackshades
newgamesbin objs/blackshades blackshades-bin
dodir ${GAMES_DATADIR}/${PN}
rm -rf Data/Textures
mv ${WORKDIR}/Textures Data/
cp -rf Data ${D}/${GAMES_DATADIR}/${PN}/
dodoc IF_THIS_IS_A_README_YOU_HAVE_WON Readme TODO uDevGame_Readme
prepgamesdirs
}
|