From 56fdf1540bf95aa6f908d8d1f4bebe048a9d414c Mon Sep 17 00:00:00 2001 From: "Azamat H. Hackimov" Date: Thu, 15 Nov 2018 23:58:27 +0300 Subject: [games-fps/rtcw] remove live Need to migrate to iortcw. Still broken as uses games eclass. Signed-off-by: Azamat H. Hackimov --- games-fps/rtcw/Manifest | 1 - games-fps/rtcw/files/Makefile.local | 39 -------- games-fps/rtcw/files/rtcw-zlib.patch | 16 --- games-fps/rtcw/files/wolf-ded.rc | 25 ----- games-fps/rtcw/metadata.xml | 8 -- games-fps/rtcw/rtcw-9999.ebuild | 185 ----------------------------------- 6 files changed, 274 deletions(-) delete mode 100644 games-fps/rtcw/Manifest delete mode 100644 games-fps/rtcw/files/Makefile.local delete mode 100644 games-fps/rtcw/files/rtcw-zlib.patch delete mode 100644 games-fps/rtcw/files/wolf-ded.rc delete mode 100644 games-fps/rtcw/metadata.xml delete mode 100644 games-fps/rtcw/rtcw-9999.ebuild (limited to 'games-fps') diff --git a/games-fps/rtcw/Manifest b/games-fps/rtcw/Manifest deleted file mode 100644 index c12bf42..0000000 --- a/games-fps/rtcw/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST wolf-linux-1.41b.x86.run 73940068 SHA256 2921425c1b429147c1bc6f0c6a8664bec502ae86a2d6bccfaa1162f75dce89f3 SHA512 8c018bcdeca5b14fe1b8c35f46031416978b27b57a38897fa5b1b0c26fbf3ab6f44c22582223ad98a695a793ba1444a2e092beee687e835a279a12121422e93f WHIRLPOOL 647a76f07d01be737340bf36e552e25b5595b3defc09cee9deac3b8dda27db9579158ca91010bbf73e1af7586c8ad73003565c4a57e6ae79850377ecf512103e diff --git a/games-fps/rtcw/files/Makefile.local b/games-fps/rtcw/files/Makefile.local deleted file mode 100644 index 451bde9..0000000 --- a/games-fps/rtcw/files/Makefile.local +++ /dev/null @@ -1,39 +0,0 @@ -#CFLAGS # use this for custom CFLAGS -#V # set to show cc command line when building -#DEFAULT_BASEDIR # extra path to search for main and such -#BUILD_SERVER # build the 'iowolfmpded' server binary -#BUILD_CLIENT # build the 'iowolfmp' or 'iowolfsp' client binary -#BUILD_BASEGAME # build the 'main' binaries -#BUILD_GAME_SO # build the game shared libraries -#BUILD_GAME_QVM # build the game qvms -#BUILD_STANDALONE # build binaries suited for stand-alone games -#SERVERBIN # rename 'iowolfmpded' server binary -#CLIENTBIN # rename 'iowolfmp' or 'iowolfsp' client binary -#BASEGAME # rename 'main' -#BASEGAME_CFLAGS # custom CFLAGS for basegame -#USE_OPENAL # use OpenAL where available -#USE_OPENAL_DLOPEN # link with OpenAL at runtime -#USE_CURL # use libcurl for http/ftp download support -#USE_CURL_DLOPEN # link with libcurl at runtime -#USE_CODEC_VORBIS # enable Ogg Vorbis support -#USE_CODEC_OPUS # enable Ogg Opus support -#USE_MUMBLE # enable Mumble support -#USE_VOIP # # enable built-in VoIP support -#USE_INTERNAL_SPEEX # build internal speex library instead of dynamically linking against system libspeex -#USE_FREETYPE # enable FreeType support for rendering fonts -#USE_INTERNAL_ZLIB # build and link against internal zlib -#USE_INTERNAL_JPEG # build and link against internal JPEG library -#USE_INTERNAL_OGG # build and link against internal ogg library -#USE_INTERNAL_OPUS # build and link against internal opus/opusfile libraries -#USE_LOCAL_HEADERS # use headers local to ioq3 instead of system ones -#DEBUG_CFLAGS # C compiler flags to use for building debug version -#COPYDIR # the target installation directory -#TEMPDIR # specify userdefined directory for temp files -CFLAGS=-march=native -mtune=native -O3 -pipe -V=1 -USE_INTERNAL_LIBS=0 -USE_LOCAL_HEADERS=0 -USE_MUMBLE=0 -USE_VOIP=0 -USE_CODEC_OPUS=0 -NO_STRIP=1 diff --git a/games-fps/rtcw/files/rtcw-zlib.patch b/games-fps/rtcw/files/rtcw-zlib.patch deleted file mode 100644 index aae0450..0000000 --- a/games-fps/rtcw/files/rtcw-zlib.patch +++ /dev/null @@ -1,16 +0,0 @@ -Index: code/qcommon/ioapi.h -=================================================================== -diff --git a/trunk/SP/code/qcommon/ioapi.h b/trunk/SP/code/qcommon/ioapi.h ---- a/trunk/SP/code/qcommon/ioapi.h (revision 762) -+++ b/trunk/SP/code/qcommon/ioapi.h (working copy) -@@ -31,6 +31,10 @@ - #endif - #endif - -+#ifndef OF -+#define OF(x) x -+#endif -+ - #ifdef __cplusplus - extern "C" { - #endif diff --git a/games-fps/rtcw/files/wolf-ded.rc b/games-fps/rtcw/files/wolf-ded.rc deleted file mode 100644 index 41c84ae..0000000 --- a/games-fps/rtcw/files/wolf-ded.rc +++ /dev/null @@ -1,25 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/rtcw/files/wolf-ded.rc,v 1.4 2004/07/14 22:16:39 agriffis Exp $ - -depend() { - need net -} - -start() { - ebegin "Starting RTCW dedicated server..." - screen -A -m -d -S rtcw su - dedicated -c GENTOO_DIR/startwolfded - eend $? -} - -stop() { - ebegin "Stopping RTCW dedicated server..." - kill `screen -list | grep rtcw | awk -F . '{ print $1 }' | sed -e s/.//` - eend $? - -} - -status() { - screen -list | grep rtcwded -} diff --git a/games-fps/rtcw/metadata.xml b/games-fps/rtcw/metadata.xml deleted file mode 100644 index 6a07ecd..0000000 --- a/games-fps/rtcw/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - -games - -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. - - diff --git a/games-fps/rtcw/rtcw-9999.ebuild b/games-fps/rtcw/rtcw-9999.ebuild deleted file mode 100644 index 8d0b8fb..0000000 --- a/games-fps/rtcw/rtcw-9999.ebuild +++ /dev/null @@ -1,185 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -SCM="" -[[ "${PV}" = 9999 ]] && SCM="git-r3" -inherit eutils games unpacker ${SCM} -unset SCM - -DESCRIPTION="Return to Castle Wolfenstein - IORTCW Project" -HOMEPAGE="http://games.activision.com/games/wolfenstein/" -if [[ "${PV}" = 9999 ]] ; then - EGIT_REPO_URI="https://github.com/iortcw/iortcw.git" - KEYWORDS="" -else - SRC_URI="https://github.com/iortcw/iortcw/archive/${PV}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/iortcw-${PV}" - KEYWORDS="~amd64 ~x86" -fi - -WOLF_POINTRELEASE="wolf-linux-1.41b.x86.run" -SRC_URI+=" mirror://idsoftware/wolf/linux/${WOLF_POINTRELEASE}" -# iortcw is GPL-2 but the point release files still have the original copyrights -# from ID-software -LICENSE="GPL-2 RTCW" -SLOT="0" -IUSE="+client curl mumble openal opus server truetype voip vorbis" - -REQUIRED_USE="|| ( client server ) - voip? ( opus )" - -DEPEND="client? ( - media-libs/libsdl2 - x11-libs/libX11 - x11-libs/libXau - x11-libs/libXdmcp - x11-libs/libXext - virtual/opengl - )" - -RDEPEND="client? ( media-libs/libsdl2 - virtual/opengl - virtual/jpeg:0 - curl? ( net-misc/curl ) - mumble? ( media-sound/mumble ) - openal? ( media-libs/openal ) - opus? ( media-libs/libogg - media-libs/opus - media-libs/opusfile ) - truetype? ( media-libs/freetype ) - vorbis? ( media-libs/libogg - media-libs/libvorbis ) )" - #voip? ( media-libs/speex )" - -dir=${GAMES_PREFIX_OPT}/${PN} - -use_switch() { - local flag="${1}" cfg_option="${2}" cfg_val=0 - local makefile="${S}/SP/Makefile.local" - [[ -z "${flag}" ]] && die - [[ -z "${cfg_option}" ]] && die - - use ${flag} && cfg_val=1 - - if grep -q "^${cfg_option}=" ${makefile} ; then - sed "/${cfg_option}=/s@[[:digit:]]@${cfg_val}@" -i ${makefile} \ - || die - else - echo "${cfg_option}=${cfg_val}" >> ${makefile} - fi -} - -src_unpack() { - if [[ "${PV}" = 9999 ]] ; then - git-r3_src_unpack - else - default - fi - - unpack_makeself "${DISTDIR}/${WOLF_POINTRELEASE}" -} - -src_prepare(){ - epatch "${FILESDIR}/${PN}-zlib.patch" - cp "${FILESDIR}/Makefile.local" "${S}/SP/" - - # remove bundled libs - local bundled_libs bundle bdir tdir - - bundled_libs=( - AL # openal - SDL2 - freetype-2.5.5 - jpeg-8c - libcurl-7.35.0 - libogg-1.3.2 - libvorbis-1.3.4 - opus-1.1 - opusfile-0.6 - zlib - ) - for bundle in ${bundled_libs[@]} ; do - for tdir in MP SP ; do - bdir="${tdir}/code/${bundle}" - if [[ -d "${bdir}" ]] ; then - rm -r ${bdir} || die - fi - done - done - - local makefile="SP/Makefile.local" - - sed "/^CFLAGS=/s@=.*\$@=${CFLAGS}@" -i ${makefile} || die - - use_switch client BUILD_CLIENT - use_switch curl USE_CURL - use_switch mumble USE_MUMBLE - use_switch openal USE_OPENAL - use_switch opus USE_CODEC_OPUS - use_switch server BUILD_SERVER - use_switch truetype USE_FREETYPE - use_switch vorbis USE_CODEC_VORBIS - use_switch voip USE_VOIP - - use curl && echo "USE_CURL_DLOPEN=0" >> ${makefile} - use openal && echo "USE_OPENAL_DLOPEN=0" >> ${makefile} - - export ARCHITECTURE=$(uname -m) -} - -src_compile() { - cd "${S}/SP/" - ARCH="${ARCHITECTURE}" emake -} - -src_install() { - cd "${S}/SP/" - ARCH="${ARCHITECTURE}" \ - COPYDIR=${D}/${GAMES_PREFIX_OPT}/${PN} \ - emake copyfiles - - #games_make_wrapper rtcwmp ./wolf.x86 "${dir}" "${dir}" - games_make_wrapper rtcwsp ./iowolfsp."${ARCHITECTURE}" "${dir}" "${dir}" - - #if use server; then - # games_make_wrapper wolf-ded ./wolfded.x86 "${dir}" "${dir}" - # newinitd "${FILESDIR}"/wolf-ded.rc wolf-ded - # sed -i \ - # -e "s:GENTOO_DIR:${dir}:" \ - # "${D}"/etc/init.d/wolf-ded \ - # || die - #fi - - # install pk3 files from the point release - insinto ${dir}/main - doins ${WORKDIR}/main/*.pk3 - - doicon -s scalable misc/iortcw.svg - make_desktop_entry rtcwsp "Return to Castle Wolfenstein (SP)" iortcw - prepgamesdirs -} - -pkg_postinst() { - games_pkg_postinst - elog "You need to copy pak0.pk3, mp_pak0.pk3 and sp_pak1.pk3 from a" - elog "Window installation or your install media into ${dir}/main/" - elog - elog "To play the game run:" - elog " rtcwsp (single-player)" - #elog " rtcwmp (multi-player)" - elog -# if use server -# then -# elog "To start a dedicated server run:" -# elog " /etc/init.d/wolf-ded start" -# elog -# elog "To run the dedicated server at boot, type:" -# elog " rc-update add wolf-ded default" -# elog -# elog "The dedicated server is started under the ${GAMES_USER_DED} user account" -# echo -# fi -} -- cgit v1.2.3-65-gdbad