summaryrefslogtreecommitdiff
blob: bf50288de35cdfc2310d0dcf18d9a76e8189ee15 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/wolfgl/wolfgl-0.93-r1.ebuild,v 1.1 2003/09/12 06:42:54 vapier Exp $

#ECVS_SERVER="cvs.sourceforge.net:/cvsroot/wolfgl"
#ECVS_MODULE="wolfgl"
#inherit cvs
inherit games

DESCRIPTION="Wolfenstein and Spear of Destiny port using OpenGL"
HOMEPAGE="http://wolfgl.sourceforge.net/"
SRC_URI="mirror://gentoo/${P}.tbz2
	mirror://sourceforge/wolfgl/wolfdata.zip
	mirror://sourceforge/wolfgl/sdmdata.zip"
#	mirror://sourceforge/wolfgl/wolfglx-wl6-${PV}.zip
#	mirror://sourceforge/wolfgl/wolfglx-sod-${PV}.zip

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"

DEPEND="virtual/opengl
	virtual/x11"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${PV}-gcc.patch
	epatch ${FILESDIR}/${PV}-sample-rate.patch
	epatch ${FILESDIR}/${PV}-sprite.patch
}

src_compile() {
	make CFLAGS="${CFLAGS}" DATADIR=${GAMES_DATADIR}/${PN} || die
}

src_install() {
	newgamesbin linux/SDM/wolfgl wolfgl-sdm
	newgamesbin linux/SOD/wolfgl wolfgl-sod
	newgamesbin linux/WL1/wolfgl wolfgl-wl1
	newgamesbin linux/WL6/wolfgl wolfgl-wl6
	insinto ${GAMES_DATADIR}/${PN}
	doins ${WORKDIR}/*.{sdm,wl1}
	prepgamesdirs
}

pkg_postinst() {
	games_pkg_postinst
	einfo "This installed the shareware data files for"
	einfo "Wolfenstein 3D and Spear Of Destiny."
	einfo "If you wish to play the full versions just"
	einfo "copy the data files to ${GAMES_DATADIR}/${PN}/"
}