summaryrefslogtreecommitdiff
blob: 6b9fa745c16ad794c9111bb0b12d8a93d7f8911f (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/lsdldoom/lsdldoom-1.4.4.4.ebuild,v 1.4 2004/02/08 03:16:36 vapier Exp $

DESCRIPTION="Port of ID's doom to SDL"
HOMEPAGE="http://firehead.org/~jessh/lsdldoom/"
SRC_URI="http://www.lbjhs.net/~jessh/lsdldoom/src/${P}.tar.gz
	http://www.lbjhs.net/~jessh/lsdldoom/doom1.wad.gz"

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

DEPEND=">=media-libs/sdl-mixer-1.2.0
	media-sound/timidity++"

src_unpack() {
	unpack ${P}.tar.gz
	cp ${DISTDIR}/doom1.wad.gz ${S}
	chmod 0644 ${S}/doom1.wad.gz
	gzip -d ${S}/*.gz
}

src_compile() {
	./configure \
		--prefix=/usr \
		--datadir=/usr/share/doom \
		--bindir=/usr/bin \
		--host=${CHOST} \
		|| die
	make || die
}

src_install() {
	dobin ${FILESDIR}/lsdldoom
	exeinto /usr/share/doom
	doexe src/lsdldoom src/lxdoom-game-server
	insinto /usr/share/doom/
	doins doom1.wad data/*.wad
	doman doc/boom.cfg.5 doc/lsdldoom.6 doc/lxdoom-game-server.6
	dodoc AUTHORS ChangeLog INSTALL NEWS README doc/*.txt
}