Author: fuddl-guest
Date: 2008-01-29 22:05:28 +0000 (Tue, 29 Jan 2008)
New Revision: 5558

Modified:
   packages/trunk/sauerbraten/debian/changelog
   packages/trunk/sauerbraten/debian/patches/fix-clean-target.diff
   packages/trunk/sauerbraten/debian/rules
Log:
* patch makefile to support building debuggable binaries

Modified: packages/trunk/sauerbraten/debian/changelog
===================================================================
--- packages/trunk/sauerbraten/debian/changelog 2008-01-29 21:42:05 UTC (rev 
5557)
+++ packages/trunk/sauerbraten/debian/changelog 2008-01-29 22:05:28 UTC (rev 
5558)
@@ -15,6 +15,7 @@
   * Switch from dpatch to quilt
   * Install PNG desktop icon in proper location
   * Update my email address
+  * Patch Makefile to support building binaries with debug symbols (Closes: 
#443658)
 
   [ Marco Rodrigues ]
   * Add Homepage field in the control file.

Modified: packages/trunk/sauerbraten/debian/patches/fix-clean-target.diff
===================================================================
--- packages/trunk/sauerbraten/debian/patches/fix-clean-target.diff     
2008-01-29 21:42:05 UTC (rev 5557)
+++ packages/trunk/sauerbraten/debian/patches/fix-clean-target.diff     
2008-01-29 22:05:28 UTC (rev 5558)
@@ -1,8 +1,16 @@
 === modified file 'sauerbraten-0.0.20071222.dfsg/Makefile'
-Index: sauerbraten-0.0.20071222.dfsg/Makefile
+Index: sauerbraten-0.0.20071227.dfsg/Makefile
 ===================================================================
---- sauerbraten-0.0.20071222.dfsg.orig/Makefile        2008-01-27 
16:46:26.000000000 +0100
-+++ sauerbraten-0.0.20071222.dfsg/Makefile     2008-01-27 16:47:20.000000000 
+0100
+--- sauerbraten-0.0.20071227.dfsg.orig/Makefile        2007-12-27 
22:38:17.000000000 +0100
++++ sauerbraten-0.0.20071227.dfsg/Makefile     2008-01-29 22:50:03.000000000 
+0100
+@@ -1,6 +1,6 @@
+ CXXOPTFLAGS= -O3 -fomit-frame-pointer
+ INCLUDES= -Ishared -Iengine -Ifpsgame -Irpggame -Ienet/include 
-I/usr/X11R6/include `sdl-config --cflags`
+-CXXFLAGS= -Wall -fsigned-char $(CXXOPTFLAGS) $(INCLUDES)
++CXXFLAGS= -g -Wall -fsigned-char $(CXXOPTFLAGS) $(INCLUDES)
+ 
+ PLATFORM_PREFIX=native
+ 
 @@ -58,12 +58,13 @@
  enet/Makefile:
        cd enet; ./configure

Modified: packages/trunk/sauerbraten/debian/rules
===================================================================
--- packages/trunk/sauerbraten/debian/rules     2008-01-29 21:42:05 UTC (rev 
5557)
+++ packages/trunk/sauerbraten/debian/rules     2008-01-29 22:05:28 UTC (rev 
5558)
@@ -6,6 +6,14 @@
        $(error powerpc builds disabled. See http://bugs.debian.org/432666 for 
details)
 endif
 
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+       $(info Disable all optimisations)
+       CXXOPTFLAGS+=
+else
+       CXXOPTFLAGS+=-O2 -fomit-frame-pointer
+endif
+
+
 patch-stamp: patch
        touch patch-stamp
 
@@ -22,7 +30,7 @@
        dh_testdir
        uudecode -o sauerbraten.png debian/sauerbraten.png.uu
        convert sauerbraten.png sauerbraten.xpm
-       $(MAKE)
+       $(MAKE) CXXOPTFLAGS="$(CXXOPTFLAGS)"
        touch $@
 
 clean: patch-stamp clean-patched unpatch


_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to