summaryrefslogtreecommitdiff
blob: 233d31852484e828afeebf9727c9ba6a035ea3d2 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/liquidwar/liquidwar-5.5.9.ebuild,v 1.1 2003/09/10 05:27:31 vapier Exp $

inherit games flag-o-matic

DESCRIPTION="unique multiplayer wargame"
HOMEPAGE="http://www.ufoot.org/liquidwar/"
SRC_URI="http://freesoftware.fsf.org/download/liquidwar/${P}.tar.gz"

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

DEPEND=">media-libs/allegro-4.0"

src_compile() {
	# Fixes build problem with gcc3 and -march=pentium4
	replace-flags "-march=pentium4" "-march=pentium3"

	econf --disable-doc-ps --disable-doc-pdf || die
	emake || die
}

src_install() {
	make DESTDIR=${D} install || die

	cd ${D}/usr/games
	mkdir bin
	mv liquidwar liquidwar-server bin/
	rm -rf ${D}/usr/bin

	prepgamesdirs
}