r8446 - in packages/trunk/xbat/debian: . patches
Peter De Wachter
pdewacht-guest at alioth.debian.org
Sun Nov 23 13:48:57 UTC 2008
Author: pdewacht-guest
Date: 2008-11-23 13:48:57 +0000 (Sun, 23 Nov 2008)
New Revision: 8446
Added:
packages/trunk/xbat/debian/patches/010_byteorder.diff
Modified:
packages/trunk/xbat/debian/patches/series
packages/trunk/xbat/debian/rules
Log:
fix endian problems
Added: packages/trunk/xbat/debian/patches/010_byteorder.diff
===================================================================
--- packages/trunk/xbat/debian/patches/010_byteorder.diff (rev 0)
+++ packages/trunk/xbat/debian/patches/010_byteorder.diff 2008-11-23 13:48:57 UTC (rev 8446)
@@ -0,0 +1,13 @@
+--- a/xev.h
++++ b/xev.h
+@@ -8,6 +8,10 @@
+ #include <stdlib.h>
+ #include "colorlist.h"
+
++#undef UNION
++#include <endian.h>
++#define UNION (__BYTE_ORDER == __LITTLE_ENDIAN)
++
+ #define ABS(x) ( ( (x) > 0 ) ? (x) : -(x))
+ #define NIJOU(x) ( (x) * (x) )
+ #define SGN(x) ((x < 0) ? -1 : ((x > 0) ? 1 : 0))
Modified: packages/trunk/xbat/debian/patches/series
===================================================================
--- packages/trunk/xbat/debian/patches/series 2008-11-22 22:59:10 UTC (rev 8445)
+++ packages/trunk/xbat/debian/patches/series 2008-11-23 13:48:57 UTC (rev 8446)
@@ -3,3 +3,4 @@
010_extra_keys.diff
010_short_size.diff
010_deathonkill.diff
+010_byteorder.diff
Modified: packages/trunk/xbat/debian/rules
===================================================================
--- packages/trunk/xbat/debian/rules 2008-11-22 22:59:10 UTC (rev 8445)
+++ packages/trunk/xbat/debian/rules 2008-11-23 13:48:57 UTC (rev 8446)
@@ -7,14 +7,6 @@
DOMO_DIR=/usr/share/games/xbat/Domo \
BINDIR=/usr/games
-# UNION is a compile flag. It cannot be evaluated in the Imakefile,
-# because imake doesn't give cpp a nice $ARCH flag to evaluate.
-ifeq ($(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU),i386)
- UNION=1
-else
- UNION=0
-endif
-
build: build-stamp
build-stamp:
dh_testdir
More information about the Pkg-games-commits
mailing list