summaryrefslogtreecommitdiff
path: root/games-fps/worldofpadman
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-fps/worldofpadman
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-fps/worldofpadman')
-rw-r--r--games-fps/worldofpadman/Manifest5
-rw-r--r--games-fps/worldofpadman/files/worldofpadman-1.6-gentoo.patch92
-rw-r--r--games-fps/worldofpadman/metadata.xml14
-rw-r--r--games-fps/worldofpadman/worldofpadman-1.6-r1.ebuild96
4 files changed, 207 insertions, 0 deletions
diff --git a/games-fps/worldofpadman/Manifest b/games-fps/worldofpadman/Manifest
new file mode 100644
index 000000000000..a1240f9f2fd1
--- /dev/null
+++ b/games-fps/worldofpadman/Manifest
@@ -0,0 +1,5 @@
+AUX worldofpadman-1.6-gentoo.patch 2106 BLAKE2B ae27668e8e3e570b5a5beff3fbaefc4fb44c41d3d0686c90437256df66f994eeb66337ec4444d6190cd5398d8f044067fce6234b952082d2ea44a8195c3ceedb SHA512 9c5a3e85a2e67cfca2e066b9f92103020e005988a000029439f0678249041bc3675718beca0addf1bb360180af72d7e1acfa1136e289784d39abaea44096db2d
+DIST wop-1.5-unified.zip 947290087 BLAKE2B 5fb87cde661882fc095376012d9aca134d6399b4cedd4f3c78b739dd19e126360070278045d74c3318306e17490338111b8621e1c543b46e6bbecfbcd3658675 SHA512 fea0207efadf15afab7001227e27126aef4a673bd478dccb513c3011d0811074b2788083862f07e2f02f1a80ccb57a45ff64de8de155d8f8f7f1ab53ecf2402b
+DIST wop-1.5.x-to-1.6-patch-unified.zip 122204892 BLAKE2B a0f9feb04a15ec04dd64dbacdf5a158738d625651b2293bc8b3740067e849f33cdd144bce6afd11914524d89fe4bcfd48dbcbc455e51017b1216439e9bae484a SHA512 a45018bd79e9e23c57bcaf692fa14c323671103558caad6acb794c2990cc5fe9cc8bdbe6a6c8254c4560d81eb59f5e3b9a6800a61b21a15870c4439f7179d936
+EBUILD worldofpadman-1.6-r1.ebuild 2074 BLAKE2B 7b4eb271e0ed208b9bbbb052a7021260940960ee0f20e3e51a116db387b70f463c7a7eada7a40c1c0034aea04ff40ef3d17dd7ee8bdd92bbb7b56b2c3709862c SHA512 637675f347fc2494759bf18eefa3b5250e5abf251bfbc2f6df57320175280e32a74034dc4ebe32bb39b7bf6cd7ed44a39af69dfe87bb0223a36ee919434656d2
+MISC metadata.xml 421 BLAKE2B 0c13dc1221c5aa3f8ba78de2614ec62e48177ab0433652ec97ce454883b4a12ffe767ef6786f7f0ea5a75a2a67e868a01e771d7eb575c7ab8eeb4689ad5a8cdf SHA512 2716235255bd6e00d84c6f11f784850959fd50a6542fd98d9c7815d0c7a6f5a201807b02f1cd7d1ace59f1f19f40cb97aa01b9d649bb198678ac60f84d81eb1e
diff --git a/games-fps/worldofpadman/files/worldofpadman-1.6-gentoo.patch b/games-fps/worldofpadman/files/worldofpadman-1.6-gentoo.patch
new file mode 100644
index 000000000000..d55e43ffcf52
--- /dev/null
+++ b/games-fps/worldofpadman/files/worldofpadman-1.6-gentoo.patch
@@ -0,0 +1,92 @@
+--- a/Makefile.old 2012-04-26 21:40:25.277417417 +0200
++++ b/Makefile 2012-04-26 21:43:34.300835150 +0200
+@@ -344,11 +344,11 @@
+ endif
+
+ ifeq ($(USE_CIN_THEORA),1)
+- CLIENT_LDFLAGS += -ltheora
++ CLIENT_LIBS += -ltheora
+ endif
+
+ ifeq ($(USE_CODEC_MP3),1)
+- CLIENT_LDFLAGS += -lmad
++ CLIENT_LIBS += -lmad
+ endif
+
+ ifeq ($(USE_CURL),1)
+@@ -380,12 +380,12 @@
+
+ ifeq ($(USE_CIN_THEORA),1)
+ BASE_CFLAGS += -DUSE_CIN_THEORA
+- CLIENT_LDFLAGS += -ltheora
++ CLIENT_LIBS += -ltheora
+ endif
+
+ ifeq ($(USE_CODEC_MP3),1)
+ BASE_CFLAGS += -DUSE_CODEC_MP3
+- CLIENT_LDFLAGS += -lmad
++ CLIENT_LIBS += -lmad
+ endif
+ else # ifeq Linux
+
+@@ -435,12 +435,12 @@
+
+ ifeq ($(USE_CIN_THEORA),1)
+ BASE_CFLAGS += -DUSE_CIN_THEORA
+- CLIENT_LDFLAGS += -ltheora
++ CLIENT_LIBS += -ltheora
+ endif
+
+ ifeq ($(USE_CODEC_MP3),1)
+ BASE_CFLAGS += -DUSE_CODEC_MP3
+- CLIENT_LDFLAGS += -lmad
++ CLIENT_LIBS += -lmad
+ endif
+
+ BASE_CFLAGS += -D_THREAD_SAFE=1
+@@ -565,7 +565,7 @@
+ endif
+
+ ifeq ($(USE_CODEC_MP3),1)
+- CLIENT_LDFLAGS += -lmad
++ CLIENT_LIBS += -lmad
+ endif
+
+ ifeq ($(ARCH),x86)
+@@ -662,11 +662,11 @@
+ endif
+
+ ifeq ($(USE_CIN_THEORA),1)
+- CLIENT_LDFLAGS += -ltheora
++ CLIENT_LIBS += -ltheora
+ endif
+
+ ifeq ($(USE_CODEC_MP3),1)
+- CLIENT_LDFLAGS += -lmad
++ CLIENT_LIBS += -lmad
+ endif
+
+ # cross-compiling tweaks
+@@ -732,11 +732,11 @@
+ endif
+
+ ifeq ($(USE_CIN_THEORA),1)
+- CLIENT_LDFLAGS += -ltheora
++ CLIENT_LIBS += -ltheora
+ endif
+
+ ifeq ($(USE_CODEC_MP3),1)
+- CLIENT_LDFLAGS += -lmad
++ CLIENT_LIBS += -lmad
+ endif
+
+ ifeq ($(USE_CURL),1)
+@@ -1780,7 +1780,7 @@
+
+ $(B)/wop-smp$(FULLBINEXT): $(Q3OBJ) $(Q3ROBJ) $(Q3POBJ_SMP) $(LIBSDLMAIN)
+ $(echo_cmd) "LD $@"
+- $(Q)$(CC) $(CLIENT_CFLAGS) $(CFLAGS) $(CLIENT_LDFLAGS) $(LDFLAGS) $(THREAD_LDFLAGS) \
++ $(Q)$(CC) $(CLIENT_CFLAGS) $(CFLAGS) $(CLIENT_LDFLAGS) $(LDFLAGS) $(THREAD_LDFLAGS) \
+ -o $@ $(Q3OBJ) $(Q3ROBJ) $(Q3POBJ_SMP) \
+ $(THREAD_LIBS) $(LIBSDLMAIN) $(CLIENT_LIBS) $(RENDERER_LIBS) $(LIBS)
+ endif
diff --git a/games-fps/worldofpadman/metadata.xml b/games-fps/worldofpadman/metadata.xml
new file mode 100644
index 000000000000..3450a58db130
--- /dev/null
+++ b/games-fps/worldofpadman/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="maps">Install extra maps (PadPack)</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">worldofpadman</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-fps/worldofpadman/worldofpadman-1.6-r1.ebuild b/games-fps/worldofpadman/worldofpadman-1.6-r1.ebuild
new file mode 100644
index 000000000000..523ca7b597b2
--- /dev/null
+++ b/games-fps/worldofpadman/worldofpadman-1.6-r1.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit desktop
+
+DESCRIPTION="A cartoon style multiplayer first-person shooter"
+HOMEPAGE="https://worldofpadman.net/"
+SRC_URI="mirror://sourceforge/${PN}/wop-1.5-unified.zip
+ mirror://sourceforge/${PN}/wop-1.5.x-to-1.6-patch-unified.zip"
+
+LICENSE="GPL-2 worldofpadman"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+curl dedicated maps +openal +theora +vorbis"
+
+RDEPEND="sys-libs/zlib
+ !dedicated? (
+ >=media-libs/speex-1.2.0
+ media-libs/speexdsp
+ virtual/jpeg:0
+ media-libs/libsdl[opengl,video,X]
+ virtual/opengl
+ virtual/glu
+ openal? ( media-libs/openal )
+ curl? ( net-misc/curl )
+ vorbis? ( media-libs/libvorbis )
+ theora? (
+ media-libs/libtheora
+ media-libs/libogg
+ )
+ )
+"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+"
+
+S="${WORKDIR}/${P}_svn2178-src"
+
+src_unpack() {
+ unpack ${A}
+ unzip XTRAS/"editing files"/${P}-src.zip
+}
+
+src_prepare() {
+ default
+ eapply "${FILESDIR}"/${P}-gentoo.patch
+ sed -i \
+ -e 's:JPEG_LIB_VERSION < 80:JPEG_LIB_VERSION < 62:' \
+ code/renderer/tr_image_jpg.c || die #479652
+}
+
+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) \
+ DEFAULT_BASEDIR=/usr/share/${PN} \
+ OPTIMIZE= \
+ USE_CURL=$(usex curl 1 0) \
+ USE_CURL_DLOPEN=0 \
+ USE_OPENAL=$(usex openal 1 0) \
+ USE_OPENAL_DLOPEN=0 \
+ USE_CODEC_VORBIS=$(usex vorbis 1 0) \
+ USE_CIN_THEORA=$(usex theora 1 0) \
+ USE_RENDERER_DLOPEN=0 \
+ USE_INTERNAL_ZLIB=0 \
+ USE_INTERNAL_JPEG=0 \
+ USE_INTERNAL_SPEEX=0
+}
+
+src_install() {
+ newbin build/release-*/wopded.* ${PN}-ded
+ if ! use dedicated ; then
+ newbin build/release-*/wop.* ${PN}
+ newicon misc/quake3.png ${PN}.png
+ make_desktop_entry ${PN} "World of Padman"
+ fi
+ insinto /usr/share/${PN}
+ doins -r ../wop
+
+ dodoc id-readme.txt \
+ IOQ3-README \
+ voip-readme.txt \
+ ../XTRAS/changelog.txt \
+ ../XTRAS/sounds_readme.txt
+ HTML_DOCS="../XTRAS/readme ../XTRAS/readme.html" einstalldocs
+}