Gentoo Archives: gentoo-commits

From: "Azamat H. Hackimov" <winterheart@××××××.ru>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-fps/rtcw/files/, games-fps/rtcw/
Date: Thu, 15 Nov 2018 21:35:43
Message-Id: 1542315507.56fdf1540bf95aa6f908d8d1f4bebe048a9d414c.winterheart@gentoo
1 commit: 56fdf1540bf95aa6f908d8d1f4bebe048a9d414c
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Thu Nov 15 20:58:27 2018 +0000
4 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
5 CommitDate: Thu Nov 15 20:58:27 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=56fdf154
7
8 [games-fps/rtcw] remove live
9
10 Need to migrate to iortcw. Still broken as uses games eclass.
11
12 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
13
14 games-fps/rtcw/files/Makefile.local | 39 --------
15 games-fps/rtcw/files/rtcw-zlib.patch | 16 ---
16 games-fps/rtcw/files/wolf-ded.rc | 25 -----
17 games-fps/rtcw/metadata.xml | 8 --
18 games-fps/rtcw/rtcw-9999.ebuild | 185 -----------------------------------
19 5 files changed, 273 deletions(-)
20
21 diff --git a/games-fps/rtcw/files/Makefile.local b/games-fps/rtcw/files/Makefile.local
22 deleted file mode 100644
23 index 451bde9..0000000
24 --- a/games-fps/rtcw/files/Makefile.local
25 +++ /dev/null
26 @@ -1,39 +0,0 @@
27 -#CFLAGS # use this for custom CFLAGS
28 -#V # set to show cc command line when building
29 -#DEFAULT_BASEDIR # extra path to search for main and such
30 -#BUILD_SERVER # build the 'iowolfmpded' server binary
31 -#BUILD_CLIENT # build the 'iowolfmp' or 'iowolfsp' client binary
32 -#BUILD_BASEGAME # build the 'main' binaries
33 -#BUILD_GAME_SO # build the game shared libraries
34 -#BUILD_GAME_QVM # build the game qvms
35 -#BUILD_STANDALONE # build binaries suited for stand-alone games
36 -#SERVERBIN # rename 'iowolfmpded' server binary
37 -#CLIENTBIN # rename 'iowolfmp' or 'iowolfsp' client binary
38 -#BASEGAME # rename 'main'
39 -#BASEGAME_CFLAGS # custom CFLAGS for basegame
40 -#USE_OPENAL # use OpenAL where available
41 -#USE_OPENAL_DLOPEN # link with OpenAL at runtime
42 -#USE_CURL # use libcurl for http/ftp download support
43 -#USE_CURL_DLOPEN # link with libcurl at runtime
44 -#USE_CODEC_VORBIS # enable Ogg Vorbis support
45 -#USE_CODEC_OPUS # enable Ogg Opus support
46 -#USE_MUMBLE # enable Mumble support
47 -#USE_VOIP # # enable built-in VoIP support
48 -#USE_INTERNAL_SPEEX # build internal speex library instead of dynamically linking against system libspeex
49 -#USE_FREETYPE # enable FreeType support for rendering fonts
50 -#USE_INTERNAL_ZLIB # build and link against internal zlib
51 -#USE_INTERNAL_JPEG # build and link against internal JPEG library
52 -#USE_INTERNAL_OGG # build and link against internal ogg library
53 -#USE_INTERNAL_OPUS # build and link against internal opus/opusfile libraries
54 -#USE_LOCAL_HEADERS # use headers local to ioq3 instead of system ones
55 -#DEBUG_CFLAGS # C compiler flags to use for building debug version
56 -#COPYDIR # the target installation directory
57 -#TEMPDIR # specify userdefined directory for temp files
58 -CFLAGS=-march=native -mtune=native -O3 -pipe
59 -V=1
60 -USE_INTERNAL_LIBS=0
61 -USE_LOCAL_HEADERS=0
62 -USE_MUMBLE=0
63 -USE_VOIP=0
64 -USE_CODEC_OPUS=0
65 -NO_STRIP=1
66
67 diff --git a/games-fps/rtcw/files/rtcw-zlib.patch b/games-fps/rtcw/files/rtcw-zlib.patch
68 deleted file mode 100644
69 index aae0450..0000000
70 --- a/games-fps/rtcw/files/rtcw-zlib.patch
71 +++ /dev/null
72 @@ -1,16 +0,0 @@
73 -Index: code/qcommon/ioapi.h
74 -===================================================================
75 -diff --git a/trunk/SP/code/qcommon/ioapi.h b/trunk/SP/code/qcommon/ioapi.h
76 ---- a/trunk/SP/code/qcommon/ioapi.h (revision 762)
77 -+++ b/trunk/SP/code/qcommon/ioapi.h (working copy)
78 -@@ -31,6 +31,10 @@
79 - #endif
80 - #endif
81 -
82 -+#ifndef OF
83 -+#define OF(x) x
84 -+#endif
85 -+
86 - #ifdef __cplusplus
87 - extern "C" {
88 - #endif
89
90 diff --git a/games-fps/rtcw/files/wolf-ded.rc b/games-fps/rtcw/files/wolf-ded.rc
91 deleted file mode 100644
92 index 41c84ae..0000000
93 --- a/games-fps/rtcw/files/wolf-ded.rc
94 +++ /dev/null
95 @@ -1,25 +0,0 @@
96 -#!/sbin/runscript
97 -# Copyright 1999-2004 Gentoo Foundation
98 -# Distributed under the terms of the GNU General Public License v2
99 -# $Header: /var/cvsroot/gentoo-x86/games-fps/rtcw/files/wolf-ded.rc,v 1.4 2004/07/14 22:16:39 agriffis Exp $
100 -
101 -depend() {
102 - need net
103 -}
104 -
105 -start() {
106 - ebegin "Starting RTCW dedicated server..."
107 - screen -A -m -d -S rtcw su - dedicated -c GENTOO_DIR/startwolfded
108 - eend $?
109 -}
110 -
111 -stop() {
112 - ebegin "Stopping RTCW dedicated server..."
113 - kill `screen -list | grep rtcw | awk -F . '{ print $1 }' | sed -e s/.//`
114 - eend $?
115 -
116 -}
117 -
118 -status() {
119 - screen -list | grep rtcwded
120 -}
121
122 diff --git a/games-fps/rtcw/metadata.xml b/games-fps/rtcw/metadata.xml
123 deleted file mode 100644
124 index 6a07ecd..0000000
125 --- a/games-fps/rtcw/metadata.xml
126 +++ /dev/null
127 @@ -1,8 +0,0 @@
128 -<?xml version="1.0" encoding="UTF-8"?>
129 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
130 -<pkgmetadata>
131 -<herd>games</herd>
132 -<longdescription>
133 -Return to Castle Wolfenstein is a first-person 3-D shooter based loosely on the original Wolfenstein series by id software. The game takes place in Europe during World War II. In the single player game, you play as a US military special operative sent behind enemy lines to stop the Nazi studies into the supernatural and the occult. The multi-player game is a team-based, goal-oriented series of missions and allows you to play as either the Axis or the Allies. There are several classes of characters you can play, each with their own special abilities and weapon choices. This game is commercial software and requires data from the retail Windows version to play.
134 -</longdescription>
135 -</pkgmetadata>
136
137 diff --git a/games-fps/rtcw/rtcw-9999.ebuild b/games-fps/rtcw/rtcw-9999.ebuild
138 deleted file mode 100644
139 index 8d0b8fb..0000000
140 --- a/games-fps/rtcw/rtcw-9999.ebuild
141 +++ /dev/null
142 @@ -1,185 +0,0 @@
143 -# Copyright 1999-2015 Gentoo Foundation
144 -# Distributed under the terms of the GNU General Public License v2
145 -# $Id$
146 -
147 -EAPI=5
148 -
149 -SCM=""
150 -[[ "${PV}" = 9999 ]] && SCM="git-r3"
151 -inherit eutils games unpacker ${SCM}
152 -unset SCM
153 -
154 -DESCRIPTION="Return to Castle Wolfenstein - IORTCW Project"
155 -HOMEPAGE="http://games.activision.com/games/wolfenstein/"
156 -if [[ "${PV}" = 9999 ]] ; then
157 - EGIT_REPO_URI="https://github.com/iortcw/iortcw.git"
158 - KEYWORDS=""
159 -else
160 - SRC_URI="https://github.com/iortcw/iortcw/archive/${PV}.tar.gz -> ${P}.tar.gz"
161 - S="${WORKDIR}/iortcw-${PV}"
162 - KEYWORDS="~amd64 ~x86"
163 -fi
164 -
165 -WOLF_POINTRELEASE="wolf-linux-1.41b.x86.run"
166 -SRC_URI+=" mirror://idsoftware/wolf/linux/${WOLF_POINTRELEASE}"
167 -# iortcw is GPL-2 but the point release files still have the original copyrights
168 -# from ID-software
169 -LICENSE="GPL-2 RTCW"
170 -SLOT="0"
171 -IUSE="+client curl mumble openal opus server truetype voip vorbis"
172 -
173 -REQUIRED_USE="|| ( client server )
174 - voip? ( opus )"
175 -
176 -DEPEND="client? (
177 - media-libs/libsdl2
178 - x11-libs/libX11
179 - x11-libs/libXau
180 - x11-libs/libXdmcp
181 - x11-libs/libXext
182 - virtual/opengl
183 - )"
184 -
185 -RDEPEND="client? ( media-libs/libsdl2
186 - virtual/opengl
187 - virtual/jpeg:0
188 - curl? ( net-misc/curl )
189 - mumble? ( media-sound/mumble )
190 - openal? ( media-libs/openal )
191 - opus? ( media-libs/libogg
192 - media-libs/opus
193 - media-libs/opusfile )
194 - truetype? ( media-libs/freetype )
195 - vorbis? ( media-libs/libogg
196 - media-libs/libvorbis ) )"
197 - #voip? ( media-libs/speex )"
198 -
199 -dir=${GAMES_PREFIX_OPT}/${PN}
200 -
201 -use_switch() {
202 - local flag="${1}" cfg_option="${2}" cfg_val=0
203 - local makefile="${S}/SP/Makefile.local"
204 - [[ -z "${flag}" ]] && die
205 - [[ -z "${cfg_option}" ]] && die
206 -
207 - use ${flag} && cfg_val=1
208 -
209 - if grep -q "^${cfg_option}=" ${makefile} ; then
210 - sed "/${cfg_option}=/s@[[:digit:]]@${cfg_val}@" -i ${makefile} \
211 - || die
212 - else
213 - echo "${cfg_option}=${cfg_val}" >> ${makefile}
214 - fi
215 -}
216 -
217 -src_unpack() {
218 - if [[ "${PV}" = 9999 ]] ; then
219 - git-r3_src_unpack
220 - else
221 - default
222 - fi
223 -
224 - unpack_makeself "${DISTDIR}/${WOLF_POINTRELEASE}"
225 -}
226 -
227 -src_prepare(){
228 - epatch "${FILESDIR}/${PN}-zlib.patch"
229 - cp "${FILESDIR}/Makefile.local" "${S}/SP/"
230 -
231 - # remove bundled libs
232 - local bundled_libs bundle bdir tdir
233 -
234 - bundled_libs=(
235 - AL # openal
236 - SDL2
237 - freetype-2.5.5
238 - jpeg-8c
239 - libcurl-7.35.0
240 - libogg-1.3.2
241 - libvorbis-1.3.4
242 - opus-1.1
243 - opusfile-0.6
244 - zlib
245 - )
246 - for bundle in ${bundled_libs[@]} ; do
247 - for tdir in MP SP ; do
248 - bdir="${tdir}/code/${bundle}"
249 - if [[ -d "${bdir}" ]] ; then
250 - rm -r ${bdir} || die
251 - fi
252 - done
253 - done
254 -
255 - local makefile="SP/Makefile.local"
256 -
257 - sed "/^CFLAGS=/s@=.*\$@=${CFLAGS}@" -i ${makefile} || die
258 -
259 - use_switch client BUILD_CLIENT
260 - use_switch curl USE_CURL
261 - use_switch mumble USE_MUMBLE
262 - use_switch openal USE_OPENAL
263 - use_switch opus USE_CODEC_OPUS
264 - use_switch server BUILD_SERVER
265 - use_switch truetype USE_FREETYPE
266 - use_switch vorbis USE_CODEC_VORBIS
267 - use_switch voip USE_VOIP
268 -
269 - use curl && echo "USE_CURL_DLOPEN=0" >> ${makefile}
270 - use openal && echo "USE_OPENAL_DLOPEN=0" >> ${makefile}
271 -
272 - export ARCHITECTURE=$(uname -m)
273 -}
274 -
275 -src_compile() {
276 - cd "${S}/SP/"
277 - ARCH="${ARCHITECTURE}" emake
278 -}
279 -
280 -src_install() {
281 - cd "${S}/SP/"
282 - ARCH="${ARCHITECTURE}" \
283 - COPYDIR=${D}/${GAMES_PREFIX_OPT}/${PN} \
284 - emake copyfiles
285 -
286 - #games_make_wrapper rtcwmp ./wolf.x86 "${dir}" "${dir}"
287 - games_make_wrapper rtcwsp ./iowolfsp."${ARCHITECTURE}" "${dir}" "${dir}"
288 -
289 - #if use server; then
290 - # games_make_wrapper wolf-ded ./wolfded.x86 "${dir}" "${dir}"
291 - # newinitd "${FILESDIR}"/wolf-ded.rc wolf-ded
292 - # sed -i \
293 - # -e "s:GENTOO_DIR:${dir}:" \
294 - # "${D}"/etc/init.d/wolf-ded \
295 - # || die
296 - #fi
297 -
298 - # install pk3 files from the point release
299 - insinto ${dir}/main
300 - doins ${WORKDIR}/main/*.pk3
301 -
302 - doicon -s scalable misc/iortcw.svg
303 - make_desktop_entry rtcwsp "Return to Castle Wolfenstein (SP)" iortcw
304 - prepgamesdirs
305 -}
306 -
307 -pkg_postinst() {
308 - games_pkg_postinst
309 - elog "You need to copy pak0.pk3, mp_pak0.pk3 and sp_pak1.pk3 from a"
310 - elog "Window installation or your install media into ${dir}/main/"
311 - elog
312 - elog "To play the game run:"
313 - elog " rtcwsp (single-player)"
314 - #elog " rtcwmp (multi-player)"
315 - elog
316 -# if use server
317 -# then
318 -# elog "To start a dedicated server run:"
319 -# elog " /etc/init.d/wolf-ded start"
320 -# elog
321 -# elog "To run the dedicated server at boot, type:"
322 -# elog " rc-update add wolf-ded default"
323 -# elog
324 -# elog "The dedicated server is started under the ${GAMES_USER_DED} user account"
325 -# echo
326 -# fi
327 -}