debian/0000755000000000000000000000000012212435604007165 5ustar debian/rules0000755000000000000000000000442712212435604010254 0ustar #!/usr/bin/make -f # -*- makefile -*- %: dh $@ override_dh_auto_configure: dh_auto_configure -- -DLUGARU_INSTALL_PREFIX=/usr/lib/games/openlugaru/ override_dh_auto_build: convert 'Source/win-res/lugaru.ico[6]' debian/openlugaru.png convert 'Source/win-res/lugaru.ico[7]' debian/openlugaru.xpm dh_auto_build override_dh_install: dh_install mkdir -p debian/openlugaru/usr/lib/games/openlugaru mv debian/tmp/usr/lib/games/openlugaru/lugaru \ debian/openlugaru/usr/lib/games/openlugaru/openlugaru mv debian/openlugaru/usr/share/icons/hicolor/128x128/apps/Lugaru.png \ debian/openlugaru/usr/share/icons/hicolor/128x128/apps/openlugaru.png URL="https://lugaru.googlecode.com/hg/" REV_ORIG=$(shell dpkg-parsechangelog | sed -rne 's,^Version: .*[+~]hg([0-9a-z]+).*,\1,p') DATEREV_ORIG=$(shell dpkg-parsechangelog | sed -rne 's,^Version: .*[+~]([0-9]+.[0-9]+).*,\1,p') DIR_ORIG=openlugaru-0~$(DATEREV_ORIG)+hg$(REV_ORIG).orig TARBALL_ORIG=openlugaru_0~$(DATEREV_ORIG)+hg$(REV_ORIG)+dfsg.orig.tar.gz get-orig-source: rm -rf $(DIR_ORIG) hg clone $(URL) $(DIR_ORIG) -r $(REV_ORIG) find $(DIR_ORIG) -name ".hgignore" -print -delete find $(DIR_ORIG) -name ".hgsigs" -print -delete find $(DIR_ORIG) -name ".hgtags" -print -delete rm -rf $(DIR_ORIG)/.hg/ rm -rf $(DIR_ORIG)/Data/ rm -rf $(DIR_ORIG)/Dependencies/ rm -rf $(DIR_ORIG)/Xcode/ rm -f $(DIR_ORIG)/CONTENT-LICENSE.txt GZIP="--best" tar -cz --owner root --group root --mode a+rX \ -f $(TARBALL_ORIG) $(DIR_ORIG) rm -rf $(DIR_ORIG) URL="https://lugaru.googlecode.com/hg/" REV_CUR=$(shell hg identify -i $(URL) | cut --characters=-5) # Can't get date of last hg commit easily, use current date as fallback DATEREV_CUR=$(shell date +%Y%m%d).1 DIR_CUR=openlugaru-0~$(DATEREV_CUR)+hg$(REV_CUR).orig TARBALL_CUR=openlugaru_0~$(DATEREV_CUR)+hg$(REV_CUR)+dfsg.orig.tar.gz get-current-source: rm -rf $(DIR_CUR) hg clone $(URL) $(DIR_CUR) -r $(REV_CUR) find $(DIR_CUR) -name ".hgignore" -print -delete find $(DIR_CUR) -name ".hgsigs" -print -delete find $(DIR_CUR) -name ".hgtags" -print -delete rm -rf $(DIR_CUR)/.hg/ rm -rf $(DIR_CUR)/Data/ rm -rf $(DIR_CUR)/Dependencies/ rm -rf $(DIR_CUR)/Xcode/ rm -f $(DIR_CUR)/CONTENT-LICENSE.txt GZIP="--best" tar -cz --owner root --group root --mode a+rX \ -f $(TARBALL_CUR) $(DIR_CUR) rm -rf $(DIR_CUR) debian/source/0000755000000000000000000000000012212430010010447 5ustar debian/source/format0000644000000000000000000000001412212430010011655 0ustar 3.0 (quilt) debian/gbp.conf0000644000000000000000000000012512212435604010602 0ustar [DEFAULT] upstream-branch = source debian-branch = debian_source pristine-tar = True debian/openlugaru.manpages0000644000000000000000000000002412212435604013057 0ustar debian/openlugaru.6 debian/openlugaru.menu0000644000000000000000000000024412212435604012234 0ustar ?package(openlugaru): \ needs="X11" \ section="Games/Action" \ title="OpenLugaru" \ command="/usr/games/openlugaru" \ icon="/usr/share/pixmaps/openlugaru.xpm" debian/scripts/0000755000000000000000000000000012212435604010654 5ustar debian/scripts/openlugaru0000644000000000000000000000063712212435604012766 0ustar #!/bin/sh for arg in "$@"; do case "$arg" in -h|-help|--help) exec man openlugaru ;; -fullscreen) fullscreen="true" ;; esac done if ( [ -d "$HOME/.lugaru" ] && [ ! -e "$HOME/.openlugaru" ] ); then cp -a "$HOME/.lugaru" "$HOME/.openlugaru" fi cd /usr/lib/games/openlugaru || exit 1 if [ "$fullscreen" = "true" ]; then exec ./openlugaru ${1+"$@"} else exec ./openlugaru -windowed -nomousegrab ${1+"$@"} fi debian/clean0000644000000000000000000000005412212435604010171 0ustar debian/openlugaru.png debian/openlugaru.xpm debian/compat0000644000000000000000000000000212212435604010363 0ustar 9 debian/changelog0000644000000000000000000000425112212435604011041 0ustar openlugaru (0~20110520.1+hge4354+dfsg-4) unstable; urgency=low * Rename package to openlugaru, in order to distinguish from official Lugaru which is still distributed by Wolfire Games - add debian/patches/change-homedir-to-use-openlugaru-name.patch * Update Standards-Version to 3.9.4 - Add "-b debian_source" in Vcs-Git field * Change to "canonical" VCS-links, ("anonscm") -- Martin Erik Werner Fri, 16 Aug 2013 00:54:13 +0200 lugaru (0~20110520.1+hge4354+dfsg-3) unstable; urgency=low * Remove unnecessary linux-libc-dev dependency * dh compat level 9 for hardening build flags * Remove libglew1.7-dev and only use libglew-dev build-dependency (Closes: 675775), FTBFS -- Martin Erik Werner Sun, 03 Jun 2012 12:06:05 +0200 lugaru (0~20110520.1+hge4354+dfsg-2) unstable; urgency=low * Rework launcher script to start windowed and with no mouse grabbing per default. * Update manual page: - Information regarding fullscreen and input grabbing, - document -h|-help|--help commandline * Change Arand -> Martin, same person, now with real name * Fix naming of 128x128 icon so it is used properly * Standards-Version 3.9.3 - Update DEP-5 Format: link * Add unversioned library depend alternatives - libglu1-mesa-dev | libglu-dev - libglew1.5-dev | libglew-dev - libsdl1.2-dev | libsdl-dev - zlib1g-dev | libz-dev * Rename and refresh patches - Add DEP-3 tag to dont-install-data.patch * Build-Depends on libpng-dev, change from libpng12-dev (Closes: 662424) -- Martin Erik Werner Mon, 05 Mar 2012 08:26:50 +0100 lugaru (0~20110520.1+hge4354+dfsg-1) unstable; urgency=low * Initial release (Closes: 626156) * Source for tarball taken from https://code.google.com/p/lugaru/ at commit e435472cb42f * Source has been repacked into lugaru and lugaru-data packages due to some of the data being non-free * debian/patches/0001-fixed-bad-resolution-on-first-run: commit c699faa41aaf from p/lugaru-experimental fixing 0x0 resolution config writeout on start -- Arand Nash Mon, 30 May 2011 19:15:31 +0100 debian/control0000644000000000000000000000360012212435604010567 0ustar Source: openlugaru Section: contrib/games Priority: optional Maintainer: Debian Games Team Uploaders: Martin Erik Werner Build-Depends: cmake, debhelper (>= 9), freeglut3-dev, imagemagick, libglew-dev, libglu1-mesa-dev | libglu-dev, libjpeg8-dev | libjpeg-dev, libogg-dev, libopenal-dev, libpng-dev, libsdl1.2-dev | libsdl-dev, libvorbis-dev, libx11-dev, mesa-common-dev, x11proto-core-dev, zlib1g-dev | libz-dev Standards-Version: 3.9.4 Homepage: http://code.google.com/p/lugaru/ Vcs-Git: git://anonscm.debian.org/pkg-games/openlugaru.git -b debian_source Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-games/openlugaru.git Package: openlugaru Architecture: any Depends: openlugaru-data, ${misc:Depends}, ${shlibs:Depends} Replaces: lugaru (<< 0~20110520.1+hge4354-4~) Breaks: lugaru (<< 0~20110520.1+hge4354-4~) Description: third-person rabbit action game OpenLugaru is a third-person, single-player action game featuring an anthropomorphic rabbit as the main character. It contains two campaigns and a set of challenges, where the player takes on hostile rabbits and wolves using stealth, quick reflexes and a set of deadly weapons. . OpenLugaru is based on the free source code from the original Lugaru by Wolfire Games, and uses a limited subset of the original art (which has been released for free and/or gratis). It also includes the custom 'Temple' campaign by 'Slib' and some of its custom art. Package: lugaru Depends: openlugaru, ${misc:Depends} Architecture: all Section: contrib/oldlibs Description: transitional dummy package This is a transitional dummy package. It can safely be removed. debian/openlugaru.desktop0000644000000000000000000000034512212435604012743 0ustar [Desktop Entry] Version=1.0 Name=OpenLugaru GenericName=Third-person action game Comment=Single-player game featuring rabbits Exec=/usr/games/openlugaru Icon=openlugaru Terminal=false Type=Application Categories=Game;ActionGame; debian/openlugaru.60000644000000000000000000000374012212435604011441 0ustar .TH OPENLUGARU 6 "May 9, 2011" "OpenLugaru" "OpenLugaru manual" .SH NAME openlugaru \- Third-person rabbit action game .SH SYNOPSIS .B openlugaru .RB [ -forceoss ] .RB [ -forcealsa ] .RB [ -nosound ] .RB [ -openalinfo ] .RB [ -showresolutions ] .RB [ -windowed ] .RB [ -nomousegrab ] .RB [ -h | -help | --help ] .SH DESCRIPTION On launch, the .I "$HOME/.lugaru" directory will be copied to .IR "$HOME/.openlugaru" , if the latter does not exist already. .PP .B openlugaru reads its configuration from .IR "$HOME/.openlugaru/Data/config.txt" , Which is generated on first launch of the game. The file .I /usr/share/games/openlugaru/Data/config.txt (if present) serves as a static default in case no configuration file has yet been generated by the user. .PP OpenLugaru can toggle fullscreen via .BR [alt] + [return] and toggle mouse + keyboard grabbing via .BR [ctrl] + [g] OpenLugaru on Debian currently defaults to .B -windowed and .BR -nomousegrab , use the above shortcuts to return to fullscreen and grabbing mode respectively. Note that fullscreen also implies mouse + keyboard grab. .SH OPTIONS .TP .B -forceoss Override detected sound server and use OSS. .TP .B -forcealsa Override detected sound server and use ALSA. .TP .B -nosound Disable sound output. .TP .B -openalinfo Print OpenAL info (and launch the game). .TP .B -showresolutions Print a list of resolutions deemed appropriate for the current display (and launch the game). .TP .B -windowed Launch the game in windowed mode. .TP .B -nomousegrab Do not restrict the mouse to the game window, nor capture all keyboard input. .TP .B -h | -help | --help Show this manpage. .SH AUTHOR OpenLugaru was originally written by Wolfire Games . .PP Since 2010 it is developed by Neal Gompa , Alexander Monakov , Côme BERNIGAUD , sf17k, and others. .PP This manual page was written by Arand Nash , for the Debian project (and may be used by others). debian/watch0000644000000000000000000000024012212430010010174 0ustar # Lugaru is kept in a googlecode mercurial VCS and does not have any up-to-date # point releases, please use the get-current-source for grabbing new snapshots. debian/copyright0000644000000000000000000000634212212435604011125 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Lugaru HD Upstream-Contact: Neal Gompa Alexander Monakov Côme BERNIGAUD Source: https://code.google.com/p/lugaru/ Source has been repacked into openlugaru and openlugaru-data packages due to some of the data being non-free, the items removed from openlugaru are Data/ and CONTENT-LICENSE.txt. Additionally, Dependencies/ and Xcode/ have been removed from both packages. Files: * Copyright: 2003, 2010 - Wolfire Games 2010-2011 Neal Gompa Alexander Monakov Côme BERNIGAUD sf17k License: GPL-2+ Files: debian/* Copyright: 2011-2013 Martin Erik Werner License: GPL-2+ Files: cmake/Modules/FindOggVorbis.cmake Copyright: 2006, Richard Laerkaeng, 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 copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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: 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 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. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/openlugaru.install0000644000000000000000000000036612212435604012743 0ustar Source/win-res/Lugaru.png usr/share/icons/hicolor/128x128/apps debian/openlugaru.desktop /usr/share/applications debian/openlugaru.png usr/share/icons/hicolor/48x48/apps debian/openlugaru.xpm usr/share/pixmaps debian/scripts/openlugaru usr/games debian/README.source0000644000000000000000000000703412212435604011350 0ustar lugaru for Debian -------------------- Contents: 1. Install target 2. Version control in Debian 2.1 VCS setup for Debian changes 2.2 VCS setup for new upstream versions 3. Quilt 1. INSTALL TARGET OpenLugaru's install target is controlled by LUGARU_INSTALL_PREFIX, it defaults to /usr/local/ 2. VERSION CONTROL IN DEBIAN The Debian OpenLugaru git repository is set up as follows: master || master / \ source data / \ debian_source debian_data * master: Converted directly from master branch of using git-hg from * source: Branched from upstream_hg_master, Data items, Dependencies/, and Xcode/ removed * data: Branched from upstream_hg_master, Source items, Dependencies/, and Xcode/ removed * debian_source: Branched from source branch, debian packaging added (debian/) * debian_data: Branched from data branch, debian packaging added (debian/) Note that former merges have used different branch names than current. 2.1 VCS SETUP FOR DEBIAN CHANGES Debian packaging work should happen on the debian_source branch, and NOT on master. Hence, after a standard git clone it is convenient to do: $ git branch debian_source origin/debian_source $ git checkout debian_source 2.2 VCS SETUP FOR NEW UPSTREAM VERSIONS In the case or releasing a new snapshot from upstream things are a bit more complicated, the suggested way to set this up is is: i. Clone the Debian git repository ii. Use git-hg to clone the upstream mercurial repository iii. Manually add the hg integration to the Debian git clone iiv. Setup our local master branch to track the remote mercurial master branch iv. Merge master into source v. Merge source into debian_source This integration does unfortunately not follow along as the git repository is cloned, and hence will have to be setup locally for each person. i. Clone the Debian git repository $ git clone git://git.debian.org/git/pkg-games/openlugaru.git openlugaru-debian ii. Use git-hg to clone the upstream mercurial repository $ git clone https://github.com/offbytwo/git-hg.git git-hg $ cd git-hg/ Get the required fast-export submodule $ git submodule update --init Edit git-hg to call fast-export with --force, it will otherwise fail with "Error: repository has at least one unnamed head" for the openlugaru repository $ sed s/\$HG_FAST_EXPORT\ -r/\$HG_FAST_EXPORT\ --force\ -r/ -i bin/git-hg $ cd .. $ git-hg/bin/git-hg clone https://lugaru.googlecode.com/hg/ lugaru-hg-git iii. Manually add the hg integration to the Debian git clone $ cp -r lugaru-hg-git/.git/hgremote/ openlugaru-debian/.git/ $ cp -r lugaru-hg-git/.git/hgcheckout/ openlugaru-debian/.git/ $ cp lugaru-hg-git/.git/FETCH_HEAD openlugaru-debian/.git/ $ cp -r lugaru-hg-git/.git/refs/remotes/hg openlugaru-debian/.git/refs/remotes iiv. Setup our local master branch to track the remote mercurial master branch $ git remote add hg .git/hgremote $ git checkout master $ git-hg pull iv. Merge master into source $ git branch source origin/source $ git checkout source $ git merge master v. Merge source into debian_source $ git branch debian_source origin/debian_source $ git checkout debian_source $ git merge source debian/patches/0000755000000000000000000000000012212435604010614 5ustar debian/patches/change-homedir-to-use-openlugaru-name.patch0000644000000000000000000000157012212435604021021 0ustar From 9f2bc5b0cf347c98508909e1b6a0f49cd1341341 Mon Sep 17 00:00:00 2001 From: Martin Erik Werner Date: Wed, 31 Jul 2013 19:47:31 +0200 Subject: [PATCH] change homedir to use openlugaru name --- Source/MacCompatibility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/MacCompatibility.cpp b/Source/MacCompatibility.cpp index e82b1b7..6242265 100644 --- a/Source/MacCompatibility.cpp +++ b/Source/MacCompatibility.cpp @@ -216,7 +216,7 @@ static inline const char *getPrefPath(void) #if (defined(__APPLE__) && defined(__MACH__)) const char *PREFPATHNAME = "Library/Application Support/Lugaru"; #else - const char *PREFPATHNAME = ".lugaru"; + const char *PREFPATHNAME = ".openlugaru"; #endif size_t len = strlen(homedir) + strlen(PREFPATHNAME) + 2; prefpath = new char[len]; -- 1.8.3.2 debian/patches/series0000644000000000000000000000014612212435604012032 0ustar dont-install-data.patch fixed-bad-resolution-on-first-run change-homedir-to-use-openlugaru-name.patch debian/patches/dont-install-data.patch0000644000000000000000000000124312212435604015154 0ustar Description: Don't install Data Since Data is shipped in the lugaru-data package instead, we disable installing it in the cmake build. Forwarded: not-needed Author: Martin Erik Werner Last-Update: 2012-02-26 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -548,9 +548,9 @@ endif(APPLE AND LUGARU_HAS_INTERNAL_SDL) endif(WIN32) -if(NOT APPLE) -install(DIRECTORY ${CMAKE_SOURCE_DIR}/Data DESTINATION ${CMAKE_INSTALL_PREFIX}) -endif(NOT APPLE) +#if(NOT APPLE) +#install(DIRECTORY ${CMAKE_SOURCE_DIR}/Data DESTINATION ${CMAKE_INSTALL_PREFIX}) +#endif(NOT APPLE) if(APPLE) install(DIRECTORY ${CMAKE_SOURCE_DIR}/Data DESTINATION ${APPS_ROOT}) debian/patches/fixed-bad-resolution-on-first-run0000644000000000000000000000101012212435604017114 0ustar # HG changeset patch # User sf17k # Date 1306774830 14400 # Node ID c699faa41aafd8e609288addbbed9988f06d0054 # Parent dbb547a1d11841243499e003a5e7d6ba2ebd54f8 fixed bad resolution being saved to config on first run --- a/Source/Settings.cpp +++ b/Source/Settings.cpp @@ -6,8 +6,8 @@ detail=1; ismotionblur=0; usermousesensitivity=1; - kContextWidth=640; - kContextHeight=480; + game.newscreenwidth=kContextWidth=640; + game.newscreenheight=kContextHeight=480; kBitsPerPixel = 32; floatjump=0; autoslomo=1;