From 49766aced1299d781db0f9b7a200472720768fe5 Mon Sep 17 00:00:00 2001 From: Dmitry Smirnov Date: Sat, 25 May 2013 08:09:27 +1000 Subject: Initial commit --- debian/README.Debian | 104 +++++++++++++++++++++++++++ debian/changelog | 5 ++ debian/compat | 1 + debian/control | 25 +++++++ debian/copyright | 128 +++++++++++++++++++++++++++++++++ debian/d2x-rebirth.6 | 161 ++++++++++++++++++++++++++++++++++++++++++ debian/d2x-rebirth.menu | 7 ++ debian/docs | 3 + debian/examples | 1 + debian/install | 5 ++ debian/lintian-overrides | 2 + debian/manpages | 1 + debian/patches/LDFLAGS.patch | 18 +++++ debian/patches/debian.patch | 44 ++++++++++++ debian/patches/homepath.patch | 34 +++++++++ debian/patches/series | 4 ++ debian/patches/spelling.patch | 30 ++++++++ debian/rules | 63 +++++++++++++++++ debian/source/format | 1 + debian/source/options | 1 + debian/vrms/d2x-rebirth | 1 + debian/watch | 6 ++ 22 files changed, 645 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/d2x-rebirth.6 create mode 100644 debian/d2x-rebirth.menu create mode 100644 debian/docs create mode 100644 debian/examples create mode 100644 debian/install create mode 100644 debian/lintian-overrides create mode 100644 debian/manpages create mode 100644 debian/patches/LDFLAGS.patch create mode 100644 debian/patches/debian.patch create mode 100644 debian/patches/homepath.patch create mode 100644 debian/patches/series create mode 100644 debian/patches/spelling.patch create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/options create mode 100644 debian/vrms/d2x-rebirth create mode 100644 debian/watch (limited to 'debian') diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..77d9b71 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,104 @@ +Original Game Data +================== + +In order to play this game you need original game data. +Unless you have original Descent CD (or shareware episode) you can get +DRM-free version of Descent1 from Good Old Games (GOG.com): + + http://www.gog.com/en/gamecard/descent_1_descent_2/pp/fc074d501302eb2b93e2554793fcaf50b3bf7291 + +and extract game data files using "innoextract (>= 1.3)" utility. + +The following files are needed to be placed to +"~/.d2x-rebirth": + + ALIEN1.PIG + ALIEN2.PIG + DESCENT2.HAM + DESCENT2.HOG + DESCENT2.S11 + DESCENT2.S22 + FIRE.PIG + GROUPA.PIG + ICE.PIG + INTRO-H.MVL + OTHER-H.MVL + ROBOTS-H.MVL + WATER.PIG + +Optional multiplayer missions can be copied (from MISSIONS folder) to +"~/.d2x-rebirth/missions": + + d2-2plyr.hog + d2-2plyr.mn2 + d2chaos.hog + d2chaos.mn2 + +With the PC version, these files - except the Movies (*.mvl) - are +archived in the file 'descent2.sow' on the Descent2 CD-Rom. +'descent2.sow' is an ARJ-archive and can be extracted with `arj` +utility. + + +Configuration file +================== + +Copy configuration file template to game directory and customise it if +necessary: + + mkdir ~/.d2x-rebirth ; \ + cp /usr/share/doc/d2x-rebirth/examples/*.ini ~/.d2x-rebirth/ + + +Addons +====== + +The following addons can be downloaded from + + http://www.dxx-rebirth.com/addons/ + +They are to be saved to + + ~/.d2x-rebirth + + + +Soundtrack in OGG format – SC-55 Version +---------------------------------------- + +This AddOn Pack will add a new version of the game’s original +Soundtrack to DXX-Rebirth. For an authentic gaming experience, all music +was recorded with the Roland Sound Canvas SC-55 MIDI Module as they were +meant to be heard in the 90s. + + mkdir ~/.d2x-rebirth ; cd ~/.d2x-rebirth ; \ + wget --continue --timestamping http://www.dxx-rebirth.com/download/dxx/res/d2xr-sc55-music.zip + +Integrity check: + + sha1sum ~/.d2x-rebirth/d2xr-sc55-music.zip + +Expected SHA1 digest: + + 672d02e6876a859f69b9cb2891700a0f8bd1a318 + + + +Soundtrack in OGG format – OPL3 Version +--------------------------------------- + +This AddOn Pack will add a new version of the game’s original +Soundtrack to DXX-Rebirth. For a nostalgic gaming experience, all music +was recorded with the Yamaha YMF262 OPL3 Soundchip. + + mkdir ~/.d2x-rebirth ; cd ~/.d2x-rebirth ; \ + wget --continue --timestamping http://www.dxx-rebirth.com/download/dxx/res/d2xr-opl3-music.zip + +Integrity check: + + sha1sum ~/.d2x-rebirth/d2xr-opl3-music.zip + +Expected SHA1 digest: + + 65963236203d5601bd05adc06044a194f8a4e96e + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..15a3a42 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +d2x-rebirth (0.57.3+repack-1) unstable; urgency=low + + * Initial release (Closes: #709660). + + -- Dmitry Smirnov Sat, 25 May 2013 08:07:39 +1000 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..562c44f --- /dev/null +++ b/debian/control @@ -0,0 +1,25 @@ +Source: d2x-rebirth +Section: non-free/games +Priority: optional +Maintainer: Dmitry Smirnov +Standards-Version: 3.9.4 +Build-Depends: debhelper (>= 9) + ,imagemagick + ,libphysfs-dev + ,libsdl1.2-dev + ,libsdl-mixer1.2-dev + ,scons +Homepage: http://www.dxx-rebirth.com +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=users/onlyjob/d2x-rebirth.git +Vcs-Git: git://anonscm.debian.org/users/onlyjob/d2x-rebirth.git + +Package: d2x-rebirth +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Recommends: timidity, freepats, d1x-rebirth-data-hires +Description: port of the 1996 classic game Descent 2: Counterstrike + DXX-Rebirth is a Source Port of the Descent & Descent ][ Engines and + provides classical Gameplay combined with OpenGL graphics and effects, + a bunch of improvements and new features. + . + Original game data is needed to play this game. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..43b223f --- /dev/null +++ b/debian/copyright @@ -0,0 +1,128 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: d1x-rebirth +Upstream-Contact: Zico +Source: https://github.com/dxx-rebirth/dxx-rebirth + +Files: * +Copyright: 1993-1999 PARALLAX SOFTWARE CORPORATION +License: DXX-license + +Files: arch/carbon/SDL_main.c + include/tracker/tracker.h +Copyright: 1997-2004 Sam Lantinga +License: LGPL-2+ + +Files: utilities/tex27* +Copyright: 1995 Bryan Aamot +License: GPL-2+ + +Files: debian/* +Copyright: 2012-2013 Dmitry Smirnov +License: GPL-3+ + +Files: debian/patches/* +Copyright: 2012-2013 Dmitry Smirnov +License: Expat + +License: DXX-license + Original Parallax License + ------------------------- + THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX + SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO + END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A + ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS + IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS + SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE + FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE + CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS + AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE. + COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. + . + We make no warranties as to the usability or correctness of this code. + ------------------------- + . + The D1X-Rebirth project is the combination of the original Parallax code and the + modifications and additions made to source code. While the original code is + only under the Original Parallax License the D1X-Rebirth project contains original + code that was not made by Parallax. This ADDED and/or CHANGED code has the + following added restrictions: + . + 1) By using this source you are agreeing to these terms. + . + 2) D1X-Rebirth and derived works may only be modified if ONE of the following is done: + . + a) The modified version is placed under this license. The source + code used to create the modified version is freely and publicly + available under this license. + . + b) The modified version is only used by the developer. + . + 3) D1X-REBIRTH IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + +License: GPL-2+ + This program 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. + . + This package 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. + . + The complete text of the GNU General Public License version 2 + can be found in "/usr/share/common-licenses/GPL-2". + +License: GPL-3+ + This program 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. + . + This program 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. + . + The complete text of the GNU General Public License 3 + can be found in "/usr/share/common-licenses/GPL-3". + +License: Expat + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and/or associated documentation files (the + "Materials"), to deal in the Materials without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Materials, and to + permit persons to whom the Materials are furnished to do so, subject to + the following conditions: + . + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Materials. + . + THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +Comment: + This license is also known as "MIT" however FSF considers "MIT" labelling + ambiguous and copyright-format specification recommend to label such a license + as "Expat". + +License: LGPL-2+ + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + . + This library 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 + Library General Public License for more details. + . + The complete text of the GNU General Public License 3 + can be found in "/usr/share/common-licenses/LGPL-2". diff --git a/debian/d2x-rebirth.6 b/debian/d2x-rebirth.6 new file mode 100644 index 0000000..1cb004f --- /dev/null +++ b/debian/d2x-rebirth.6 @@ -0,0 +1,161 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.10. +.TH D2X-REBIRTH "6" "January 2013" "d2x-rebirth" "Games" +.SH NAME +d1x-rebirth \- source port of "Descent: First Strike" from 1995 +.SH DESCRIPTION +.IP +System Options: +.TP +\fB\-nonicefps\fR +Don't free CPU\-cycles +.TP +\fB\-maxfps\fR +Set maximum framerate to +(default: 200, available: 1\-200) +.TP +\fB\-hogdir\fR +set shared data directory to +.TP +\fB\-nohogdir\fR +don't try to use shared data directory +.TP +\fB\-use_players_dir\fR +put player files and saved games in Players subdirectory +.TP +\fB\-lowmem\fR +Lowers animation detail for better performance with +low memory +.TP +\fB\-pilot\fR +Select pilot automatically +.TP +\fB\-autodemo\fR +Start in demo mode +.TP +\fB\-window\fR +Run the game in a window +.TP +\fB\-noborders\fR +Do not show borders in window mode +.TP +\fB\-nomovies\fR +Don't play movies +.SH +Controls: +.TP +\fB\-nomouse\fR +Deactivate mouse +.TP +\fB\-nojoystick\fR +Deactivate joystick +.TP +\fB\-nostickykeys\fR +Make CapsLock and NumLock non\-sticky +.SH +Sound: +.TP +\fB\-nosound\fR +Disables sound output +.TP +\fB\-nomusic\fR +Disables music output +.TP +\fB\-sound11k\fR +Use 11KHz sounds +.TP +\fB\-nosdlmixer\fR +Disable Sound output via SDL_mixer +.SH +Graphics: +.TP +\fB\-lowresfont\fR +Force to use LowRes fonts +.TP +\fB\-lowresgraphics\fR +Force to use LowRes graphics +.TP +\fB\-lowresmovies\fR +Play low resolution movies if available (for slow machines) +.TP +\fB\-gl_fixedfont\fR +Do not scale fonts to current resolution +.SH +Multiplayer: +.TP +\fB\-udp_hostaddr\fR +Use IP address/Hostname for manual game joining +(default: localhost) +.TP +\fB\-udp_hostport\fR +Use UDP port for manual game joining (default: 42424) +.TP +\fB\-udp_myport\fR +Set my own UDP port to (default: 42424) +.TP +\fB\-tracker_hostaddr\fR +Address of Tracker server to register/query games to/from +(default: dxxtracker.reenigne.net) +.TP +\fB\-tracker_hostport\fR +Port of Tracker server to register/query games to/from +(default: 42420) +.SH +Debug (use only if you know what you're doing): +.TP +\fB\-debug\fR +Enable debugging output. +.TP +\fB\-verbose\fR +Enable verbose output. +.TP +\fB\-safelog\fR +Write gamelog.txt unbuffered. +Use to keep helpful output to trace program crashes. +.TP +\fB\-norun\fR +Bail out after initialization +.TP +\fB\-renderstats\fR +Enable renderstats info by default +.TP +\fB\-text\fR +Specify alternate .tex file +.TP +\fB\-tmap\fR +Select texmapper to use +(default: c, available: c, fp, quad, i386) +.TP +\fB\-showmeminfo\fR +Show memory statistics +.TP +\fB\-nodoublebuffer\fR +Disable Doublebuffering +.TP +\fB\-bigpig\fR +Use uncompressed RLE bitmaps +.TP +\fB\-16bpp\fR +Use 16Bpp instead of 32Bpp +.TP +\fB\-gl_oldtexmerge\fR +Use old texmerge, uses more ram, but might be faster +.TP +\fB\-gl_intensity4_ok\fR +Override DbgGlIntensity4Ok (default: 1) +.TP +\fB\-gl_luminance4_alpha4_ok\fR +Override DbgGlLuminance4Alpha4Ok (default: 1) +.TP +\fB\-gl_rgba2_ok\fR +Override DbgGlRGBA2Ok (default: 1) +.TP +\fB\-gl_readpixels_ok\fR +Override DbgGlReadPixelsOk (default: 1) +.TP +\fB\-gl_gettexlevelparam_ok\fR +Override DbgGlGetTexLevelParamOk (default: 1) +.IP +Help: +.TP +\fB\-help\fR, \fB\-h\fR, \-?, ? +View this help screen diff --git a/debian/d2x-rebirth.menu b/debian/d2x-rebirth.menu new file mode 100644 index 0000000..9b21df4 --- /dev/null +++ b/debian/d2x-rebirth.menu @@ -0,0 +1,7 @@ +?package(d2x-rebirth): \ + needs="X11" \ + section="Games/Action" \ + title="Descent 2" \ + command="d2x-rebirth" \ + icon="/usr/share/pixmaps/d2x-rebirth32.xpm" \ + diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..3899fbd --- /dev/null +++ b/debian/docs @@ -0,0 +1,3 @@ +INSTALL.txt +README.txt +RELEASE-NOTES.txt diff --git a/debian/examples b/debian/examples new file mode 100644 index 0000000..d2127d0 --- /dev/null +++ b/debian/examples @@ -0,0 +1 @@ +*.ini diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..fc58098 --- /dev/null +++ b/debian/install @@ -0,0 +1,5 @@ +debian/vrms/* /usr/share/vrms/reasons +d2x-rebirth /usr/games +*.desktop /usr/share/applications +*.xpm /usr/share/pixmaps +debian/*.xpm /usr/share/pixmaps diff --git a/debian/lintian-overrides b/debian/lintian-overrides new file mode 100644 index 0000000..4cf954a --- /dev/null +++ b/debian/lintian-overrides @@ -0,0 +1,2 @@ +# INSTALL.txt contains information how to get game data required to play this game: +package-contains-upstream-install-documentation diff --git a/debian/manpages b/debian/manpages new file mode 100644 index 0000000..bafc85f --- /dev/null +++ b/debian/manpages @@ -0,0 +1 @@ +debian/*.6 diff --git a/debian/patches/LDFLAGS.patch b/debian/patches/LDFLAGS.patch new file mode 100644 index 0000000..0de9c2a --- /dev/null +++ b/debian/patches/LDFLAGS.patch @@ -0,0 +1,18 @@ +Last-Update: 2012-12-31 +Author: Dmitry Smirnov +Forwarded: not-needed +Description: use LDFLAGS from system environment + +--- a/SConstruct ++++ b/SConstruct +@@ -295,9 +295,9 @@ + env['CXX'] = os.environ['CXX'] + if os.environ.has_key('CXXFLAGS'): + env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS']) + if os.environ.has_key('LDFLAGS'): +- env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS']) ++ env['__RPATH'] += SCons.Util.CLVar(os.environ['LDFLAGS']) + + # windows or *nix? + if sys.platform == 'win32': + print "compiling on Windows" diff --git a/debian/patches/debian.patch b/debian/patches/debian.patch new file mode 100644 index 0000000..5b550ea --- /dev/null +++ b/debian/patches/debian.patch @@ -0,0 +1,44 @@ +Last-Update: 2012-12-31 +Author: Dmitry Smirnov +Forwarded: not-needed +Description: set prefix and path to game data file + +--- a/SConstruct ++++ b/SConstruct +@@ -14,10 +14,10 @@ + D2XMICRO = 3 + VERSION_STRING = ' v' + str(D2XMAJOR) + '.' + str(D2XMINOR) + '.' + str(D2XMICRO) + + # installation path +-PREFIX = str(ARGUMENTS.get('prefix', '/usr/local')) +-BIN_SUBDIR = '/bin' ++PREFIX = str(ARGUMENTS.get('prefix', '/usr')) ++BIN_SUBDIR = '/games' + DATA_SUBDIR = '/share/games/d2x-rebirth' + BIN_DIR = PREFIX + BIN_SUBDIR + DATA_DIR = PREFIX + DATA_SUBDIR + +@@ -451,9 +451,9 @@ + Type 'scons -c' to clean up. + + Extra options (add them to command line, like 'scons extraoption=value'): + +- 'sharepath=[DIR]' (non-Mac OS *NIX only) use [DIR] for shared game data. [default: /usr/local/share/games/d2x-rebirth] ++ 'sharepath=[DIR]' (non-Mac OS *NIX only) use [DIR] for shared game data. [default: /usr/share/games/d2x-rebirth] + 'opengl=[0/1]' build with OpenGL support [default: 1] + 'opengles=[0/1]' build with OpenGL ES support [default: 0] + 'sdlmixer=[0/1]' build with SDL_Mixer support for sound and music (includes external music support) [default: 1] + 'asm=[0/1]' build with ASSEMBLER code (only with opengl=0, requires NASM and x86) [default: 0] +--- a/INSTALL.txt ++++ b/INSTALL.txt +@@ -101,9 +101,9 @@ + ========================= + + *NIX + ---- +- The Sharepath (/usr/local/share/games/d1x-rebirth/ by default - if not reconfigured via SCons) or ++ The Sharepath (/usr/share/games/d2x-rebirth/ by default - if not reconfigured via SCons) or + ~/.d1x-rebirth or + another directory specified by -hogdir via d1x.ini + + MacOS diff --git a/debian/patches/homepath.patch b/debian/patches/homepath.patch new file mode 100644 index 0000000..c7fd65b --- /dev/null +++ b/debian/patches/homepath.patch @@ -0,0 +1,34 @@ +Last-Update: 2013-05-25 +Author: Dmitry Smirnov +Forwarded: no +Description: fix path to game data files and .ini file name + +--- a/INSTALL.txt ++++ b/INSTALL.txt +@@ -101,21 +101,21 @@ + ========================= + + *NIX + ---- +- The Sharepath (/usr/share/games/d2x-rebirth/ by default - if not reconfigured via SCons) or +- ~/.d1x-rebirth or +- another directory specified by -hogdir via d1x.ini ++ The Sharepath (/usr/share/games/d2x-rebirth/ by default - if not reconfigured via SCons) or ++ ~/.d2x-rebirth or ++ another directory specified by -hogdir via d2x.ini + + MacOS + ----- + Same directory as where the binary is located or +- another directory specified by -hogdir via d1x.ini ++ another directory specified by -hogdir via d2x.ini + + Win32 + ----- + Same directory as where the binary is located +- another directory specified by -hogdir via d1x.ini ++ another directory specified by -hogdir via d2x.ini + + + Optional files: + =============== diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..34fbbe4 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,4 @@ +debian.patch +homepath.patch +LDFLAGS.patch +spelling.patch diff --git a/debian/patches/spelling.patch b/debian/patches/spelling.patch new file mode 100644 index 0000000..38afe63 --- /dev/null +++ b/debian/patches/spelling.patch @@ -0,0 +1,30 @@ +Last-Update: 2012-12-31 +Author: Dmitry Smirnov +Forwarded: no +Description: minor spelling corrections + +--- a/main/inferno.c ++++ b/main/inferno.c +@@ -117,9 +117,9 @@ + void print_commandline_help() + { + printf( "\n System Options:\n\n"); + printf( " -nonicefps Don't free CPU-cycles\n"); +- printf( " -maxfps Set maximum framerate to \n\t\t\t\t(default: %i, availble: 1-%i)\n", MAXIMUM_FPS, MAXIMUM_FPS); ++ printf( " -maxfps Set maximum framerate to \n\t\t\t\t(default: %i, available: 1-%i)\n", MAXIMUM_FPS, MAXIMUM_FPS); + printf( " -hogdir set shared data directory to \n"); + printf( " -nohogdir don't try to use shared data directory\n"); + printf( " -use_players_dir put player files and saved games in Players subdirectory\n"); + printf( " -lowmem Lowers animation detail for better performance with\n\t\t\t\tlow memory\n"); +--- a/d2x.ini ++++ b/d2x.ini +@@ -1,8 +1,8 @@ + System Options: + + ;-nonicefps Don't free CPU-cycles +-;-maxfps Set maximum framerate to (default: 1000, availble: 1-1000) ++;-maxfps Set maximum framerate to (default: 1000, available: 1-1000) + ;-hogdir set shared data directory to + ;-nohogdir don't try to use shared data directory + ;-use_players_dir put player files and saved games in Players subdirectory + ;-lowmem Lowers animation detail for better performance with low memory diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b0d98bd --- /dev/null +++ b/debian/rules @@ -0,0 +1,63 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ --parallel + +override_dh_clean: + scons --clean + dh_clean .sconsign.dblite debian/*.xpm + +override_dh_auto_build: + dh_auto_build + ## build menu icon + convert d2x-rebirth.xpm -resize 32x32 debian/d2x-rebirth32.xpm + CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" \ + scons prefix=/usr verbosebuild=1 --debug=presub + +#DATA_DIR = $(SHARE_DIR)/games/$(PKG) +#DEBIAN_TMP = debian/tmp +#TMP_DATA_DIR = $(DEBIAN_TMP)/$(DATA_DIR) + #install -d $(TMP_DATA_DIR)/missions $(TMP_DATA_DIR)/demos $(TMP_DATA_DIR)/screenshots $(TMP_DATA_DIR)/Music + #unzip d1xr-hires.zip -d $(TMP_DATA_DIR) + +#override_dh_clean: +# dh_clean debian/*.xpm CMakeCache.txt cmake_install.cmake Makefile + +override_dh_auto_configure: + dh_auto_configure --builddirectory=$(CURDIR) + +override_dh_auto_install: + #scons install install_path=$(CURDIR)/tmp + dh_auto_install --destdir=$(CURDIR)/tmp + +override_dh_installchangelogs: + dh_installchangelogs CHANGELOG.txt + +override_dh_builddeb: + dh_builddeb -- -Zxz + +DPATH := $(abspath $(dir $(MAKEFILE_LIST))) +PKG := $(word 2,$(shell dpkg-parsechangelog -l$(DPATH)/changelog | grep ^Source)) +VER ?= $(shell dpkg-parsechangelog -l$(DPATH)/changelog | perl -ne 'print $$1 if m{Version:\s*([\d\.]+)}') +.PHONY: get-orig-source +DTYPE := +repack +get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz + @ + +$(PKG)_$(VER)$(DTYPE).orig.tar.xz: + @echo "# Downloading..." + uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(DPATH) + @echo "# Extracting..." + mkdir $(PKG)-$(VER) \ + && tar -xf $(PKG)_$(VER).orig.tar.* --directory $(PKG)-$(VER) --strip-components 1 \ + || $(RM) -r $(PKG)-$(VER) + @echo "# Clean-up..." + cd $(PKG)-$(VER) \ + && $(RM) -r -v \ + include/psmacros.inc + @echo "# Packing..." + XZ_OPT="-6v" tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" "$(PKG)-$(VER)" \ + && $(RM) -r "$(PKG)-$(VER)" 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/options b/debian/source/options new file mode 100644 index 0000000..b7bc1f2 --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +compression = "xz" diff --git a/debian/vrms/d2x-rebirth b/debian/vrms/d2x-rebirth new file mode 100644 index 0000000..6830e00 --- /dev/null +++ b/debian/vrms/d2x-rebirth @@ -0,0 +1 @@ +d2x-rebirth: not-for-sale (no commercial exploitation) restriction diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..ec7eb94 --- /dev/null +++ b/debian/watch @@ -0,0 +1,6 @@ +version=3 + +opts=\ +dversionmangle=s/\+(?:dfsg|repack)//\ + https://github.com/dxx-rebirth/dxx-rebirth/tags \ + .*/archive/(\d[-\d\.]+)-d2x\.tar\.gz -- cgit