[SCM] Simple and fast multimedia library for C++ branch, master, updated. 779b025afe853f68738a0a12cca18e0795fa3067

Christoph Egger Christoph.Egger at gmx.de
Tue Jun 17 16:46:07 UTC 2008


The following commit has been merged in the master branch:
commit ea61a47c09783740c99e60bdb43017da48cf40e2
Author: Christoph Egger <Christoph.Egger at gmx.de>
Date:   Tue Jun 17 17:38:29 2008 +0200

     * Fix build on other arches

diff --git a/debian/patches/building_on_all_arches.patch b/debian/patches/building_on_all_arches.patch
new file mode 100644
index 0000000..e877b84
--- /dev/null
+++ b/debian/patches/building_on_all_arches.patch
@@ -0,0 +1,51 @@
+Index: libsfml/include/SFML/Config.hpp
+===================================================================
+--- libsfml.orig/include/SFML/Config.hpp	2008-06-17 17:31:39.000000000 +0200
++++ libsfml/include/SFML/Config.hpp	2008-06-17 17:35:42.000000000 +0200
+@@ -44,6 +44,12 @@
+     // Linux
+     #define SFML_SYSTEM_LINUX
+ 
++#elif defined(unix) || defined(__unix)
++
++	// unixoid so probably working like linux
++	#define SFML_SYSTEM_LINUX
++	#warning This flavor of unix is not supported upstream
++
+ #elif defined(__APPLE__) || defined(MACOSX) || defined(macintosh) || defined(Macintosh)
+ 
+     // MacOS
+@@ -83,7 +89,7 @@
+ #else
+ 
+     // Unsupported platform
+-    #error This platform is not supported by SFML library
++    #warning This platform is not supported by SFML library
+ 
+ #endif
+ 
+@@ -145,18 +151,21 @@
+ ////////////////////////////////////////////////////////////
+ // Define endianness depending on current platform
+ ////////////////////////////////////////////////////////////
+-#ifdef SFML_PLATFORM_POWERPC
++#if defined(SFML_PLATFORM_POWERPC)
+ 
+     // Apple PowerPC processors are big endian
+     #define SFML_BIG_ENDIAN
+ 
+-#else
++#elif defined(SFML_PLATFORM_X86) || defined(SFML_PLATFORM_AMD64) || defined(SFML_PLATFORM_IA64)
+ 
+     // The other supported processors (x86, IA64, AMD64) are little endian
+     #define SFML_LITTLE_ENDIAN
+ 
+-#endif
++#else
++
++	#define SFML_UNKNOWN_ENDIAN
+ 
++#endif
+ 
+ ////////////////////////////////////////////////////////////
+ // Define portable types
diff --git a/debian/patches/series b/debian/patches/series
index a4e755f..87e8900 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ add_script_header_to_example_makefiles.patch
 removing_removed_sources_from_makefiles.patch
 patching_files_as_needed_by_repackaging.patch
 cstring_ftbfs.patch
+building_on_all_arches.patch

-- 
Simple and fast multimedia library for C++



More information about the Pkg-games-commits mailing list