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.
99 lines
2.0 KiB
99 lines
2.0 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=7
|
||
|
|
||
6 years ago
|
inherit desktop
|
||
13 years ago
|
|
||
|
DESCRIPTION="A cartoon style multiplayer first-person shooter"
|
||
6 years ago
|
HOMEPAGE="https://worldofpadman.net/"
|
||
13 years ago
|
SRC_URI="mirror://sourceforge/${PN}/wop-1.5-unified.zip
|
||
|
mirror://sourceforge/${PN}/wop-1.5.x-to-1.6-patch-unified.zip"
|
||
3 years ago
|
S="${WORKDIR}/${P}_svn2178-src"
|
||
13 years ago
|
|
||
|
LICENSE="GPL-2 worldofpadman"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
13 years ago
|
IUSE="+curl dedicated maps +openal +theora +vorbis"
|
||
|
|
||
|
RDEPEND="sys-libs/zlib
|
||
|
!dedicated? (
|
||
6 years ago
|
>=media-libs/speex-1.2.0
|
||
|
media-libs/speexdsp
|
||
11 years ago
|
virtual/jpeg:0
|
||
3 years ago
|
media-libs/libsdl[joystick,opengl,video,X]
|
||
13 years ago
|
virtual/opengl
|
||
10 years ago
|
virtual/glu
|
||
13 years ago
|
openal? ( media-libs/openal )
|
||
|
curl? ( net-misc/curl )
|
||
|
vorbis? ( media-libs/libvorbis )
|
||
|
theora? (
|
||
|
media-libs/libtheora
|
||
|
media-libs/libogg
|
||
|
)
|
||
6 years ago
|
)
|
||
|
"
|
||
3 years ago
|
DEPEND="${RDEPEND}"
|
||
|
BDEPEND="app-arch/unzip"
|
||
13 years ago
|
|
||
|
src_unpack() {
|
||
|
unpack ${A}
|
||
|
unzip XTRAS/"editing files"/${P}-src.zip
|
||
|
}
|
||
|
|
||
11 years ago
|
src_prepare() {
|
||
6 years ago
|
default
|
||
|
eapply "${FILESDIR}"/${P}-gentoo.patch
|
||
11 years ago
|
sed -i \
|
||
|
-e 's:JPEG_LIB_VERSION < 80:JPEG_LIB_VERSION < 62:' \
|
||
|
code/renderer/tr_image_jpg.c || die #479652
|
||
|
}
|
||
|
|
||
13 years ago
|
src_compile() {
|
||
|
local arch
|
||
|
|
||
|
if use amd64 ; then
|
||
|
arch=x86_64
|
||
|
elif use x86 ; then
|
||
|
arch=i386
|
||
|
fi
|
||
|
|
||
|
emake \
|
||
|
V=1 \
|
||
|
ARCH=${arch} \
|
||
|
BUILD_CLIENT=$(use dedicated && echo 0) \
|
||
6 years ago
|
DEFAULT_BASEDIR=/usr/share/${PN} \
|
||
13 years ago
|
OPTIMIZE= \
|
||
10 years ago
|
USE_CURL=$(usex curl 1 0) \
|
||
13 years ago
|
USE_CURL_DLOPEN=0 \
|
||
10 years ago
|
USE_OPENAL=$(usex openal 1 0) \
|
||
13 years ago
|
USE_OPENAL_DLOPEN=0 \
|
||
10 years ago
|
USE_CODEC_VORBIS=$(usex vorbis 1 0) \
|
||
|
USE_CIN_THEORA=$(usex theora 1 0) \
|
||
13 years ago
|
USE_RENDERER_DLOPEN=0 \
|
||
|
USE_INTERNAL_ZLIB=0 \
|
||
|
USE_INTERNAL_JPEG=0 \
|
||
11 years ago
|
USE_INTERNAL_SPEEX=0
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
6 years ago
|
newbin build/release-*/wopded.* ${PN}-ded
|
||
3 years ago
|
|
||
13 years ago
|
if ! use dedicated ; then
|
||
6 years ago
|
newbin build/release-*/wop.* ${PN}
|
||
11 years ago
|
newicon misc/quake3.png ${PN}.png
|
||
13 years ago
|
make_desktop_entry ${PN} "World of Padman"
|
||
|
fi
|
||
3 years ago
|
|
||
6 years ago
|
insinto /usr/share/${PN}
|
||
11 years ago
|
doins -r ../wop
|
||
13 years ago
|
|
||
|
dodoc id-readme.txt \
|
||
|
IOQ3-README \
|
||
|
voip-readme.txt \
|
||
|
../XTRAS/changelog.txt \
|
||
11 years ago
|
../XTRAS/sounds_readme.txt
|
||
3 years ago
|
|
||
6 years ago
|
HTML_DOCS="../XTRAS/readme ../XTRAS/readme.html" einstalldocs
|
||
13 years ago
|
}
|