summaryrefslogtreecommitdiff
blob: e243643f94e4a2c8d4d0966b41a2a37278eb7f5f (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-util/glbsp/glbsp-2.05.ebuild,v 1.2 2004/07/21 18:41:18 dholm Exp $

DESCRIPTION="A node builder specially designed for OpenGL ports of the DOOM game engine"
HOMEPAGE="http://glbsp.sourceforge.net/"
SRC_URI="mirror://sourceforge/glbsp/${PN}_src_205.tar.gz"

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

src_unpack() {
	unpack ${A}
	cd ${S}
	sed -i "s:-O3:${CFLAGS}:" {cmdline,plugin}/makefile.unx || die
}

src_compile() {
	emake -C cmdline -f makefile.unx || die "cmdline failed"
	emake -C plugin -f makefile.unx || die "plugin failed"
}

src_install() {
	dobin cmdline/glbsp || die
	dolib.a plugin/libglbsp.a || die
	dodoc CHANGES.txt README.txt TODO.txt USAGE.txt
}