[iortcw] 02/02: Initial Debian packaging
Simon McVittie
smcv at debian.org
Tue Dec 30 01:43:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch master
in repository iortcw.
commit 20cab6b549a3bc038706e033de407b460059e69f
Author: Simon McVittie <smcv at debian.org>
Date: Tue Dec 30 01:40:48 2014 +0000
Initial Debian packaging
---
debian/.gitignore | 11 ++
debian/32/rtcw-mp.png | Bin 0 -> 831 bytes
debian/32/rtcw-sp.png | Bin 0 -> 890 bytes
debian/48/rtcw-mp.png | Bin 0 -> 1182 bytes
debian/48/rtcw-sp.png | Bin 0 -> 1269 bytes
debian/README.rtcw-data | 6 +
debian/changelog | 6 +
debian/clean | 3 +
debian/compat | 1 +
debian/control | 81 ++++++++++
debian/copyright | 351 +++++++++++++++++++++++++++++++++++++++++
debian/gbp.conf | 5 +
debian/need-data.sh | 48 ++++++
debian/patches/series | 0
debian/q3arch | 149 +++++++++++++++++
debian/rtcw-common.install | 3 +
debian/rtcw-common.links | 25 +++
debian/rtcw-mp.desktop | 7 +
debian/rtcw-mp.svg | 105 ++++++++++++
debian/rtcw-server.install | 4 +
debian/rtcw-sp.desktop | 7 +
debian/rtcw-sp.svg | 105 ++++++++++++
debian/rtcw.install | 14 ++
debian/rules | 139 ++++++++++++++++
debian/scripts/rtcw.in | 70 ++++++++
debian/source/format | 1 +
debian/source/include-binaries | 4 +
27 files changed, 1145 insertions(+)
diff --git a/debian/.gitignore b/debian/.gitignore
new file mode 100644
index 0000000..38404ac
--- /dev/null
+++ b/debian/.gitignore
@@ -0,0 +1,11 @@
+*.debhelper.log
+*.substvars
+/build/
+/files
+/rtcw/
+/rtcw-common/
+/rtcw-dbg/
+/rtcw-server/
+/scripts/rtcw-mp
+/scripts/rtcw-server
+/scripts/rtcw-sp
diff --git a/debian/32/rtcw-mp.png b/debian/32/rtcw-mp.png
new file mode 100644
index 0000000..08037b9
Binary files /dev/null and b/debian/32/rtcw-mp.png differ
diff --git a/debian/32/rtcw-sp.png b/debian/32/rtcw-sp.png
new file mode 100644
index 0000000..e31bc43
Binary files /dev/null and b/debian/32/rtcw-sp.png differ
diff --git a/debian/48/rtcw-mp.png b/debian/48/rtcw-mp.png
new file mode 100644
index 0000000..8c8d4d0
Binary files /dev/null and b/debian/48/rtcw-mp.png differ
diff --git a/debian/48/rtcw-sp.png b/debian/48/rtcw-sp.png
new file mode 100644
index 0000000..8d0cdb0
Binary files /dev/null and b/debian/48/rtcw-sp.png differ
diff --git a/debian/README.rtcw-data b/debian/README.rtcw-data
new file mode 100644
index 0000000..8476fe7
--- /dev/null
+++ b/debian/README.rtcw-data
@@ -0,0 +1,6 @@
+Use game-data-packager to build and install the rtcw-data package.
+
+You will need to install Return to Castle Wolfenstein on a Windows
+or Wine system, either from CD-ROM or via Steam, and provide the
+installation directory as input. Everything else required can be
+downloaded by game-data-packager.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..5231c0c
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+iortcw (1.42b+20141228+dfsg1-1) UNRELEASED-experimental; urgency=medium
+
+ * New package for Return to Castle Wolfenstein (Closes: #773742)
+ * Packaging based on ioquake3
+
+ -- Simon McVittie <smcv at debian.org> Mon, 29 Dec 2014 21:28:47 +0000
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..71afc81
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,3 @@
+debian/scripts/rtcw-mp
+debian/scripts/rtcw-mp-server
+debian/scripts/rtcw-sp
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..add3dc8
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,81 @@
+Source: iortcw
+Section: contrib/games
+Priority: optional
+Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
+Uploaders: Simon McVittie <smcv at debian.org>
+Build-Depends: debhelper (>= 9),
+ dpkg-dev (>= 1.16.1),
+ libcurl4-gnutls-dev,
+ libjpeg-dev,
+ libopenal-dev,
+ libopus-dev,
+ libopusfile-dev,
+ libsdl2-dev (>= 2.0.0),
+ libspeexdsp-dev,
+ libvorbis-dev,
+ lsb-release
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-games/iortcw.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-games/iortcw.git
+Homepage: https://code.google.com/p/iortcw/
+
+Package: rtcw
+Architecture: linux-any kfreebsd-any hurd-any
+Depends:
+ ${misc:Depends},
+ ${shlibs:Depends},
+ rtcw-common (= ${binary:Version}),
+Recommends: x11-utils | zenity | kdebase-bin
+Description: game engine for Return to Castle Wolfenstein
+ Return to Castle Wolfenstein is a military- and occult-themed first-person
+ shooter game in a Second World War setting, originally released in 2001.
+ It is a sequel to Wolfenstein 3D, which is also available for Debian
+ (in the wolf4sdl package).
+ .
+ This package contains the iortcw game engines for the single-player campaign
+ and multiplayer, based on ioquake3 and the GPL source releases of RTCW.
+ It requires non-distributable game data files prepared using
+ the game-data-packager tool.
+
+Package: rtcw-server
+Architecture: linux-any kfreebsd-any hurd-any
+Depends:
+ ${misc:Depends},
+ ${shlibs:Depends},
+ rtcw-common (= ${binary:Version}),
+Description: standalone server for Return to Castle Wolfenstein
+ Return to Castle Wolfenstein is a military- and occult-themed first-person
+ shooter game in a Second World War setting, originally released in 2001.
+ It is a sequel to Wolfenstein 3D, which is also available for Debian
+ (in the wolf4sdl package).
+ .
+ This package contains the iortcw dedicated server for multiplayer,
+ based on ioquake3 and the GPL source releases of RTCW. It requires
+ non-distributable game data files prepared using the game-data-packager tool.
+
+Package: rtcw-common
+Architecture: linux-any kfreebsd-any hurd-any
+Depends:
+ ${misc:Depends},
+ ${shlibs:Depends},
+ rtcw-data (>= 1.42b) | game-data-packager (>= 38),
+Description: common files for Return to Castle Wolfenstein
+ Return to Castle Wolfenstein is a military- and occult-themed first-person
+ shooter game in a Second World War setting, originally released in 2001.
+ It is a sequel to Wolfenstein 3D, which is also available for Debian
+ (in the wolf4sdl package).
+ .
+ This package contains files shared by the game and the dedicated server.
+ It requires non-distributable game data files prepared using
+ the game-data-packager tool.
+
+Package: rtcw-dbg
+Architecture: linux-any kfreebsd-any hurd-any
+Section: contrib/debug
+Priority: extra
+Depends:
+ rtcw (= ${binary:Version}) | rtcw-server (= ${binary:Version}),
+ ${misc:Depends},
+Description: debug symbols for the iortcw game engine
+ This package contains debug symbols for the iortcw game engine,
+ which can be used to analyze crashes in Return to Castle Wolfenstein.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..68aa5e7
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,351 @@
+Format: http://dep.debian.net/deps/dep5/
+Upstream-Name: iortcw
+License: GPL-3+-RTCW
+Files-Excluded:
+ */code/AL
+ */code/SDL2
+ */code/jpeg-*
+ */code/libcurl-*
+ */code/libogg-*
+ */code/libs
+ */code/libvorbis-*
+ */code/opus-*
+ */code/opusfile-*
+ */code/qcommon/pbmd5.c
+ */code/tools/lcc
+ */code/zlib
+ */media
+Source: https://code.google.com/p/iortcw/
+ The "original" tarball is based on a svn export, edited to leave out
+ non-free tools, third-party libraries etc. as described by the
+ get-orig-source target in debian/rules; you can use
+ 'make -f debian/rules get-orig-source' to repeat this process.
+ .
+ Some of the omitted libraries are DFSG-free themselves, but since we need
+ to repack the tarball anyway, omitting them too means we don't need to
+ comply with as many licenses.
+
+Files:
+ *
+Copyright:
+ © 1999-2010 id Software LLC, a ZeniMax Media company
+License: GPL-3+-RTCW
+
+Files:
+ */code/asm/ftola.asm
+ */code/asm/ftola.c
+ */code/asm/matha.s
+ */code/asm/qasm-inline.h
+ */code/asm/qasm.h
+ */code/asm/snapvector.asm
+ */code/asm/snapvector.c
+ */code/asm/snd_mixa.s
+ */code/asm/vm_x86_64.asm
+ *code/client/cl_avi.c
+ */code/client/snd_*
+ */code/es/*
+ */code/null/mac_net.c
+ */code/null/null_glimp.c
+ */code/null/null_net.c
+ */code/qcommon/net_ip.c
+ */code/qcommon/q_platform.h
+ */code/qcommon/vm*.?
+ */code/rend*/qgl.h
+ */code/rend*/iqm.h
+ */code/rend*/tr_bloom.c
+ */code/rend*/tr_image_*.c
+ */code/rend*/tr_subs.c
+ */code/rend2/tr_extensions.c
+ */code/rend2/tr_extramath.c
+ */code/rend2/tr_extramath.h
+ */code/rend2/tr_extratypes.h
+ */code/rend2/tr_fbo.?
+ */code/rend2/tr_fbo.?
+ */code/rend2/tr_glsl.c
+ */code/rend2/tr_model_iqm.c
+ */code/rend2/tr_postprocess.?
+ */code/rend2/tr_vbo.c
+ */code/sdl/*
+ */code/sys/*
+ */code/tools/asm/*
+Copyright:
+ © 1994-2007 Free Software Foundation, Inc.
+ © 1997-1998 Andrew Tridgell
+ © 1999-2005 Id Software, Inc.
+ © 2005-2006 Tim Angus
+ © 2005-2006 Joerg Dietrich
+ © 2005 Stuart Dalton
+ © 2006-2009 Robert Beckebans
+ © 2006 Kirk Barnes
+ © 2006 Tony J. White
+ © 2008 Przemyslaw Iskra
+ © 2009-2011 James Canete
+ © 2009-2011 Andrei Drexler
+ © 2009-2011 Richard Allen
+ © 2009 David S. Miller
+ © 2011 Thilo Schulz
+ © 2011 Matthias Bentrup
+License: GPL-2+
+
+Files:
+ debian/*
+Copyright:
+ © 2010 Bruno Kleinert
+ © 2010-2013 Simon McVittie
+License: GPL-2+
+
+Files:
+ */code/client/snd_adpcm.c
+Copyright:
+ © 1992 Stichting Mathematisch Centrum, Amsterdam, The Netherlands
+License: snd_adpcm-permissive
+
+Files:
+ */code/qcommon/unzip.?
+ */code/qcommon/ioapi.?
+ */code/qcommon/puff.?
+ */code/client/libmumblelink.?
+Copyright:
+ © 1990-2000 Info-ZIP
+ © 1995-2005 Mark Adler
+ © 1995-2005 Jean-loup Gailly
+ © 1998-2005 Gilles Vollant
+ © 2006 Joerg Dietrich
+ © 2008 Ludwig Nussel
+License: zlib
+
+Files:
+ */code/qcommon/md5.c
+Copyright: no copyright is claimed
+License: not-applicable
+ The algorithm is due to Ron Rivest. This code was
+ written by Colin Plumb in 1993, no copyright is claimed.
+
+Files:
+ */code/game/bg_lib.c
+Copyright:
+ © 1999-2010 id Software LLC, a ZeniMax Media company
+ © 1992-1993 The Regents of the University of California
+ © 1995 Patrick Powell
+License: GPL-3+-RTCW and BSD-3-clause and papowell-permissive
+
+Files:
+ MP/code/qcommon/pbmd5.c
+Copyright:
+ © 1990, RSA Data Security, Inc.
+License: RSA-MD5
+
+License: GPL-3+-RTCW
+ [There are two very similar license grants which are grouped together
+ as one license for the purposes of this copyright file.]
+ .
+ [You can find the GPL license text on a Debian system under
+ /usr/share/common-licenses/GPL-3.]
+ .
+ ==== Single player ===================================================
+ .
+ This file is part of the Return to Castle Wolfenstein single player
+ GPL Source Code (‘RTCW SP Source Code’).
+ .
+ RTCW SP Source Code is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ RTCW SP Source Code is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with RTCW SP Source Code. If not, see <http://www.gnu.org/licenses/>.
+ .
+ In addition, the RTCW SP Source Code is also subject to certain
+ additional terms. You should have received a copy of these additional
+ terms immediately following the terms and conditions of the GNU General
+ Public License which accompanied the RTCW SP Source Code. If not,
+ please request a copy in writing from id Software at the address below.
+ .
+ If you have questions concerning this license or the applicable
+ additional terms, you may contact in writing id Software LLC, c/o
+ ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
+ .
+ [See below for the "additional terms", which are among those allowed by
+ the GPL version 3.]
+ .
+ ==== Multiplayer =====================================================
+ .
+ [The same license grant and additional terms as single player, but with
+ "single player", "SP" replaced by "multiplayer", "MP" respectively
+ where used to identify the codebase.]
+ .
+ ==== Additional terms ================================================
+ .
+ ADDITIONAL TERMS APPLICABLE TO THE RETURN TO CASTLE WOLFENSTEIN
+ MULTIPLAYER GPL SOURCE CODE.
+ .
+ The following additional terms (“Additional Terms”) supplement and
+ modify the GNU General Public License, Version 3 (“GPL”) applicable
+ to the Return to Castle Wolfenstein multiplayer GPL Source Code (“RTCW
+ MP Source Code”). In addition to the terms and conditions of the GPL,
+ the RTCW MP Source Code is subject to the further restrictions below.
+ .
+ 1. Replacement of Section 15. Section 15 of the GPL shall be deleted
+ in its entirety and replaced with the following:
+ .
+ “15. Disclaimer of Warranty.
+ .
+ THE PROGRAM IS PROVIDED WITHOUT ANY WARRANTIES, WHETHER EXPRESSED OR
+ IMPLIED, INCLUDING, WITHOUT LIMITATION, IMPLIED WARRANTIES OF FITNESS
+ FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, TITLE AND MERCHANTABILITY.
+ THE PROGRAM IS BEING DELIVERED OR MADE AVAILABLE “AS IS”, “WITH
+ ALL FAULTS” AND WITHOUT WARRANTY OR REPRESENTATION. THE ENTIRE RISK
+ AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+ REPAIR OR CORRECTION.”
+ .
+ 2. Replacement of Section 16. Section 16 of the GPL shall be deleted
+ in its entirety and replaced with the following:
+ .
+ “16. LIMITATION OF LIABILITY.
+ .
+ UNDER NO CIRCUMSTANCES SHALL ANY COPYRIGHT HOLDER OR ITS AFFILIATES,
+ OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED
+ ABOVE, BE LIABLE TO YOU, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+ OTHERWISE, FOR ANY DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL,
+ DIRECT, INDIRECT, SPECIAL, INCIDENTAL, CONSEQUENTIAL OR PUNITIVE DAMAGES
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE USE OR INABILITY TO
+ USE THE PROGRAM OR OTHER DEALINGS WITH THE PROGRAM(INCLUDING BUT NOT
+ LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES
+ SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE
+ WITH ANY OTHER PROGRAMS), WHETHER OR NOT ANY COPYRIGHT HOLDER OR SUCH
+ OTHER PARTY RECEIVES NOTICE OF ANY SUCH DAMAGES AND WHETHER OR NOT SUCH
+ DAMAGES COULD HAVE BEEN FORESEEN.”
+ .
+ 3. LEGAL NOTICES; NO TRADEMARK LICENSE; ORIGIN. You must reproduce
+ faithfully all trademark, copyright and other proprietary and legal
+ notices on any copies of the Program or any other required author
+ attributions. This license does not grant you rights to use any
+ copyright holder or any other party’s name, logo, or trademarks.
+ Neither the name of the copyright holder or its affiliates, or any
+ other party who modifies and/or conveys the Program may be used to
+ endorse or promote products derived from this software without specific
+ prior written permission. The origin of the Program must not be
+ misrepresented; you must not claim that you wrote the original Program.
+ Altered source versions must be plainly marked as such, and must not
+ be misrepresented as being the original Program.
+ .
+ 4. INDEMNIFICATION. IF YOU CONVEY A COVERED WORK AND AGREE WITH ANY
+ RECIPIENT OF THAT COVERED WORK THAT YOU WILL ASSUME ANY LIABILITY
+ FOR THAT COVERED WORK, YOU HEREBY AGREE TO INDEMNIFY, DEFEND AND
+ HOLD HARMLESS THE OTHER LICENSORS AND AUTHORS OF THAT COVERED WORK
+ FOR ANY DAMAEGS, DEMANDS, CLAIMS, LOSSES, CAUSES OF ACTION, LAWSUITS,
+ JUDGMENTS EXPENSES (INCLUDING WITHOUT LIMITATION REASONABLE ATTORNEYS'
+ FEES AND EXPENSES) OR ANY OTHER LIABLITY ARISING FROM, RELATED TO OR
+ IN CONNECTION WITH YOUR ASSUMPTIONS OF LIABILITY.
+
+License: GPL-2+
+ This file is part of Quake III Arena source code.
+ .
+ Quake III Arena source code is free software; you can redistribute it
+ and/or modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of the License,
+ or (at your option) any later version.
+ .
+ Quake III Arena source code is distributed in the hope that it will be
+ useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with Quake III Arena source code; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+Comment:
+ Some files have the same license grant but with "XreaL" or "Reaction"
+ instead of "Quake III Arena".
+ .
+ You can find the GPL license text on a Debian system under
+ /usr/share/common-licenses/GPL-2.
+
+License: zlib
+ This software is provided 'as-is', without any express or implied
+ warranty. In no event will the authors be held liable for any damages
+ arising from the use of this software.
+ .
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+ .
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+
+License: snd_adpcm-permissive
+ Permission to use, copy, modify, and distribute this software and its
+ documentation for any purpose and without fee is hereby granted,
+ provided that the above copyright notice appear in all copies and that
+ both that copyright notice and this permission notice appear in
+ supporting documentation, and that the names of Stichting Mathematisch
+ Centrum or CWI not be used in advertising or publicity pertaining to
+ distribution of the software without specific, written prior permission.
+ .
+ STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
+ THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
+ FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
+ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ 3. Neither the name of the University nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+License: papowell-permissive
+ This code is based on code written by Patrick Powell (papowell at astart.com)
+ It may be used for any purpose as long as this notice remains intact
+ on all source code distributions
+
+License: RSA-MD5
+ License to copy and use this software is granted provided that
+ it is identified as the "RSA Data Security, Inc. MD5 Message
+ Digest Algorithm" in all material mentioning or referencing this
+ software or this function.
+ .
+ License is also granted to make and use derivative works
+ provided that such works are identified as "derived from the RSA
+ Data Security, Inc. MD5 Message Digest Algorithm" in all
+ material mentioning or referencing the derived work.
+ .
+ RSA Data Security, Inc. makes no representations concerning
+ either the merchantability of this software or the suitability
+ of this software for any particular purpose. It is provided "as
+ is" without express or implied warranty of any kind.
+ .
+ These notices must be retained in any copies of any part of this
+ documentation and/or software.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..190fc09
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,5 @@
+[DEFAULT]
+debian-branch = debian-experimental
+upstream-branch = upstream
+pristine-tar = True
+patch-numbers = False
diff --git a/debian/need-data.sh b/debian/need-data.sh
new file mode 100755
index 0000000..4577838
--- /dev/null
+++ b/debian/need-data.sh
@@ -0,0 +1,48 @@
+#!/bin/sh
+
+TITLE="$1"
+TEXT="$2"
+
+try_zenity () {
+ if command -v zenity >/dev/null; then
+ zenity --error --text="$TEXT" --title="$TITLE"
+ return 0
+ else
+ return 1
+ fi
+}
+
+try_kdialog () {
+ if command -v kdialog >/dev/null; then
+ kdialog --error --text="$TEXT" --title="$TITLE"
+ return 0
+ else
+ return 1
+ fi
+}
+
+try_xmessage () {
+ if command -v xmessage >/dev/null; then
+ xmessage -center -buttons OK "$TEXT"
+ return 0
+ else
+ return 1
+ fi
+}
+
+case $(echo "$DESKTOP_SESSION" | tr A-Z a-z) in
+ (kde)
+ pref=try_kdialog
+ ;;
+ (gnome)
+ pref=try_zenity
+ ;;
+ (*)
+ pref=false
+ ;;
+esac
+
+$pref || try_zenity || try_kdialog || try_xmessage
+
+printf "%s\n" "$TEXT"
+exit 72 # EX_OSFILE
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e69de29
diff --git a/debian/q3arch b/debian/q3arch
new file mode 100755
index 0000000..2a4e536
--- /dev/null
+++ b/debian/q3arch
@@ -0,0 +1,149 @@
+#!/bin/sh
+# Usage: q3arch arch|platform|compat_arch BUILD|HOST
+#
+# Output an architecture or platform name that Quake 3 could use for the
+# build or host CPU architecture or operating system.
+
+set -e
+
+case $1 in
+
+arch|compat_arch|rtcw_file_arch)
+ # In the upstream Makefile the architecture is given by uname -m, with the
+ # following substitutions:
+ #
+ # i.86 -> x86 (used to be i386)
+ # powerpc -> ppc
+ # powerpc64 -> ppc64
+ # axp -> alpha on Linux and FreeBSD (used to be axp)
+ #
+ # However, for most architectures the build system doesn't actually care,
+ # it's just "some other architecture", so we can get away with using the
+ # GNU CPU as-is. i386, ppc and x86_64 are the unusual ones.
+ #
+ # On the other hand, in q_platform.h it all becomes rather more
+ # significant: the engine expects to see one of:
+ #
+ # x86, x86_64, AXP (Windows)
+ # x86, x86_64, ppc64, ppc, s390, s390x, ia64, alpha, sparc, arm, cris,
+ # hppa, mips, sh (Linux, kFreeBSD)
+ # some subset of the Linux set (Mac OS, *BSD, SunOS, Irix)
+
+ DEB_X_GNU_CPU=`dpkg-architecture -qDEB_$2_GNU_CPU`
+ COMPAT_Q3ARCH=
+ RTCW_FILE_ARCH=
+
+ case ${DEB_X_GNU_CPU} in
+
+ i?86)
+ Q3ARCH=x86
+ COMPAT_Q3ARCH=i386
+ RTCW_FILE_ARCH=i386
+ ;;
+
+ alpha)
+ Q3ARCH=alpha
+ COMPAT_Q3ARCH=axp
+ ;;
+
+ powerpc)
+ Q3ARCH=ppc
+ ;;
+
+ powerpc64)
+ Q3ARCH=ppc64
+ ;;
+
+ mipsel)
+ Q3ARCH=mips
+ ;;
+
+ x86_64|s390|s390x|ia64|sparc|hppa|mips|arm)
+ Q3ARCH=${DEB_X_GNU_CPU}
+ ;;
+
+ sh4)
+ Q3ARCH=sh
+ ;;
+
+ *)
+ echo "CPU ${DEB_X_GNU_CPU} not supported by Quake 3, might not work" >&2
+ Q3ARCH=${DEB_X_GNU_CPU}
+ ;;
+
+ esac
+
+ case $1 in
+ (arch)
+ echo "DEB_$2_GNU_CPU = ${DEB_X_GNU_CPU}, using Q3 architecture ${Q3ARCH}">&2
+ echo ${Q3ARCH}
+ ;;
+ (compat_arch)
+ if test -n "${COMPAT_ARCH}"; then
+ echo "DEB_$2_GNU_CPU = ${DEB_X_GNU_CPU}, older ioquake3 would use ${COMPAT_ARCH}">&2
+ echo ${COMPAT_ARCH}
+ fi
+ ;;
+ (rtcw_file_arch)
+ if test -n "${RTCW_FILE_ARCH}"; then
+ echo "DEB_$2_GNU_CPU = ${DEB_X_GNU_CPU}, RTCW files use ${RTCW_FILE_ARCH}">&2
+ echo ${RTCW_FILE_ARCH}
+ fi
+ ;;
+ esac
+
+ ;;
+
+platform)
+ # In the upstream Makefile the platform is given by uname, with the
+ # following substitutions:
+ #
+ # anything after _ removed
+ # folded to lower case
+ # / -> _
+ #
+ # This would result in Debian builds being done for linux, gnu_kfreebsd and
+ # gnu.
+ #
+ # However, for most platform names the build system doesn't actually care,
+ # it's just "some other platform", so we can get away with using the
+ # GNU system as-is.
+ #
+ # (For instance, on Debian kFreeBSD buildd, uname says GNU/kFreeBSD whereas
+ # the GNU CPU type is kfreebsd-gnu, but that's not important because the
+ # Makefile doesn't actually do anything different.)
+
+ DEB_X_GNU_SYSTEM=`dpkg-architecture -qDEB_$2_GNU_SYSTEM`
+
+ case ${DEB_X_GNU_SYSTEM} in
+
+ linux-gnu*)
+ # including, but not limited to:
+ # arm-linux-gnueabi (Debian armel: ARM EABI, LE)
+ # arm-linux-gnueabihf (Debian armhf: ARM EABI, LE, hardfloat)
+ # powerpc-linux-gnuspe (Debian powerpcspe: Signal Processing Extension)
+ Q3OS=linux
+ ;;
+
+ *)
+ Q3OS=${DEB_X_GNU_SYSTEM}
+ ;;
+
+ esac
+
+ echo "DEB_$2_GNU_SYSTEM = ${DEB_X_GNU_SYSTEM}, using Q3 platform ${Q3OS}">&2
+ echo ${Q3OS}
+
+ ;;
+
+*)
+ echo "Usage: sh q3arch.sh arch|compat_arch|platform BUILD|HOST" >&2
+ exit 1
+ ;;
+
+esac
+
+# Copyright 2009-2013 Simon McVittie <smcv at debian.org>
+# Copying and distribution of this file, with or without modification, are
+# permitted in any medium without royalty provided this notice is preserved.
+# This file is offered as-is, without any warranty.
diff --git a/debian/rtcw-common.install b/debian/rtcw-common.install
new file mode 100644
index 0000000..ac9e348
--- /dev/null
+++ b/debian/rtcw-common.install
@@ -0,0 +1,3 @@
+debian/build/sp/main/*.so usr/lib/rtcw/main
+debian/build/mp/main/*.so usr/lib/rtcw/main
+debian/README.rtcw-data usr/lib/rtcw
diff --git a/debian/rtcw-common.links b/debian/rtcw-common.links
new file mode 100644
index 0000000..d7d0b86
--- /dev/null
+++ b/debian/rtcw-common.links
@@ -0,0 +1,25 @@
+usr/share/games/rtcw-data/main/autoexec.cfg usr/lib/rtcw/main/autoexec.cfg
+usr/share/games/rtcw-data/main/autoexec.cfg usr/lib/rtcw/main/hiquality.cfg
+usr/share/games/rtcw-data/main/mp_bin.pk3 usr/lib/rtcw/main/mp_bin.pk3
+usr/share/games/rtcw-data/main/mp_bin0.pk3 usr/lib/rtcw/main/mp_bin0.pk3
+usr/share/games/rtcw-data/main/mp_pak0.pk3 usr/lib/rtcw/main/mp_pak0.pk3
+usr/share/games/rtcw-data/main/mp_pak1.pk3 usr/lib/rtcw/main/mp_pak1.pk3
+usr/share/games/rtcw-data/main/mp_pak2.pk3 usr/lib/rtcw/main/mp_pak2.pk3
+usr/share/games/rtcw-data/main/mp_pak3.pk3 usr/lib/rtcw/main/mp_pak3.pk3
+usr/share/games/rtcw-data/main/mp_pak4.pk3 usr/lib/rtcw/main/mp_pak4.pk3
+usr/share/games/rtcw-data/main/mp_pak5.pk3 usr/lib/rtcw/main/mp_pak5.pk3
+usr/share/games/rtcw-data/main/mp_pakmaps0.pk3 usr/lib/rtcw/main/mp_pakmaps0.pk3
+usr/share/games/rtcw-data/main/mp_pakmaps1.pk3 usr/lib/rtcw/main/mp_pakmaps1.pk3
+usr/share/games/rtcw-data/main/mp_pakmaps2.pk3 usr/lib/rtcw/main/mp_pakmaps2.pk3
+usr/share/games/rtcw-data/main/mp_pakmaps3.pk3 usr/lib/rtcw/main/mp_pakmaps3.pk3
+usr/share/games/rtcw-data/main/mp_pakmaps4.pk3 usr/lib/rtcw/main/mp_pakmaps4.pk3
+usr/share/games/rtcw-data/main/mp_pakmaps5.pk3 usr/lib/rtcw/main/mp_pakmaps5.pk3
+usr/share/games/rtcw-data/main/mp_pakmaps6.pk3 usr/lib/rtcw/main/mp_pakmaps6.pk3
+usr/share/games/rtcw-data/main/mp_rend2_shaders0.pk3 usr/lib/rtcw/main/mp_rend2_shaders0.pk3
+usr/share/games/rtcw-data/main/pak0.pk3 usr/lib/rtcw/main/pak0.pk3
+usr/share/games/rtcw-data/main/scripts/translation.cfg usr/lib/rtcw/main/scripts/translation.cfg
+usr/share/games/rtcw-data/main/sp_pak1.pk3 usr/lib/rtcw/main/sp_pak1.pk3
+usr/share/games/rtcw-data/main/sp_pak2.pk3 usr/lib/rtcw/main/sp_pak2.pk3
+usr/share/games/rtcw-data/main/sp_pak3.pk3 usr/lib/rtcw/main/sp_pak3.pk3
+usr/share/games/rtcw-data/main/sp_pak4.pk3 usr/lib/rtcw/main/sp_pak4.pk3
+usr/share/games/rtcw-data/main/sp_rend2_shaders0.pk3 usr/lib/rtcw/main/sp_rend2_shaders0.pk3
diff --git a/debian/rtcw-mp.desktop b/debian/rtcw-mp.desktop
new file mode 100644
index 0000000..5d3419f
--- /dev/null
+++ b/debian/rtcw-mp.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Name=Return to Castle Wolfenstein multiplayer
+Exec=/usr/games/rtcw-mp --quiet
+Terminal=false
+Icon=rtcw-mp
+Type=Application
+Categories=Game;ArcadeGame;
diff --git a/debian/rtcw-mp.svg b/debian/rtcw-mp.svg
new file mode 100644
index 0000000..64bbe30
--- /dev/null
+++ b/debian/rtcw-mp.svg
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Sodipodi ("http://www.sodipodi.com/") -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ id="svg559"
+ sodipodi:version="0.33"
+ width="64"
+ height="64"
+ sodipodi:docname="wolf.svg"
+ version="1.1"
+ inkscape:version="0.48.5 r10040">
+ <metadata
+ id="metadata16">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <defs
+ id="defs561">
+ <linearGradient
+ id="linearGradient563">
+ <stop
+ style="stop-color:#000;stop-opacity:1;"
+ offset="0"
+ id="stop564" />
+ <stop
+ style="stop-color:#fff;stop-opacity:1;"
+ offset="1"
+ id="stop565" />
+ </linearGradient>
+ <linearGradient
+ xlink:href="#linearGradient563"
+ id="linearGradient566" />
+ <radialGradient
+ xlink:href="#linearGradient563"
+ id="radialGradient567"
+ cx="0.5"
+ cy="0.5"
+ r="0.5"
+ fx="0.5"
+ fy="0.5" />
+ <linearGradient
+ xlink:href="#linearGradient563"
+ id="linearGradient576" />
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ showgrid="false"
+ inkscape:zoom="5.6654322"
+ inkscape:cx="26.075952"
+ inkscape:cy="34.119357"
+ inkscape:window-width="835"
+ inkscape:window-height="464"
+ inkscape:window-x="47"
+ inkscape:window-y="74"
+ inkscape:window-maximized="0"
+ inkscape:current-layer="svg559"
+ fit-margin-top="0"
+ fit-margin-left="0"
+ fit-margin-right="0"
+ fit-margin-bottom="0" />
+ <path
+ style="font-size:12px;fill:#7f7f7f;fill-opacity:1;fill-rule:evenodd;stroke:none"
+ d="m 33.744505,25.99318 2e-5,-4.84906 c -0.6148,-0.006 -0.94211,0.11355 -1.60124,0.16284 0.0296,-1.52123 -0.41404,-3.59425 3.51566,-3.90291 5.4229,-0.61374 4.0931,-0.68738 4.6448,-0.68588 l 0.0146,3.87672 21.68187,-0.0262 -10.81321,9.621479 -11.20398,10e-4 -0.009,9.66065 -6.17461,5.53979 -2.9e-4,-2.56138 -4.87818,4.45164 -0.0288,-6.30591 -4.82124,4.32918 -0.0539,-15.11397 -11.20398,-10e-4 -10.81324,-9.621479 21.6819,0.0262 0.0146,-3.87672 c 0.5517,-0.002 -0.7781,0.0721 4.64479,0.685 [...]
+ id="path587"
+ sodipodi:nodetypes="cccccccccccccccccccccccc"
+ inkscape:connector-curvature="0" />
+ <g
+ id="g572"
+ style="fill:#7f0000;fill-opacity:1"
+ transform="matrix(0.05936508,0,0,0.05936508,1.999465,16.51539)">
+ <path
+ style="fill:#7f0000;fill-opacity:1;fill-rule:evenodd;stroke:none"
+ d="m 453.8335,161.0548 -319.0943,1.682 -32.2371,-28.9664 158.9408,0 15.3706,-13.9221 -189.93845,0.0471 -34.79499,-30.48542 305.22904,0.07065 -40.177,36.72147 70.2664,0.3739 -0.9346,-98.20465 39.5154,5.41794 c 8.9087,1.27674 31.9661,4.14009 37.1951,5.79308 14.7053,4.58946 21.1521,18.64658 17.6627,21.02581 -1.6928,1.13853 -3.0786,-0.90527 -8.0345,-0.84095 -8.6528,0.11108 -19.193,8.44639 -19.1559,23.82549 l 0.1868,77.46208 z"
+ id="path573"
+ sodipodi:nodetypes="ccccccccccccssssc"
+ inkscape:connector-curvature="0" />
+ <path
+ style="fill:#7f0000;fill-opacity:1;fill-rule:evenodd;stroke:none"
+ d="m 153.8003,180.3031 300.781,0.1866 -0.8409,169.9665 21.1521,-19.7624 -0.3563,-150.1343 61.6317,-0.0349 -0.4568,170.3247 21.2215,-20.3858 -0.3634,-149.892 300.6077,-0.2475 -37.6038,31.9264 -202.1491,0.3425 0.2128,174.6112 -60.3356,53.233 -0.3478,-74.2179 -21.4489,19.2792 0.0419,31.8934 -60.6934,52.9171 0.1682,-104.6223 -81.7831,73.7239 -0.7944,-226.1236 -201.2673,-0.1865 -37.3761,-32.7973 z"
+ id="path575"
+ sodipodi:nodetypes="ccccccccccccccccccccccc"
+ inkscape:connector-curvature="0" />
+ <path
+ style="fill:#7f0000;fill-opacity:1;fill-rule:evenodd;stroke:none"
+ d="m 556.887,161.0548 319.0943,1.682 32.2371,-28.9664 -158.9408,0 -15.3706,-13.9221 189.9384,0.0471 34.795,-30.48542 -305.229,0.07065 40.177,36.72147 -70.2664,0.3739 0.9346,-98.20465 -39.5154,5.41794 c -8.9087,1.27674 -31.9661,4.14009 -37.1951,5.79308 -14.7053,4.58946 -21.1521,18.64658 -17.6627,21.02581 1.6928,1.13853 3.0786,-0.90527 8.0345,-0.84095 8.6528,0.11108 19.193,8.44639 19.1559,23.82549 l -0.1868,77.46208 z"
+ id="path576"
+ sodipodi:nodetypes="ccccccccccccssssc"
+ inkscape:connector-curvature="0" />
+ </g>
+</svg>
diff --git a/debian/rtcw-server.install b/debian/rtcw-server.install
new file mode 100644
index 0000000..46794a8
--- /dev/null
+++ b/debian/rtcw-server.install
@@ -0,0 +1,4 @@
+debian/build/mp/iowolfded usr/lib/rtcw
+debian/build/mp/iowolfded.* usr/lib/rtcw
+debian/scripts/rtcw-server usr/games
+debian/README.rtcw-data usr/share/doc/rtcw-server
diff --git a/debian/rtcw-sp.desktop b/debian/rtcw-sp.desktop
new file mode 100644
index 0000000..a1edf4a
--- /dev/null
+++ b/debian/rtcw-sp.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Name=Return to Castle Wolfenstein single-player
+Exec=/usr/games/rtcw-sp --quiet
+Terminal=false
+Icon=rtcw-sp
+Type=Application
+Categories=Game;ArcadeGame;
diff --git a/debian/rtcw-sp.svg b/debian/rtcw-sp.svg
new file mode 100644
index 0000000..03cf9a1
--- /dev/null
+++ b/debian/rtcw-sp.svg
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Sodipodi ("http://www.sodipodi.com/") -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ id="svg559"
+ sodipodi:version="0.33"
+ width="64"
+ height="64"
+ sodipodi:docname="rtcw-mp.svg"
+ version="1.1"
+ inkscape:version="0.48.5 r10040">
+ <metadata
+ id="metadata16">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <defs
+ id="defs561">
+ <linearGradient
+ id="linearGradient563">
+ <stop
+ style="stop-color:#000;stop-opacity:1;"
+ offset="0"
+ id="stop564" />
+ <stop
+ style="stop-color:#fff;stop-opacity:1;"
+ offset="1"
+ id="stop565" />
+ </linearGradient>
+ <linearGradient
+ xlink:href="#linearGradient563"
+ id="linearGradient566" />
+ <radialGradient
+ xlink:href="#linearGradient563"
+ id="radialGradient567"
+ cx="0.5"
+ cy="0.5"
+ r="0.5"
+ fx="0.5"
+ fy="0.5" />
+ <linearGradient
+ xlink:href="#linearGradient563"
+ id="linearGradient576" />
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ showgrid="false"
+ inkscape:zoom="5.7539546"
+ inkscape:cx="26.075952"
+ inkscape:cy="34.119357"
+ inkscape:window-width="835"
+ inkscape:window-height="464"
+ inkscape:window-x="252"
+ inkscape:window-y="101"
+ inkscape:window-maximized="0"
+ inkscape:current-layer="svg559"
+ fit-margin-top="0"
+ fit-margin-left="0"
+ fit-margin-right="0"
+ fit-margin-bottom="0" />
+ <path
+ style="font-size:12px;fill:#7f7f7f;fill-opacity:1;fill-rule:evenodd;stroke:none"
+ d="m 33.744505,25.99318 2e-5,-4.84906 c -0.6148,-0.006 -0.94211,0.11355 -1.60124,0.16284 0.0296,-1.52123 -0.41404,-3.59425 3.51566,-3.90291 5.4229,-0.61374 4.0931,-0.68738 4.6448,-0.68588 l 0.0146,3.87672 21.68187,-0.0262 -10.81321,9.621479 -11.20398,10e-4 -0.009,9.66065 -6.17461,5.53979 -2.9e-4,-2.56138 -4.87818,4.45164 -0.0288,-6.30591 -4.82124,4.32918 -0.0539,-15.11397 -11.20398,-10e-4 -10.81324,-9.621479 21.6819,0.0262 0.0146,-3.87672 c 0.5517,-0.002 -0.7781,0.0721 4.64479,0.685 [...]
+ id="path587"
+ sodipodi:nodetypes="cccccccccccccccccccccccc"
+ inkscape:connector-curvature="0" />
+ <g
+ id="g572"
+ style="fill:#000000;fill-opacity:1"
+ transform="matrix(0.05936508,0,0,0.05936508,1.999465,16.51539)">
+ <path
+ style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none"
+ d="m 453.8335,161.0548 -319.0943,1.682 -32.2371,-28.9664 158.9408,0 15.3706,-13.9221 -189.93845,0.0471 -34.79499,-30.48542 305.22904,0.07065 -40.177,36.72147 70.2664,0.3739 -0.9346,-98.20465 39.5154,5.41794 c 8.9087,1.27674 31.9661,4.14009 37.1951,5.79308 14.7053,4.58946 21.1521,18.64658 17.6627,21.02581 -1.6928,1.13853 -3.0786,-0.90527 -8.0345,-0.84095 -8.6528,0.11108 -19.193,8.44639 -19.1559,23.82549 l 0.1868,77.46208 z"
+ id="path573"
+ sodipodi:nodetypes="ccccccccccccssssc"
+ inkscape:connector-curvature="0" />
+ <path
+ style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none"
+ d="m 153.8003,180.3031 300.781,0.1866 -0.8409,169.9665 21.1521,-19.7624 -0.3563,-150.1343 61.6317,-0.0349 -0.4568,170.3247 21.2215,-20.3858 -0.3634,-149.892 300.6077,-0.2475 -37.6038,31.9264 -202.1491,0.3425 0.2128,174.6112 -60.3356,53.233 -0.3478,-74.2179 -21.4489,19.2792 0.0419,31.8934 -60.6934,52.9171 0.1682,-104.6223 -81.7831,73.7239 -0.7944,-226.1236 -201.2673,-0.1865 -37.3761,-32.7973 z"
+ id="path575"
+ sodipodi:nodetypes="ccccccccccccccccccccccc"
+ inkscape:connector-curvature="0" />
+ <path
+ style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none"
+ d="m 556.887,161.0548 319.0943,1.682 32.2371,-28.9664 -158.9408,0 -15.3706,-13.9221 189.9384,0.0471 34.795,-30.48542 -305.229,0.07065 40.177,36.72147 -70.2664,0.3739 0.9346,-98.20465 -39.5154,5.41794 c -8.9087,1.27674 -31.9661,4.14009 -37.1951,5.79308 -14.7053,4.58946 -21.1521,18.64658 -17.6627,21.02581 1.6928,1.13853 3.0786,-0.90527 8.0345,-0.84095 8.6528,0.11108 19.193,8.44639 19.1559,23.82549 l -0.1868,77.46208 z"
+ id="path576"
+ sodipodi:nodetypes="ccccccccccccssssc"
+ inkscape:connector-curvature="0" />
+ </g>
+</svg>
diff --git a/debian/rtcw.install b/debian/rtcw.install
new file mode 100644
index 0000000..66ba63c
--- /dev/null
+++ b/debian/rtcw.install
@@ -0,0 +1,14 @@
+debian/build/sp/iowolfsp* usr/lib/rtcw
+debian/build/sp/iowolfsp.* usr/lib/rtcw
+debian/build/sp/renderer*.so usr/lib/rtcw
+debian/build/mp/iowolfmp* usr/lib/rtcw
+debian/build/mp/iowolfmp.* usr/lib/rtcw
+debian/build/mp/renderer*.so usr/lib/rtcw
+debian/need-data.sh usr/lib/rtcw
+debian/rtcw-sp.desktop usr/share/applications
+debian/rtcw-mp.desktop usr/share/applications
+debian/scripts/rtcw-sp usr/games
+debian/scripts/rtcw-mp usr/games
+debian/32/*.png usr/share/icons/hicolor/32x32/apps
+debian/48/*.png usr/share/icons/hicolor/48x48/apps
+debian/*.svg usr/share/icons/hicolor/scalable/apps
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1d27c9b
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,139 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+
+DEB_MAINT_CFLAGS_APPEND := -fsigned-char
+
+include /usr/share/dpkg/default.mk
+
+Q3ARCH := $(shell $(CURDIR)/debian/q3arch arch HOST)
+FILE_ARCH := $(shell $(CURDIR)/debian/q3arch rtcw_file_arch HOST)
+Q3PLATFORM := $(shell $(CURDIR)/debian/q3arch platform HOST)
+Q3COMPILE_ARCH := $(shell $(CURDIR)/debian/q3arch arch BUILD)
+Q3COMPILE_PLATFORM := $(shell $(CURDIR)/debian/q3arch platform BUILD)
+distro := $(shell lsb_release -is)
+
+%:
+ dh $@ --parallel
+
+ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
+TARGET = release
+else
+TARGET = debug
+endif
+
+# FIXME: investigate BUILD_FRENCH for SP
+# FIXME: investigate USE_PBMD5 for MP
+options := \
+ V=1 \
+ USE_CODEC_OPUS=1 \
+ USE_CODEC_VORBIS=1 \
+ USE_CURL=1 \
+ USE_CURL_DLOPEN=0 \
+ USE_INTERNAL_LIBS=0 \
+ USE_LOCAL_HEADERS=0 \
+ USE_OPENAL=1 \
+ USE_OPENAL_DLOPEN=0 \
+ USE_VOIP=1 \
+ BUILD_GAME_QVM=0 \
+ ARCH=$(Q3ARCH) \
+ PLATFORM=$(Q3PLATFORM) \
+ COMPILE_ARCH=$(Q3COMPILE_ARCH) \
+ COMPILE_PLATFORM=$(Q3COMPILE_PLATFORM) \
+ COPYDIR=/usr/lib/rtcw \
+ VERSION=$(DEB_VERSION)/$(distro) \
+ CFLAGS="$(CPPFLAGS) $(CFLAGS)" \
+ $(NULL)
+sp_options := \
+ BR=$(CURDIR)/debian/build/sp \
+ BD=$(CURDIR)/debian/build/sp \
+ $(NULL)
+mp_options := \
+ BR=$(CURDIR)/debian/build/mp \
+ BD=$(CURDIR)/debian/build/mp \
+ $(NULL)
+
+override_dh_auto_build:
+ install -d debian/build/mp debian/build/sp
+ make -C SP -- $(options) $(sp_options) $(TARGET)
+ cd debian/build/sp && ln -s iowolfsp.* iowolfsp
+ make -C MP -- $(options) $(mp_options) $(TARGET)
+ cd debian/build/mp && ln -s iowolfmp.* iowolfmp
+ cd debian/build/mp && ln -s iowolfded.* iowolfded
+ sed \
+ -e 's!@IOQ3BINARY@!iowolfsp!' \
+ -e 's!@IOQ3SELF@!rtcw-sp!' \
+ -e 's!@IOQ3ROLE@!single-player!' \
+ < debian/scripts/rtcw.in > debian/scripts/rtcw-sp
+ sed \
+ -e 's!@IOQ3BINARY@!iowolfmp!' \
+ -e 's!@IOQ3SELF@!rtcw-mp!' \
+ -e 's!@IOQ3ROLE@!multiplayer!' \
+ < debian/scripts/rtcw.in > debian/scripts/rtcw-mp
+ sed \
+ -e 's!@IOQ3BINARY@!iowolfded!' \
+ -e 's!@IOQ3SELF@!rtcw-server!' \
+ -e 's!@IOQ3ROLE@!multiplayer server!' \
+ < debian/scripts/rtcw.in > debian/scripts/rtcw-server
+ chmod +x debian/scripts/rtcw-sp
+ chmod +x debian/scripts/rtcw-mp
+ chmod +x debian/scripts/rtcw-server
+
+override_dh_strip:
+ dh_strip --dbg-package=rtcw-dbg
+
+override_dh_clean:
+ dh_clean -XSP/code/game/g_func_decs.h.orig -XSP/code/game/g_funcs.h.orig
+
+override_dh_auto_clean:
+ make -C SP -- $(options) $(sp_options) clean
+ make -C MP -- $(options) $(mp_options) clean
+ find debian/build || :
+ rm -fr debian/build
+
+# ---------------------------------------------------------------------------
+
+# Not done automatically to avoid a build-dependency on inkscape
+maintainer-update-icons: \
+ debian/32/rtcw-sp.png \
+ debian/48/rtcw-sp.png \
+ debian/32/rtcw-mp.png \
+ debian/48/rtcw-mp.png \
+ $(NULL)
+ inkscape -C -w 32 -h 32 --export-png=debian/32/rtcw-sp.png debian/rtcw-sp.svg
+ inkscape -C -w 48 -h 48 --export-png=debian/48/rtcw-sp.png debian/rtcw-sp.svg
+ inkscape -C -w 32 -h 32 --export-png=debian/32/rtcw-mp.png debian/rtcw-mp.svg
+ inkscape -C -w 48 -h 48 --export-png=debian/48/rtcw-mp.png debian/rtcw-mp.svg
+
+ORIG_REL = 1.42b
+# Empty if upstream ever get round to tagging a release
+ORIG_REV = 749
+# Use the date of the ORIG_REV, or 20130426.1 if you snapshot twice in a day,
+# or empty if ORIG_REV is
+ORIG_DATE = 20141228
+# Non-empty for re-repacks (+dfsg2 or something)
+ORIG_SUFFIX = +dfsg1
+
+ifeq (${ORIG_REV},)
+ ORIG_VER := ${ORIG_REL}${ORIG_SUFFIX}
+ ORIG_EXPORT := http://iortcw.googlecode.com/svn/tags/${ORIG_VER}
+else
+ ORIG_VER := ${ORIG_REL}+${ORIG_DATE}${ORIG_SUFFIX}
+ ORIG_EXPORT := -r ${ORIG_REV} http://iortcw.googlecode.com/svn/trunk
+endif
+
+get-orig-source:
+ svn export ${ORIG_EXPORT} iortcw-${ORIG_VER}.orig
+ rm -rf iortcw-${ORIG_VER}.orig/*/code/AL
+ rm -rf iortcw-${ORIG_VER}.orig/*/code/SDL2
+ rm -rf iortcw-${ORIG_VER}.orig/*/code/jpeg-*
+ rm -rf iortcw-${ORIG_VER}.orig/*/code/libcurl-*
+ rm -rf iortcw-${ORIG_VER}.orig/*/code/libogg-*
+ rm -rf iortcw-${ORIG_VER}.orig/*/code/libs
+ rm -rf iortcw-${ORIG_VER}.orig/*/code/libvorbis-*
+ rm -rf iortcw-${ORIG_VER}.orig/*/code/opus-*
+ rm -rf iortcw-${ORIG_VER}.orig/*/code/opusfile-*
+ rm -rf iortcw-${ORIG_VER}.orig/*/code/tools/lcc
+ rm -rf iortcw-${ORIG_VER}.orig/*/code/zlib
+ rm -rf iortcw-${ORIG_VER}.orig/*/media
+ tar --xz -cvf iortcw-${ORIG_VER}.orig.tar.xz iortcw-${ORIG_VER}.orig
+ rm -rf iortcw-${ORIG_VER}.orig
diff --git a/debian/scripts/rtcw.in b/debian/scripts/rtcw.in
new file mode 100644
index 0000000..6b4b7c4
--- /dev/null
+++ b/debian/scripts/rtcw.in
@@ -0,0 +1,70 @@
+#!/bin/sh
+
+# quake3 or quake3-server or whatever
+IOQ3SELF="@IOQ3SELF@"
+# "server" or "client"
+IOQ3ROLE="@IOQ3ROLE@"
+# ioquake3 or ioq3ded
+IOQ3BINARY="@IOQ3BINARY@"
+
+BASEPATH="/usr/lib/rtcw"
+ENGINE="$BASEPATH/${IOQ3BINARY}"
+
+QUIET=0
+
+EXCUSE="\
+Return to Castle Wolfenstein ${IOQ3ROLE} wrapper for Debian\n\
+\n\
+Usage: ${IOQ3SELF} [OPTION]...\n\
+\n\
+ -h, --help\t\tDisplay this help\n\
+ -q, --quiet\t\tDisable console output\n\
+ +<internal command>\tPass commands to the engine\n"
+
+while [ "$1" != "" ]; do
+ case "$1" in
+ -h|--help)
+ echo ${EXCUSE}
+ exit 0
+ ;;
+ -q|--quiet)
+ CVARS="$CVARS +set ttycon 0"
+ QUIET=1
+ ;;
+ *)
+ break
+ ;;
+ esac
+ shift
+done
+
+# sanity check: the engine doesn't cope well with missing data
+for i in pak0 sp_pak4 sp_rend2_shaders0 mp_pak5; do
+ if test -f $BASEPATH/main/$i.pk3; then
+ :
+ else
+ case "$IOQ3ROLE" in
+ *server*)
+ echo "Return to Castle Wolfenstein data missing, see /usr/share/doc/rtcw-server/README.rtcw-data"
+ ;;
+ *)
+ $BASEPATH/need-data.sh "Return to Castle Wolfenstein" "`cat $BASEPATH/README.rtcw-data`"
+ ;;
+ esac
+ exit 72 # EX_OSFILE
+ fi
+done
+
+if test "z$QUIET" = z1; then
+ exec >/dev/null 2>&1;
+fi
+
+# So that switching SP <-> MP will work
+cd $BASEPATH
+
+if test -n "$RTCW_BACKTRACE"; then
+ exec gdb -return-child-result -batch -ex run -ex 'thread apply all bt full' -ex kill -ex quit --args ${ENGINE} ${CVARS} "$@"
+else
+ exec ${RTCW_DEBUGGER} ${ENGINE} ${CVARS} "$@"
+fi
+# vim:set sw=2 sts=2 ft=sh:
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/include-binaries b/debian/source/include-binaries
new file mode 100644
index 0000000..fa93e18
--- /dev/null
+++ b/debian/source/include-binaries
@@ -0,0 +1,4 @@
+debian/32/rtcw-sp.png
+debian/48/rtcw-sp.png
+debian/32/rtcw-mp.png
+debian/48/rtcw-mp.png
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git
More information about the Pkg-games-commits
mailing list