[rbdoom3bfg] 02/02: New patch: Try to compile on hurd and kfreebsd as well

Tobias Frost tobi at moszumanska.debian.org
Sun Jun 21 09:17:30 UTC 2015


This is an automated email from the git hooks/post-receive script.

tobi pushed a commit to branch master
in repository rbdoom3bfg.

commit 1cc8c6bc2ae518ee958929965b0acaeafae6ff86
Author: Tobias Frost <tobi at coldtobi.de>
Date:   Sun Jun 21 11:17:21 2015 +0200

    New patch: Try to compile on hurd and kfreebsd as well
---
 debian/patches/82-enable-hurd-kfreebsd.patch | 37 ++++++++++++++++++++++++++++
 debian/patches/series                        |  1 +
 2 files changed, 38 insertions(+)

diff --git a/debian/patches/82-enable-hurd-kfreebsd.patch b/debian/patches/82-enable-hurd-kfreebsd.patch
new file mode 100644
index 0000000..6f5c556
--- /dev/null
+++ b/debian/patches/82-enable-hurd-kfreebsd.patch
@@ -0,0 +1,37 @@
+Description: Tweak build system to support compilation under kfreebsd and hurd
+ The patch focuses to set the compiler flags not accroding to architecture
+ but according to the compiler.
+Author: Tobias Frost <tobi at debian.org>
+Forwarded: not-yet
+Last-Update: 2015-06-21
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/neo/idlib/sys/sys_defines.h
++++ b/neo/idlib/sys/sys_defines.h
+@@ -102,7 +102,7 @@
+ #endif
+ 
+ 
+-#elif defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__)
++#elif defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__) || defined(__GNUC__) || defined(__clang__)
+ 
+ #ifndef CPUSTRING
+ #if defined(__i386__)
+@@ -120,6 +120,8 @@
+ #define	BUILD_STRING					"linux-" CPUSTRING
+ #elif defined(__APPLE__)
+ #define BUILD_STRING					"osx-" CPUSTRING
++#else
++#define BUILD_STRING					"other-" CPUSTRING
+ #endif
+ 
+ #define _alloca							alloca
+@@ -150,6 +152,8 @@
+ #define CALLBACK
+ #define __cdecl
+ 
++#else
++#error unknown build enviorment
+ #endif
+ // RB end
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 4d5f6c3..57b4e22 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 65-init-sdl2.patch
 75-local-no-precompiled-header.patch
 80-disable-cpu-features.patch
+82-enable-hurd-kfreebsd.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/rbdoom3bfg.git



More information about the Pkg-games-commits mailing list