You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.3 KiB
71 lines
1.3 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
12 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
12 years ago
|
|
||
9 years ago
|
EAPI=5
|
||
12 years ago
|
inherit autotools eutils flag-o-matic games
|
||
12 years ago
|
|
||
|
DESCRIPTION="3D tank combat simulator game"
|
||
|
HOMEPAGE="http://www.bzflag.org/"
|
||
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
|
||
|
|
||
|
LICENSE="LGPL-2.1"
|
||
|
SLOT="0"
|
||
12 years ago
|
KEYWORDS="amd64 ppc x86"
|
||
9 years ago
|
IUSE="dedicated sdl"
|
||
12 years ago
|
|
||
|
UIDEPEND="virtual/opengl
|
||
|
virtual/glu
|
||
11 years ago
|
media-libs/libsdl[sound,joystick,video]
|
||
12 years ago
|
media-libs/glew
|
||
|
x11-libs/libICE
|
||
|
x11-libs/libSM
|
||
|
x11-libs/libX11
|
||
|
x11-libs/libXau
|
||
|
x11-libs/libXdmcp
|
||
|
x11-libs/libXext
|
||
|
x11-libs/libXi
|
||
|
x11-libs/libXmu
|
||
|
x11-libs/libXt
|
||
|
x11-libs/libXxf86vm"
|
||
|
|
||
|
DEPEND=">=net-misc/curl-7.15.0
|
||
|
sys-libs/ncurses
|
||
|
net-dns/c-ares
|
||
|
sdl? ( ${UIDEPEND} )
|
||
|
!sdl? ( !dedicated? ( ${UIDEPEND} ) )"
|
||
|
|
||
12 years ago
|
src_prepare() {
|
||
|
epatch "${FILESDIR}"/${P}-nocxxflags.patch
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
12 years ago
|
src_configure() {
|
||
|
local myconf
|
||
|
|
||
|
if use dedicated && ! use sdl ; then
|
||
|
ewarn
|
||
|
ewarn "You are building a server-only copy of BZFlag"
|
||
|
ewarn
|
||
|
myconf="--disable-client --without-SDL"
|
||
|
fi
|
||
|
egamesconf \
|
||
|
--disable-ccachetest \
|
||
|
--without-regex \
|
||
9 years ago
|
--disable-UPnP \
|
||
12 years ago
|
${myconf}
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
12 years ago
|
default
|
||
|
dodoc PORTING DEVINFO
|
||
12 years ago
|
|
||
|
if use sdl || ! use dedicated ; then
|
||
|
newicon "data/bzflag-48x48.png" ${PN}.png
|
||
|
make_desktop_entry ${PN} "BZFlag"
|
||
|
fi
|
||
|
|
||
12 years ago
|
prune_libtool_files --modules
|
||
12 years ago
|
prepgamesdirs
|
||
|
}
|