--- glest-3.2.2.orig/debian/README.source +++ glest-3.2.2/debian/README.source @@ -0,0 +1,2 @@ +This package uses quilt for patch management, for more information see +the file /usr/share/doc/quilt/README.source in the quilt package. --- glest-3.2.2.orig/debian/rules +++ glest-3.2.2/debian/rules @@ -0,0 +1,85 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +include /usr/share/quilt/quilt.make + +CFLAGS += -Wall +CXXFLAGS += -Wall + +CONFDIR=$(CURDIR)/mk/linux/ + +configure: configure-stamp +configure-stamp: patch + dh_testdir + cd $(CONFDIR) && chmod +x autogen.sh && ./autogen.sh + chmod +x $(CONFDIR)/configure && \ + CFLAGS="$(CFLAGS)" \ + CXXFLAGS="$(CXXFLAGS)" \ + $(CONFDIR)/configure \ + --host=$(DEB_HOST_GNU_TYPE) \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr \ + --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + jam -q + + touch build-stamp + +clean: clean-patched unpatch +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + [ ! -f $(CURDIR)/Jamconfig ] || jam -q distclean + rm -f $(CURDIR)/Jamfile $(CONFDIR)/Jamconfig.in \ + $(CONFDIR)/configure $(CONFDIR)/aclocal.m4 + rm -rf build + [ ! -h $(CONFDIR)/glest_game ] || unlink $(CONFDIR)/glest_game + [ ! -h $(CONFDIR)/glest_map_editor ] || unlink $(CONFDIR)/glest_map_editor + [ ! -h $(CONFDIR)/shared_lib ] || unlink $(CONFDIR)/shared_lib + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + install --mode=755 $(CURDIR)/debian/glest.sh $(CURDIR)/debian/glest/usr/games/glest + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_install + dh_installmenu + dh_installman debian/glest.6 + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- glest-3.2.2.orig/debian/glest.desktop +++ glest-3.2.2/debian/glest.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Type=Application +Name=Glest +Comment=Play a real-time strategy game with 3D graphics +Comment[ca]=Construïu edificis i comandeu les vostres tropes cap a la victòria en aquest joc d'estratègia en temps real +Comment[es]=Construye edificios y comanda tus tropas hacia la victoria en este juego de estrategia en tiempo real +Comment[fr]=Jeu de stratégie temps réel avec des graphismes en 3D +Exec=glest +Icon=glest +Terminal=false +Categories=Game;StrategyGame; +StartupNotify=true --- glest-3.2.2.orig/debian/TODO +++ glest-3.2.2/debian/TODO @@ -0,0 +1,17 @@ +- make the game big endian friendly (post started on glest + forum: http://www.glest.org/board2/viewtopic.php?t=1426) +- change configuration.xml creation method: do not symlink to + the package one, but copy it and change it +- glest.ini should not contain references to a specific font, + but should autodetect fonts present on the system and create + the ugly '-*-fixed-bold-r-normal--*-*-*-*-*-*-*-*' things + (BTW, why don't they just kill this retareded way of + specifying fonts?) +- see what patches were added by other distros: + http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/suse/src/ + http://download.opensuse.org/distribution/10.2/repo/src-oss/suse/src/ + http://cvs.fedoraproject.org/viewcvs/rpms/glest + http://cvs.fedoraproject.org/viewcvs/rpms/glest-data + http://rpms.mandrivaclub.com/rpms/mandriva/devel//cooker/x86_64/media/contrib/release/glest-2.0.0-2mdv2007.1.x86_64.html +- update debian/glest.6 to add information about the new options + added for multiplayer games --- glest-3.2.2.orig/debian/compat +++ glest-3.2.2/debian/compat @@ -0,0 +1 @@ +5 --- glest-3.2.2.orig/debian/control +++ glest-3.2.2/debian/control @@ -0,0 +1,24 @@ +Source: glest +Section: contrib/games +Priority: optional +Maintainer: Debian Games Team +Uploaders: Giuseppe Borzi , Eddy Petrișor , Siegfried-Angel Gevatter Pujals , Ansgar Burchardt , Alexander Reichle-Schmehl +Build-Depends: debhelper (>= 5.0.0), jam, libsdl1.2-dev, libxerces-c2-dev, + libvorbis-dev, libogg-dev, libopenal-dev, liblua5.1-dev, quilt, autoconf, + automake +Standards-Version: 3.8.0 +Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/glest/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-games/packages/trunk/glest/?op=log +Homepage: http://www.glest.org/ + +Package: glest +Architecture: i386 amd64 ia64 mipsel arm alpha kfreebsd-i386 kfreebsd-amd64 armel lpia +Depends: ${shlibs:Depends}, ${misc:Depends}, glest-data (>= 3.2.1) +Description: a free 3D real-time customizable strategy game + Glest takes place in a context which could be compared to that of the + pre-renaissance Europe, with the licence that magic forces exist in the + environment and can be controlled. + . + The current version is fully playable and supports both single player + games against CPU controlled players and multiplayer matches over the + Internet or a LAN. --- glest-3.2.2.orig/debian/watch +++ glest-3.2.2/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://sf.net/glest/glest[?:\-_]source[?:\-_]([\d.]+)\.(?:zip|tar\.gz|tar\.bz2) --- glest-3.2.2.orig/debian/README.Debian +++ glest-3.2.2/debian/README.Debian @@ -0,0 +1,8 @@ +Glest for Debian +----------------------- + +It is recommented to perform Config -> Auto Config before starting to play and +complaining "the game doesn't show anything!". If your glx version is lower +than 1.3 set CheckGlCaps=0 in the ~/.glest/glest.ini file. + + -- Giuseppe Borzi , Mon, 12 Dec 2005 20:27:08 +0100 --- glest-3.2.2.orig/debian/copyright +++ glest-3.2.2/debian/copyright @@ -0,0 +1,30 @@ +This package was debianized by Giuseppe Borzi on +Sat, 18 Feb 2006 13:33:04 +0100. + +It was downloaded from http://sourceforge.net/projects/glest + +Authors: + + Martiño Figueroa + Matthias Braun + +Copyright: + + Copyright (C) 2001-2008 Martiño Figueroa + - Everything except the files inside the directories listed below, + which belong to Matthias Braun. + + Copyright (C) 2005 Matthias Braun + - source/shared_lib/*/platform/posix/ + - source/shared_lib/*/platform/sdl/ + - source/shared_lib/*/sound/openal/ + +License: + + 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. + +On Debian systems, the complete text of the GNU General Public +License can be found in /usr/share/common-licenses/GPL. --- glest-3.2.2.orig/debian/glest.xpm +++ glest-3.2.2/debian/glest.xpm @@ -0,0 +1,258 @@ +/* XPM */ +static char *glest[] = { +/* columns rows colors chars-per-pixel */ +"32 32 220 2", +" c #110C0A", +". c #170F09", +"X c #120E11", +"o c #1D140A", +"O c #12121E", +"+ c #13182D", +"@ c #151A2F", +"# c #20190C", +"$ c #241B0C", +"% c #271E0C", +"& c #2A200E", +"* c #2C220E", +"= c #2E2410", +"- c #2F2512", +"; c #3C2C0F", +": c #312712", +"> c #332913", +", c #352B14", +"< c #372C14", +"1 c #3A2C11", +"2 c #392D15", +"3 c #412E0C", +"4 c #45310B", +"5 c #48310A", +"6 c #48320D", +"7 c #433317", +"8 c #463212", +"9 c #40341A", +"0 c #41341A", +"q c #41351B", +"w c #42361C", +"e c #43371E", +"r c #47391B", +"t c #44381E", +"y c #44381F", +"u c #46391C", +"i c #4F3C14", +"p c #49391A", +"a c #4B3A18", +"s c #4F3E1A", +"d c #4D3E1E", +"f c #503D15", +"g c #4B3E22", +"h c #493E26", +"j c #493F27", +"k c #4A3E24", +"l c #4C3E21", +"z c #5E4B1E", +"x c #47412C", +"c c #484029", +"v c #434232", +"b c #5E4C22", +"n c #5D4C25", +"m c #5E4D28", +"M c #5D4E2C", +"N c #5E5233", +"B c #634A13", +"V c #614A17", +"C c #664E15", +"Z c #6B5517", +"A c #6E5817", +"S c #6F581A", +"D c #6F5821", +"F c #6E5927", +"G c #6E5A2B", +"H c #6F5B2C", +"J c #715D2E", +"K c #735F2F", +"L c #75602F", +"P c #776231", +"I c #786435", +"U c #79663A", +"Y c #7A673C", +"T c #7E693B", +"R c #434741", +"E c #424A4F", +"W c #434E58", +"Q c #45515F", +"! c #4D5558", +"~ c #54554D", +"^ c #5D7CA0", +"/ c #587AA9", +"( c #577FB3", +") c #647D98", +"_ c #6B8098", +"` c #70849F", +"' c #758AA5", +"] c #7D8FA8", +"[ c #5A8ACE", +"{ c #598DD4", +"} c #5A8EDC", +"| c #5D8EE7", +" . c #6095EC", +".. c #639AEF", +"X. c #669FF2", +"o. c #70ACF9", +"O. c #75B2FB", +"+. c #79B7FD", +"@. c #7DBCFD", +"#. c #8F731E", +"$. c #93770E", +"%. c #957A09", +"&. c #987E06", +"*. c #917516", +"=. c #90741A", +"-. c #846E39", +";. c #8D7224", +":. c #877137", +">. c #8F7F52", +",. c #9B8205", +"<. c #A08304", +"1. c #A48504", +"2. c #AB8807", +"3. c #B68609", +"4. c #B38809", +"5. c #BB8308", +"6. c #B1A13D", +"7. c #B7A03B", +"8. c #98844B", +"9. c #9E8D47", +"0. c #9B8949", +"q. c #908054", +"w. c #928663", +"e. c #958866", +"r. c #988B6B", +"t. c #9B8D6E", +"y. c #9F9070", +"u. c #A19146", +"i. c #A89743", +"p. c #AD9D40", +"a. c #A19372", +"s. c #A29473", +"d. c #A39674", +"f. c #A49776", +"g. c #A69A78", +"h. c #A89B7A", +"j. c #A89D7C", +"k. c #AAA07E", +"l. c #ABA17F", +"z. c #C08007", +"x. c #C38006", +"c. c #C98305", +"v. c #CF8A04", +"b. c #D69003", +"n. c #D89904", +"m. c #DDA204", +"M. c #CCA72E", +"N. c #C0A037", +"B. c #C5A333", +"V. c #E1A903", +"C. c #E3B102", +"Z. c #E5BA02", +"A. c #D7C01F", +"S. c #DDCE16", +"D. c #E5C101", +"F. c #EDCC01", +"G. c #E2D40F", +"H. c #E8DA0B", +"J. c #EEDE09", +"K. c #F3D701", +"L. c #F7E604", +"P. c #F8E101", +"I. c #F9E904", +"U. c #FCEA02", +"Y. c #E7E556", +"T. c #E4E15E", +"R. c #EBE951", +"E. c #F0EE4C", +"W. c #F6F649", +"Q. c #E6E264", +"!. c #E6E369", +"~. c #E7E56D", +"^. c #E7E572", +"/. c #E4E478", +"(. c #8193AA", +"). c #8598B0", +"_. c #889AB1", +"`. c #919EB2", +"'. c #96A0AF", +"]. c #9BA2A8", +"[. c #ACA382", +"{. c #ACA484", +"}. c #AAA58C", +"|. c #A6A495", +" X c #A1A39F", +".X c #80BFFB", +"XX c #89C3FA", +"oX c #8DC4F9", +"OX c #93C6F7", +"+X c #96C7F6", +"@X c #A7C3DD", +"#X c #AFC2D0", +"$X c #A9C2D9", +"%X c #B3C6CC", +"&X c #B7CBCD", +"*X c #BBD0D1", +"=X c #A6C5E2", +"-X c #A2C9ED", +";X c #A0CCF3", +":X c #BED9E2", +">X c #DFE184", +",X c #E0E389", +".-.C P Z K D G $.Y -.:.C a $.U >.L I N #.2 ", +"e.i <.n.A.7 % - 1 a d 8 , 2 l h q e : 7 7 k l g $ k g 0 p V N > ", +"{.G 5 5.b.R., > t e 0 l t u 2 l l r 8 7 7 l 1 7 g u r o a M.Y h ", +"s.T M : 5.F.m.K 0 1 >.U g m l l g m l F 3 M d 3 l $ u S U.2.i < ", +"y.N Y > 2 B B.2X,X^.>.e h g g 2 3 p 3 l 2 h 7 % b %.P.U.3.0 a = ", +"r.A U h < 3 1X>XqXw.$ g % z 2.V.V.b.b.&.%.B f &.U.F.c.K.. h $.: ", +"g.n V 7 a 2 p.1XQ @X~ B L.U.n.;.-.T i.9.M.c.b.V.) @ U.4 . 3 M 2 ", +"s.T B 1 h l 0.>.Q ^ Y.U.%.) $X7X0XrXyX9X7X5X&X&XX.Z.,.X : P P : ", +"h.I :.; : a f.< - S.V.Q 5XuXrX3X~.Q..t ", +"h.L >.u 1 z G & S.Z./ 9XuX@.3.K.Z.Z.C.b.U [ uX! V.1 * q t D >.0 ", +"t.B G x x c 2 A P.Q yXuXOXZ U.% . B 8.6X5.3.X 0 h 1 f K : ", +"r.B n 2 c d 2 F.#.OXuXuXQ U.v % o u > , 4 B.XXm.i # u l t m K 0 ", +"g.P L < e d V Z.) uXuX+XV.,.@ ] N & * , 4 B.[ F.o < g l g -.-.e ", +"a.K :.h 1 u B b.%XuXuX$XF.5 W Q _.:.2.D.C.v.! P. < t l 2 T B 0 ", +"e.D I t 7 c B c.:XuXuX%Xn.o * 6.U.K.x.I N.>.J Z.Z % h q g -.-.q ", +"s.z T h 2 h i x.=XuXuX_.b.A I.D.U ` ;X:XtXyX4X/ V.,.# e c T I ; ", +"s.P z 3 g ; a x.' uXuX;Xn.I.w.O.8XwX/.W.).:XuXuX} Z.B : u n -.q ", +"w.Z U q 7 ; % x.! rX0XuX) { 6XW.U.U.F.,.4.Q uXuX9X0.z.$ u V Z 2 ", +"l.F -.r h ; q 3 4.( %X].;XA.P.,.4 # @ 5 2.XXyX9Xj.n.& 2 G -.q ", +"l.T :.u c 1 , f U.W (.`.'.-XC.4. X O J.2.+.].5Xf.V.$ 2 D q.c ", +"y.f -.1 q 6 G.U.U.P.[ `.].].oX7.P.K.G.U.S.'.(.|...Z.&.X q L B 1 ", +"s.M N $ Z W.W.7.q $ P.) | ]. X).) {.2.B [ '.=X@.3.U. $ e Y M q ", +"r.A ;.E.W.i. . - # . D.i.{ o._.@X| .O.;X6X>XD.S.E & * c M *.2 ", +"l.6.W.;.> o , q u h - . n.U.T. & , , $ o . . > * q & ) [ %XK H e ", +"s.B :.8 , g e q x e c M 1 e h , 2 q 1 * u h ; e 7 , > ! ' #X5 * ", +"a.3 K C I -.4 b :.P I -.z N S q.L V M D Z :.F Z M b I n ! ).e.& ", +"w.$.G :.B >.S P -.I :.P P T P D q.N $.U I :.I b =.n D F K N ) v ", +"K - 2 x , g * > g e h 2 - > h > c e > e 2 2 u & & g 2 2 q $ - $ " +}; --- glest-3.2.2.orig/debian/dirs +++ glest-3.2.2/debian/dirs @@ -0,0 +1 @@ +usr/games --- glest-3.2.2.orig/debian/glest.sh +++ glest-3.2.2/debian/glest.sh @@ -0,0 +1,49 @@ +#!/bin/sh + +MAINDIR=/usr/share/games/glest +BASEDIR="$XDG_CONFIG_HOME" +if [ -z "$BASEDIR" ]; then + BASEDIR="$HOME/.config" +fi +DIR="$BASEDIR/glest" +if [ ! -d "$DIR" ]; then + if [ -d "$HOME/.glest" ]; then + # Move the configuration directory to ~/.config + mkdir -p $BASEDIR + mv "$HOME/.glest" "$DIR" + else + mkdir $DIR + fi +fi +cd $DIR + +if [ -f glest.ini ]; then + # Update for Glest 3.2.1 + sed -i 's/\.lng//' glest.ini + language=$(cat glest.ini | grep Lang | cut -d'=' -f2) + [ -f /usr/share/games/glest/data/lang/${language}.lng ] || \ + sed -i "s/${language}/english/" glest.ini + # If the configuration file is too old, replace it + grep AutoTest glest.ini >/dev/null 2>&1 + if [ $? -ne 0 ]; then + mv glest.ini glest.ini.bck + cp /usr/lib/glest/glest.ini . + [ -h docs ] || unlink docs + fi +else + cp /usr/lib/glest/glest.ini . +fi +[ -h glest ] || ln -s /usr/lib/glest/glest . +[ -f servers.ini ] || cp $MAINDIR/servers.ini . +for i in data scenarios techs tilesets tutorials; do + [ -h $i ] || ln -s $MAINDIR/$i . +done +[ -d maps ] || mkdir maps +[ -d screens ] || mkdir screens +cd maps +for i in $MAINDIR/maps/*; do + [ -h `basename $i` ] || ln -s $i . +done +cd .. + +exec ./glest --- glest-3.2.2.orig/debian/glest.install +++ glest-3.2.2/debian/glest.install @@ -0,0 +1,4 @@ +glest usr/lib/glest +/mk/linux/glest.ini usr/lib/glest +debian/glest.xpm usr/share/pixmaps +debian/glest.desktop usr/share/applications --- glest-3.2.2.orig/debian/menu +++ glest-3.2.2/debian/menu @@ -0,0 +1,6 @@ +?package(glest): \ + needs="X11" \ + section="Games/Strategy" \ + title="Glest" \ + command="/usr/games/glest" \ + icon="/usr/share/pixmaps/glest.xpm" --- glest-3.2.2.orig/debian/changelog +++ glest-3.2.2/debian/changelog @@ -0,0 +1,204 @@ +glest (3.2.2-2ubuntu1) natty; urgency=low + + * added a patch ftbfs (LP: #724245) + + -- Tarun Kumar Mall Thu, 24 Feb 2011 11:06:48 +0000 + +glest (3.2.2-2) unstable; urgency=low + + [ Paul Wise ] + * debian/rules: + - Drop use of dh_desktop since it no longer does anything and + desktop-file-utils 0.15-2 has a trigger (see #525133). + + [ Siegfried-Angel Gevatter Pujals ] + * debian/control: + - Add lpia to the Architecture list. + - Add "${misc:Depends}" to Depends. + * debian/patches/series, debian/patches/missing-cstdio-include: + - Fix a FTBFS which happens with new GCC versions; thanks to + Steven Susbauer (LP: #376591). + + [ Eddy Petrișor ] + * enable tutorials by symlinking to the real tutorial directory + (Closes: #528181) + + [ Alexander Reichle-Schmehl ] + * Add debian/README.source + + -- Alexander Reichle-Schmehl Fri, 12 Feb 2010 15:10:38 +0100 + +glest (3.2.2-1) unstable; urgency=low + + * New Upstream release + - Repackage the tarball from .zip to .tar.gz. + * Updated my name in control file + * adopt depends on glest-data + - Removed the lintian override + + -- Alexander Reichle-Schmehl Sun, 05 Apr 2009 20:21:04 +0200 + +glest (3.2.1-1) unstable; urgency=low + + [ Siegfried-Angel Gevatter Pujals ] + * New upstream version. + - Repackage the tarball from .zip to .tar.gz. + - The default resultion is now 640x480 (Closes: #450770). + * debian/control: + - Change my entry in the Uploaders field. + - Add a Build-Depends on liblua5.1-dev, autoconf and automake. + - Bump Standards-Version to 3.8.0. + * debian/glest.install: + - Adjust the origin path. + * debian/glest.desktop: + - Fix a typo in the Catalan description. + * debian/patches/nomapeditor, debian/patches/do-not-link-unneeded-libs: + - Update them to apply against the new source. + * debian/patches/series, debian/patches/gcc-4.3-fixes: + - Remove gcc-4.3-fixes, it has been adopted upstream. + * debian/rules: + - Update it to work with the changed directory structure. + * debian/dirs: + - Remove some unnecessary lines (we still need bin/games because the only + file there is installed by debian/rules without using dh_install). + * debian/copyright: + - Update the copyright information and change the formatting of the file. + - Change the download location to SourceForge. + - Update the copyright to match the directory structure changes. + * debian/docs: + - Upstream's README files have no interesting content; remove it. + * debian/patches/fix-glest-ini: + - Change "english.lng" to just "english". + * debian/glest.sh: + - If there is an existing glest.ini file, change "" to + just "". Also, if the selected language isn't available + anymore change it back to "english", in order to avoid the game refusing + to start. + - Replace the configuration file (glest.ini) with a new one if it is too + old (setting are not preserved). + - Create directory ~/.glest/screens for the screenshots (Closes: #505919). + - Do not create a "docs" symlink amymore (LP: #226584). + - Move configuration files from ~/.glest to ~/.config/glest. + * debian/glest.6: + - Update the manpage for Glest 3 (Closes: #505917). + * debian/menu: + - Change formatting to make the file more readable. + * debian/glest.desktop: + - Add a Spanish translation of the Comment. + + [ Gonéri Le Bouder ] + * French translation for the .desktop file. + + -- Siegfried-Angel Gevatter Pujals Fri, 13 Mar 2009 16:26:52 +0100 + +glest (3.1.2-1) unstable; urgency=low + + [ Siegfried-Angel Gevatter Pujals (RainCT)] + * Fix debian/watch to work despite the constantly changing filenames. + * Update the description: + - Mention multiplayer support. + - Do not longer speak about two factions, as there will be more + somewhen soon. + + [ Gonéri Le Bouder ] + * Add armel in arch list (Closes: #476943) + + [ Ansgar Burchardt ] + * New upstream release (Closes: #468810) + * Updates to wrapper script: + - Install servers.ini (Closes: #467247) + - Do not create symlink to configuration.xml which does not exist. + * New patches: + - gcc-4.3-fixes: Add missing includes for gcc-4.3 + - do-not-link-unneeded-libs: Do not link against libogg, libvorbis + * Add missing .TH in manpage + * Update libxerces build-depend to libxerces-c2-dev + * Don't set CFLAGS, CXXFLAGS (now set by dpkg-buildpackage) + * debian/copyright: Update, point to GPL-2 + + -- Ansgar Burchardt Sun, 04 May 2008 17:01:38 +0200 + +glest (3.1.0-1) unstable; urgency=low + + [ Barry deFreese ] + * Add watch file + + [ Jon Dowland ] + * Add Homepage: control field to source stanza + + [ Siegfried-Angel Gevatter Pujals (RainCT) ] + * Drop patches/10_fix_gcc-4.1_particle.h.dpatch + * debian/control: + - Replace XS-Vcs-* with Vcs-* + - Add myself to Uploaders + * debian/glest.desktop: + - Update to the latest FD.o standards + - Add Catalan translation + + [ Ansgar Burchardt ] + * Drop patches/01_addcleanrule.dpatch for new upstream release + * Use quilt for patch management instead of dpatch + * Remove Homepage field from description + * Add myself to Uploaders + * Bump Debian Standards version to 3.7.3 + + [ Alexander Schmehl ] + * New Upstream release (Closes: #463489) + + patches/use-fixed-fonts refreshed patch for 3.1.0 release + * Made the depends on glest-date a non-hardcoded one + + added linitan override for source:version used on package + build not from the same source package; since glest and + glest-data are in sync and both maintained by us it's safe + + -- Alexander Schmehl Fri, 15 Feb 2008 16:50:29 +0100 + +glest (2.0.0-2) unstable; urgency=low + + [ Eddy Petrișor ] + * added a disabled dpatch for the endianness issue; it was downloaded from + http://kozz.org/files/games/glest/glest-cvs20070102-endian.patch.gz; + explanations about the patch are at: + http://www.powerdeveloper.org/forums/viewtopic.php?p=6675 + * changed section to contrib/games since the glest-data package is non-free + + [ Cyril Brulebois ] + * Added XS-Vcs-Svn and XS-Vcs-Browser fields in the control file. + + [ Eddy Petrișor ] + * added reference links (in debian/TODO) to other distro's packages + which seem to have more patches applied + + -- Eddy Petrișor Thu, 23 Aug 2007 12:15:02 +0300 + +glest (2.0.0-1) unstable; urgency=low + + [ Eddy Petrișor ] + * Initial official Debian release (Closes: #350391) + * changed dependency on libxerces27-dev instead of libxerces26-dev + * added myself to uploaders + * Debian Games Team is maintainer + * Added a Homepage field + * added a clean rule to the upstream Jamfile (not as a patch since it + brings in unnecessary complications and the rule should be always there) + * modified the way the editor building is disabled + * do not ignore errors during build and clean; stop on failure + * do not run autotools during build and do not depend on automake1.9 + * nasty tricks with symlinks so that there are no unrepresentable changes in + the source + * change arch to specify only little endian arches (!hurd) since glest is + not big endian friendly :-( + * added an unfinished and disabled patch for big endian support in the hope + it will be finalized by somebody else + * don't use utopia fonts since are not available in Debian + * make sure that the configure script is always executable + + [ Gonéri Le Bouder ] + * call dh_desktop to run update-desktop-database + + -- Eddy Petrișor Mon, 18 Jun 2007 20:34:02 +0100 + +glest (2.0.0-0ubuntu1) edgy; urgency=low + + * Initial release + + -- Giuseppe Borzi Mon, 7 Aug 2006 20:02:47 +0200 --- glest-3.2.2.orig/debian/glest.6 +++ glest-3.2.2/debian/glest.6 @@ -0,0 +1,141 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH GLEST 6 "May 4, 2008" +.SH NAME +glest \- A free 3d real-time customizable strategy game. +.SH SYNOPSIS +.B glest +.SH DESCRIPTION +This manual page documents briefly the +.B glest +game commands and configuration. +.PP + +.SH CONTROLS +.TP +.B Camera +.br +f => toggle camera mode (game mode and free mode) +.br +w => move camera up (only on free camera more) +.br +s => move camera down (only on free camera more) +.br +a => rotate camera left (only on free camera more) +.br +d => rotate camera right (only on free camera more) +.br +up arrow or mouse on top => move camera forward +.br +down arrow or mouse on bottom => move camera backwards +.br +left arrow or mouse on left => move camera left +.br +right arrow or mouse on right => move camera right +.TP +.B Orders and Unit selection +.br +left mouse button => select or deselect units +.br +shift + left mouse button => add unit to selection +.br +control + left mouse button => remove unit from selection +.br +left mouse double click => select nearby units of this type +.br +right mouse button => auto order +.br +menu click => activate order +.br +left mouse when order is activated => give order +.br +right mouse when order is activated => cancel state +.br +number => recall group +.br +control + number => assign group +.br +a => activate attack command for selection +.br +m => activate move command for selection +.br +s => issue stop command to selection +.br +i => select next idle harvester +.br +b => select next building +.br +d => select next damaged unit +.br +t => select next storage unit +.br +r => select next producer unit +.TP +.B Other Keys +.br +c => switch display color +.br +- + => adjust game speed +.br +p => pause game +.br +e => save screen to TGA file +.br +alt + enter => toggle fullscreen/windowed + +.SH CONFIGURATION +.TP +.B Glest can be configured in three ways: +.br +- in-game config menu: basic parameters +.br +- configuration tool: advanced parameters +.br +- glest.ini: all parameters + +.SH VIDEO CARD HINTS +.TP +.B Auto config. +.br +The first time you run the game it will try to detect the graphic settings most +suitable for your video card. It's highly recommended that you don't change them +unless you really know what you are doing. If you change the settings and you +want to reset to the recommended ones, you can do it by using the auto config +button in the in-game config menu. +.TP +.B Required card features. +.br +The game requires either OpenGL 1.4 or OpenGL 1.3 plus the GL_ARB_env_crossbar +extesion. Most video cards with recent drivers support this features. You can +bypass the feature check by replacing the "CheckGlCaps=1" line in glest.ini by +"CheckGlCaps=0", but the game may crash or have graphics errors. +.TP +.B ATI card problems. +.br +It seems to be bug in some ATI OpenGL drivers that makes the game crash with +certain card/driver configurations when using more than 1 light. Auto config will +detect this issue and turn off all secondary lights when it detects an ATI card. +If you still want to try running the game using more than 1 light you can change +this setting in the in-game config menu. +.TP +.B Shadows. +.br +The game features real-time shadows using different algorithms. 1) Projected: Fast +shadows but they provide unit over terrain shadows only, and can produce incorrect +shadows in some circumstances. 2) Shadow mapping: Slow shadows but they are +always correct and provide everything over everything shadows. In ATI cards they +look aliased. Both types of shadows require a video card with 3 texture unit +support. Auto config will set the most suitable shadow mode for your video card. +.TP +.B 3D textures +.br +The game uses 3D textures for some effects like animated water. Some old video cards +(ie: GeForceMX) don't support this feature by hardware and the game runs really +slow when the camera is near a river. Auto config will detect this and disable +3D textures when needed. + + +.SH AUTHOR +Glest was written by Martino Figueroa et al (see readme.txt). +.PP +This manual page was written by Giuseppe Borzi , +for the Debian project (but may be used by others). --- glest-3.2.2.orig/debian/patches/nomapeditor +++ glest-3.2.2/debian/patches/nomapeditor @@ -0,0 +1,37 @@ +Index: glest-3.0.0/mk/linux/Jamfile +=================================================================== +--- glest-3.0.0.orig/mk/linux/Jamfile 2008-02-02 15:58:10.000000000 +0100 ++++ glest-3.0.0/mk/linux/Jamfile 2008-02-02 15:58:21.000000000 +0100 +@@ -57,18 +57,18 @@ + ExternalLibs glest : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL ; + IncludeDir glest : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_DIRS) ; + +-#### Editor #### +-if $(WX_AVAILABLE) = "yes" { +- SubDir TOP glest_map_editor ; +- +- GLEST_MAP_DIRS = . ; +- for i in $(GLEST_DIRS) { +- GLEST_MAP_SOURCES += [ Wildcard $(i) : *.cpp *.h ] ; +- } +- +- Application glest_editor : $(GLEST_MAP_SOURCES) ; +- LinkWith glest_editor : glestlib ; +- ExternalLibs glest_editor : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL WX ; +- IncludeDir glest_editor : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_MAP_DIRS) ; +-} ++##### Editor #### ++#if $(WX_AVAILABLE) = "yes" { ++# SubDir TOP glest_map_editor ; ++# ++# GLEST_MAP_DIRS = . ; ++# for i in $(GLEST_DIRS) { ++# GLEST_MAP_SOURCES += [ Wildcard $(i) : *.cpp *.h ] ; ++# } ++# ++# Application glest_editor : $(GLEST_MAP_SOURCES) ; ++# LinkWith glest_editor : glestlib ; ++# ExternalLibs glest_editor : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL WX ; ++# IncludeDir glest_editor : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_MAP_DIRS) ; ++#} + --- glest-3.2.2.orig/debian/patches/series +++ glest-3.2.2/debian/patches/series @@ -0,0 +1,5 @@ +nomapeditor +do-not-link-unneeded-libs +fix-glest-ini +missing-cstdio-include +ftbfs --- glest-3.2.2.orig/debian/patches/fix-glest-ini +++ glest-3.2.2/debian/patches/fix-glest-ini @@ -0,0 +1,13 @@ +Index: glest-3.2.1/mk/linux/glest.ini +=================================================================== +--- glest-3.2.1.orig/mk/linux/glest.ini 2009-02-17 23:40:58.000000000 +0100 ++++ glest-3.2.1/mk/linux/glest.ini 2009-02-17 23:42:34.000000000 +0100 +@@ -23,7 +23,7 @@ + FontConsole=-*-*-*-*-*-*-12-*-*-*-*-*-*-* + FontDisplay=-*-*-*-*-*-*-12-*-*-*-*-*-*-* + FontMenu=-*-*-*-*-*-*-12-*-*-*-*-*-*-* +-Lang=english.lng ++Lang=english + MaxLights=1 + NetworkConsistencyChecks=1 + PhotoMode=0 --- glest-3.2.2.orig/debian/patches/do-not-link-unneeded-libs +++ glest-3.2.2/debian/patches/do-not-link-unneeded-libs @@ -0,0 +1,22 @@ +Index: glest-3.2.1/mk/linux/Jamfile +=================================================================== +--- glest-3.2.1.orig/mk/linux/Jamfile 2009-02-17 21:33:09.000000000 +0100 ++++ glest-3.2.1/mk/linux/Jamfile 2009-02-17 21:33:12.000000000 +0100 +@@ -26,7 +26,7 @@ + } + + Library glestlib : $(LIB_SOURCES) ; +-ExternalLibs glestlib : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL LUA ; ++ExternalLibs glestlib : SDL GL GLU XERCES VORBISFILE OPENAL LUA ; + IncludeDir glestlib : $(LIB_INCLUDE_DIRS) ; + + #### Game #### +@@ -55,7 +55,7 @@ + + Application glest : $(GLEST_SOURCES) ; + LinkWith glest : glestlib ; +-ExternalLibs glest : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL LUA ; ++ExternalLibs glest : SDL GL GLU XERCES VORBISFILE OPENAL LUA ; + IncludeDir glest : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_DIRS) ; + + ##### Editor #### --- glest-3.2.2.orig/debian/patches/be-support-from-kozz +++ glest-3.2.2/debian/patches/be-support-from-kozz @@ -0,0 +1,632 @@ +be-support-from-kozz by Eddy Petrișor + +Patch from Emanuel Steen (Kozz) which adds BE support to glest - more +info at +http://www.powerdeveloper.org/forums/viewtopic.php?p=6615&sid=eea0f061be143cbf8e98c10c9e7a6d6a#6615 + +diff -Nru glest.orig/source/glest_game/menu/main_menu.cpp glest/source/glest_game/menu/main_menu.cpp +--- glest.orig/source/glest_game/menu/main_menu.cpp 2007-01-02 12:23:43.000000000 +0100 ++++ glest/source/glest_game/menu/main_menu.cpp 2007-01-02 12:23:42.000000000 +0100 +@@ -23,6 +23,7 @@ + #include "faction.h" + #include "metrics.h" + #include "leak_dumper.h" ++#include "byteswap.h" + + using namespace Shared::Sound; + using namespace Shared::Util; +@@ -511,6 +512,12 @@ + + MapFileHeader header; + fread(&header, sizeof(MapFileHeader), 1, f); ++ header.version = letoh32(header.version); ++ header.maxPlayers = letoh32(header.maxPlayers); ++ header.width = letoh32(header.width); ++ header.height = letoh32(header.height); ++ header.altFactor = letoh32(header.altFactor); ++ header.waterLevel = letoh32(header.waterLevel); + + mapInfo->size.x= header.width; + mapInfo->size.y= header.height; +diff -Nru glest.orig/source/glest_game/world/map.cpp glest/source/glest_game/world/map.cpp +--- glest.orig/source/glest_game/world/map.cpp 2007-01-02 12:23:43.000000000 +0100 ++++ glest/source/glest_game/world/map.cpp 2007-01-02 12:23:42.000000000 +0100 +@@ -20,6 +20,7 @@ + #include "tech_tree.h" + #include "config.h" + #include "leak_dumper.h" ++#include "byteswap.h" + + using namespace Shared::Graphics; + using namespace Shared::Util; +@@ -122,6 +123,13 @@ + //read header + MapFileHeader header; + fread(&header, sizeof(MapFileHeader), 1, f); ++ header.version = letoh32(header.version); ++ header.maxPlayers = letoh32(header.maxPlayers); ++ header.width = letoh32(header.width); ++ header.height = letoh32(header.height); ++ header.altFactor = letoh32(header.altFactor); ++ header.waterLevel = letoh32(header.waterLevel); ++ + + if(next2Power(header.width) != header.width){ + throw runtime_error("Map width is not a power of 2"); +@@ -146,7 +154,9 @@ + for(int i=0; isetVertex(Vec3f(i*mapScale, alt / heightFactor, j*mapScale)); + } +diff -Nru glest.orig/source/shared_lib/include/sound/sound_file_loader.h glest/source/shared_lib/include/sound/sound_file_loader.h +--- glest.orig/source/shared_lib/include/sound/sound_file_loader.h 2007-01-02 12:23:43.000000000 +0100 ++++ glest/source/shared_lib/include/sound/sound_file_loader.h 2007-01-02 12:23:42.000000000 +0100 +@@ -80,6 +80,11 @@ + private: + OggVorbis_File *vf; + FILE *f; ++#if BYTE_ORDER == BIG_ENDIAN ++ static const int bigendianp = 1; ++#else ++ static const int bigendianp = 0; ++#endif + + public: + virtual void open(const string &path, SoundInfo *soundInfo); +diff -Nru glest.orig/source/shared_lib/include/util/byteswap.h glest/source/shared_lib/include/util/byteswap.h +--- glest.orig/source/shared_lib/include/util/byteswap.h 1970-01-01 01:00:00.000000000 +0100 ++++ glest/source/shared_lib/include/util/byteswap.h 2007-01-02 12:23:42.000000000 +0100 +@@ -0,0 +1,198 @@ ++/* $OpenBSD: endian.h,v 1.14 2004/01/11 19:17:31 brad Exp $ */ ++ ++/*- ++ * Copyright (c) 1997 Niklas Hallqvist. All rights reserved. ++ * ++ * 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. ++ * ++ * 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. ++ */ ++ ++/* ++ * Generic definitions for little- and big-endian systems. Other endianesses ++ * has to be dealt with in the specific machine/endian.h file for that port. ++ * ++ * This file is meant to be included from a little- or big-endian port's ++ * machine/endian.h after setting BYTE_ORDER to either 1234 for little endian ++ * or 4321 for big.. ++ */ ++ ++#ifndef _BYTESWAP_H_ ++#define _BYTESWAP_H_ ++ ++#undef LITTLE_ENDIAN ++#define LITTLE_ENDIAN 1234 ++#undef BIG_ENDIAN ++#define BIG_ENDIAN 4321 ++#undef PDP_ENDIAN ++#define PDP_ENDIAN 3412 ++ ++#ifdef __GNUC__ ++ ++#define __swap16gen(x) __extension__({ \ ++ uint16 __swap16gen_x = (x); \ ++ \ ++ (uint16)((__swap16gen_x & 0xff) << 8 | \ ++ (__swap16gen_x & 0xff00) >> 8); \ ++}) ++ ++#define __swap32gen(x) __extension__({ \ ++ uint32 __swap32gen_x = (x); \ ++ \ ++ (uint32)((__swap32gen_x & 0xff) << 24 | \ ++ (__swap32gen_x & 0xff00) << 8 | \ ++ (__swap32gen_x & 0xff0000) >> 8 | \ ++ (__swap32gen_x & 0xff000000) >> 24); \ ++}) ++ ++#else /* __GNUC__ */ ++ ++/* Note that these macros evaluate their arguments several times. */ ++#define __swap16gen(x) \ ++ (uint16)(((uint16)(x) & 0xff) << 8 | ((uint16)(x) & 0xff00) >> 8) ++ ++#define __swap32gen(x) \ ++ (uint32)(((uint32)(x) & 0xff) << 24 | \ ++ ((uint32)(x) & 0xff00) << 8 | ((uint32)(x) & 0xff0000) >> 8 | \ ++ ((uint32)(x) & 0xff000000) >> 24) ++ ++#endif /* __GNUC__ */ ++ ++/* ++ * Define MD_SWAP if you provide swap{16,32}md functions/macros that are ++ * optimized for your architecture, These will be used for swap{16,32} ++ * unless the argument is a constant and we are using GCC, where we can ++ * take advantage of the CSE phase much better by using the generic version. ++ */ ++#ifdef MD_SWAP ++#if __GNUC__ ++ ++#define swap16(x) __extension__({ \ ++ uint16 __swap16_x = (x); \ ++ \ ++ __builtin_constant_p(x) ? __swap16gen(__swap16_x) : \ ++ __swap16md(__swap16_x); \ ++}) ++ ++#define swap32(x) __extension__({ \ ++ uint32 __swap32_x = (x); \ ++ \ ++ __builtin_constant_p(x) ? __swap32gen(__swap32_x) : \ ++ __swap32md(__swap32_x); \ ++}) ++ ++#endif /* __GNUC__ */ ++ ++#else /* MD_SWAP */ ++#define swap16 __swap16gen ++#define swap32 __swap32gen ++#endif /* MD_SWAP */ ++ ++#define swap16_multi(v, n) do { \ ++ size_t __swap16_multi_n = (n); \ ++ uint16 *__swap16_multi_v = (v); \ ++ \ ++ while (__swap16_multi_n) { \ ++ *__swap16_multi_v = swap16(*__swap16_multi_v); \ ++ __swap16_multi_v++; \ ++ __swap16_multi_n--; \ ++ } \ ++} while (0) ++ ++uint32 htobe32(uint32); ++uint16 htobe16(uint16); ++uint32 betoh32(uint32); ++uint16 betoh16(uint16); ++ ++uint32 htole32(uint32); ++uint16 htole16(uint16); ++uint32 letoh32(uint32); ++uint16 letoh16(uint16); ++ ++#if BYTE_ORDER == LITTLE_ENDIAN ++ ++inline float byteswap(float in) { ++ return in; ++} ++ ++/* Can be overridden by machine/endian.h before inclusion of this file. */ ++#ifndef _QUAD_HIGHWORD ++#define _QUAD_HIGHWORD 1 ++#endif ++#ifndef _QUAD_LOWWORD ++#define _QUAD_LOWWORD 0 ++#endif ++ ++#define htobe16 swap16 ++#define htobe32 swap32 ++#define betoh16 swap16 ++#define betoh32 swap32 ++ ++#define htole16(x) (x) ++#define htole32(x) (x) ++#define letoh16(x) (x) ++#define letoh32(x) (x) ++ ++#endif /* BYTE_ORDER */ ++ ++#if BYTE_ORDER == BIG_ENDIAN ++ ++inline float byteswap(float in) { ++ float retVal; ++ char* p = (char*)&retVal; ++ char* i = (char*)∈ ++ p[0] = i[3]; ++ p[1] = i[2]; ++ p[2] = i[1]; ++ p[3] = i[0]; ++ ++ return retVal; ++} ++ ++/* Can be overridden by machine/endian.h before inclusion of this file. */ ++#ifndef _QUAD_HIGHWORD ++#define _QUAD_HIGHWORD 0 ++#endif ++#ifndef _QUAD_LOWWORD ++#define _QUAD_LOWWORD 1 ++#endif ++ ++#define htole16 swap16 ++#define htole32 swap32 ++#define letoh16 swap16 ++#define letoh32 swap32 ++ ++#define htobe16(x) (x) ++#define htobe32(x) (x) ++#define betoh16(x) (x) ++#define betoh32(x) (x) ++ ++#endif /* BYTE_ORDER */ ++ ++#define htons htobe16 ++#define htonl htobe32 ++#define ntohs betoh16 ++#define ntohl betoh32 ++ ++#define NTOHL(x) (x) = ntohl((uint32)(x)) ++#define NTOHS(x) (x) = ntohs((uint16)(x)) ++#define HTONL(x) (x) = htonl((uint32)(x)) ++#define HTONS(x) (x) = htons((uint16)(x)) ++ ++#endif /* _SYS_ENDIAN_H_ */ +diff -Nru glest.orig/source/shared_lib/sources/graphics/model.cpp glest/source/shared_lib/sources/graphics/model.cpp +--- glest.orig/source/shared_lib/sources/graphics/model.cpp 2007-01-02 12:23:43.000000000 +0100 ++++ glest/source/shared_lib/sources/graphics/model.cpp 2007-01-02 12:23:42.000000000 +0100 +@@ -19,6 +19,7 @@ + #include "conversion.h" + #include "util.h" + #include "leak_dumper.h" ++#include "byteswap.h" + + using namespace Shared::Platform; + +@@ -95,6 +96,12 @@ + //read header + MeshHeaderV2 meshHeader; + fread(&meshHeader, sizeof(MeshHeaderV2), 1, f); ++ meshHeader.vertexFrameCount = letoh32(meshHeader.vertexFrameCount); ++ meshHeader.normalFrameCount = letoh32(meshHeader.normalFrameCount); ++ meshHeader.texCoordFrameCount = letoh32(meshHeader.texCoordFrameCount); ++ meshHeader.colorFrameCount = letoh32(meshHeader.colorFrameCount); ++ meshHeader.pointCount = letoh32(meshHeader.pointCount); ++ meshHeader.indexCount = letoh32(meshHeader.indexCount); + + + if(meshHeader.normalFrameCount!=meshHeader.vertexFrameCount){ +@@ -130,21 +137,53 @@ + + //read data + fread(vertices, sizeof(Vec3f)*frameCount*vertexCount, 1, f); ++ for (unsigned int i = 0; i < (frameCount*vertexCount); ++i) { ++ vertices[i].x = byteswap(vertices[i].x); ++ vertices[i].y = byteswap(vertices[i].y); ++ vertices[i].z = byteswap(vertices[i].z); ++ } ++ + fread(normals, sizeof(Vec3f)*frameCount*vertexCount, 1, f); +- if(textures[mtDiffuse]!=NULL){ ++ for (unsigned int i = 0; i < (frameCount*vertexCount); ++i) { ++ normals[i].x = byteswap(normals[i].x); ++ normals[i].y = byteswap(normals[i].y); ++ normals[i].z = byteswap(normals[i].z); ++ } ++ ++ if (textures[mtDiffuse] != NULL) { + fread(texCoords, sizeof(Vec2f)*vertexCount, 1, f); ++ for (unsigned int i = 0; i < (vertexCount); ++i) { ++ texCoords[i].x = byteswap(texCoords[i].x); ++ texCoords[i].y = byteswap(texCoords[i].y); ++ } + } ++ + fread(&diffuseColor, sizeof(Vec3f), 1, f); ++ diffuseColor.x = byteswap(diffuseColor.x); ++ diffuseColor.y = byteswap(diffuseColor.y); ++ diffuseColor.z = byteswap(diffuseColor.z); ++ + fread(&opacity, sizeof(float32), 1, f); ++ opacity = byteswap(opacity); ++ + fseek(f, sizeof(Vec4f)*(meshHeader.colorFrameCount-1), SEEK_CUR); + fread(indices, sizeof(uint32)*indexCount, 1, f); ++ for (unsigned int i = 0; i < indexCount; ++i) { ++ indices[i] = letoh32(indices[i]); ++ } + } + + void Mesh::loadV3(const string &dir, FILE *f, TextureManager *textureManager){ + //read header + MeshHeaderV3 meshHeader; + fread(&meshHeader, sizeof(MeshHeaderV3), 1, f); +- ++ meshHeader.vertexFrameCount = letoh32(meshHeader.vertexFrameCount); ++ meshHeader.normalFrameCount = letoh32(meshHeader.normalFrameCount); ++ meshHeader.texCoordFrameCount = letoh32(meshHeader.texCoordFrameCount); ++ meshHeader.colorFrameCount = letoh32(meshHeader.colorFrameCount); ++ meshHeader.pointCount = letoh32(meshHeader.pointCount); ++ meshHeader.indexCount = letoh32(meshHeader.indexCount); ++ meshHeader.properties = letoh32(meshHeader.properties); + + if(meshHeader.normalFrameCount!=meshHeader.vertexFrameCount){ + throw runtime_error("Old model: vertex frame count different from normal frame count"); +@@ -175,22 +214,60 @@ + + //read data + fread(vertices, sizeof(Vec3f)*frameCount*vertexCount, 1, f); ++ for (unsigned int i = 0; i < (frameCount*vertexCount); ++i) { ++ vertices[i].x = byteswap(vertices[i].x); ++ vertices[i].y = byteswap(vertices[i].y); ++ vertices[i].z = byteswap(vertices[i].z); ++ } ++ + fread(normals, sizeof(Vec3f)*frameCount*vertexCount, 1, f); ++ for (unsigned int i = 0; i < (frameCount*vertexCount); ++i) { ++ normals[i].x = byteswap(normals[i].x); ++ normals[i].y = byteswap(normals[i].y); ++ normals[i].z = byteswap(normals[i].z); ++ } ++ + if(textures[mtDiffuse]!=NULL){ + for(int i=0; isetChannels(size16); + + //first sub-chunk (header) - Data (nsamplesPerSecond) + f.read((char*) &size32, 4); ++ size32 = letoh32(size32); + soundInfo->setsamplesPerSecond(size32); + + //first sub-chunk (header) - Data (nAvgBytesPerSec) - Ignore + f.read((char*) &size32, 4); ++ size32 = letoh32(size32); + + //first sub-chunk (header) - Data (blockAlign) - Ignore + f.read((char*) &size16, 2); ++ size16 = letoh16(size16); + + //first sub-chunk (header) - Data (nsamplesPerSecond) + f.read((char*) &size16, 2); ++ size16 = letoh16(size16); + soundInfo->setBitsPerSample(size16); + + if (soundInfo->getBitsPerSample() != 8 && soundInfo->getBitsPerSample()!=16){ +@@ -106,6 +115,7 @@ + + //second sub-chunk (samples) - Size + f.read((char*) &size32, 4); ++ size32 = letoh32(size32); + dataSize= size32; + soundInfo->setSize(dataSize); + } +@@ -121,6 +131,11 @@ + + uint32 WavSoundFileLoader::read(int8 *samples, uint32 size){ + f.read(reinterpret_cast (samples), size); ++ int32 *tmp = NULL; ++ tmp = (int32 *)samples; ++ for (unsigned int i = 0; i < size/4; ++i) { ++ tmp[i] = letoh32(tmp[i]); ++ } + return f.gcount(); + } + +@@ -159,7 +174,7 @@ + + while(size>0){ + int bytesRead= ov_read(vf, reinterpret_cast (samples), size, +- 0, 2, 1, §ion); ++ bigendianp, 2, 1, §ion); + if(bytesRead==0){ + break; + } --- glest-3.2.2.orig/debian/patches/ftbfs +++ glest-3.2.2/debian/patches/ftbfs @@ -0,0 +1,10 @@ +--- a/mk/linux/configure.ac ++++ b/mk/linux/configure.ac +@@ -63,6 +63,7 @@ + AC_PATH_X + if test "$no_x" != "yes"; then + AC_DEFINE([X11_AVAILABLE], [1], [Defined if X11 is avilable]) ++ LIBS="$LIBS -lX11" + else + AC_MSG_ERROR("Please install X11 libraries and headers.") + fi --- glest-3.2.2.orig/debian/patches/missing-cstdio-include +++ glest-3.2.2/debian/patches/missing-cstdio-include @@ -0,0 +1,14 @@ +Index: glest-3.2.2/source/shared_lib/sources/platform/posix/socket.cpp +=================================================================== +--- glest-3.2.2.orig/source/shared_lib/sources/platform/posix/socket.cpp 2010-02-11 19:40:29.000000000 +0100 ++++ glest-3.2.2/source/shared_lib/sources/platform/posix/socket.cpp 2010-02-11 19:40:40.000000000 +0100 +@@ -9,7 +9,8 @@ + #include "socket.h" + + #include +-#include ++#include ++#include + #include + #include + #if defined(HAVE_SYS_IOCTL_H)