summaryrefslogtreecommitdiff
blob: 5df08aa08e79559d094092a2402d1357eb73b7a6 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/doomsday/doomsday-1.8.1.ebuild,v 1.1 2004/08/31 22:17:26 wolf31o2 Exp $

inherit games eutils

DESCRIPTION="A modern gaming engine for Doom, Heretic, and Hexen"
HOMEPAGE="http://www.doomsdayhq.com/"
SRC_URI="mirror://sourceforge/deng/deng-${PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="openal"

DEPEND="virtual/opengl
	virtual/glu
	media-libs/libsdl
	media-libs/sdl-mixer
	media-libs/sdl-net
	openal? ( media-libs/openal )"

S=${WORKDIR}/deng-${PV}

src_unpack() {
	unpack ${A}
	cd ${S}
#	epatch ${FILESDIR}/${PV}-filename-case.patch
	epatch ${FILESDIR}/${PV}-ambient-light.patch
}

src_install() {
	make install DESTDIR=${D} || die "egamesinstall failed"
	rmdir ${D}/${GAMES_PREFIX}/include
	mv ${D}/${GAMES_DATADIR}/{deng/Data/jDoom,doom-data}
	dosym ${GAMES_DATADIR}/doom-data ${GAMES_DATADIR}/deng/Data/jDoom

	local game
	for game in jdoom jheretic jhexen ; do
		newgamesbin ${FILESDIR}/wrapper ${game}
		dosed "s:GAME:${game}:" ${GAMES_BINDIR}/${game}
	done

	dodoc Doc/*.txt Doc/*/*.txt README
	prepgamesdirs
}