-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="+curl +openal +vorbis"
+IUSE="+client +curl +openal +vorbis"
RDEPEND="
- media-libs/libsdl[joystick,opengl,video]
- media-libs/speex
- media-libs/speexdsp
- virtual/jpeg:0
- virtual/opengl
- x11-libs/libXext
- x11-libs/libX11
- x11-libs/libXau
- x11-libs/libXdmcp
- curl? ( net-misc/curl )
- openal? ( media-libs/openal )
- vorbis? ( media-libs/libvorbis )
+ client? (
+ media-libs/libsdl[joystick,opengl,video]
+ media-libs/speex
+ media-libs/speexdsp
+ virtual/jpeg:0
+ virtual/opengl
+ x11-libs/libXext
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ curl? ( net-misc/curl )
+ openal? ( media-libs/openal )
+ vorbis? ( media-libs/libvorbis )
+ )
"
DEPEND="${RDEPEND}
app-arch/unzip
# also build always server and use smp by default
myopts="USE_INTERNAL_SPEEX=0 USE_VOIP=1 USE_MUMBLE=0
BUILD_SERVER=1 BUILD_CLIENT_SMP=1 USE_LOCAL_HEADERS=0"
+ use client || myopts="${myopts} BUILD_CLIENT=0"
use curl || myopts="${myopts} USE_CURL=0"
use openal || myopts="${myopts} USE_OPENAL=0"
use vorbis || myopts="${myopts} USE_CODEC_VORBIS=0"
src_install() {
cd "${MY_S}"/"${BUILD_DIR}"
- newbin openarena-smp.* "${PN}"
+ use client && newbin openarena-smp.* "${PN}"
newbin oa_ded.* "${PN}-ded"
cd "${S}"
doins -r baseoa missionpack
dodoc CHANGES CREDITS LINUXNOTES README
- newicon "${MY_S}"/misc/quake3.png ${PN}.png
- make_desktop_entry ${PN} "OpenArena"
+ if use client; then
+ newicon "${MY_S}"/misc/quake3.png ${PN}.png
+ make_desktop_entry ${PN} "OpenArena"
+ fi
}