summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDidier Raboud <odyx@debian.org>2013-11-26 11:47:33 +0100
committerDidier Raboud <odyx@debian.org>2013-11-26 12:08:32 +0100
commite784d23074859531fffa778feeeb24a21ad354ae (patch)
treef71c69650fe44c1821272eca77e3161680eef973
parent6513a905f4525822a53a203d7f6e96400c222c7c (diff)
downloadcolobot-e784d23074859531fffa778feeeb24a21ad354ae.tar.gz
colobot-e784d23074859531fffa778feeeb24a21ad354ae.tar.bz2
colobot-e784d23074859531fffa778feeeb24a21ad354ae.zip
Add patch to let kFreeBSD and Hurd be considered Linuxes
-rw-r--r--debian/patches/build-on-kfreebsd16
-rw-r--r--debian/patches/series1
2 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/build-on-kfreebsd b/debian/patches/build-on-kfreebsd
new file mode 100644
index 0000000..9000042
--- /dev/null
+++ b/debian/patches/build-on-kfreebsd
@@ -0,0 +1,16 @@
+Description: Non-Linux architectures on Debian support to be considered as Linux in the Colobot case
+Author: Didier Raboud <odyx@debian.org>
+Last-Update: 2013-11-26
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -48,8 +48,8 @@
+
+ # Platform-dependent implementation of system.h
+ set(SYSTEM_CPP_MODULE "system_windows.cpp")
+-elseif("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
+- message(STATUS "Build for Linux system")
++elseif("${CMAKE_SYSTEM_NAME}" MATCHES "Linux" OR "${CMAKE_SYSTEM_NAME}" MATCHES "kFreeBSD" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "GNU")
++ message(STATUS "Build for GNU/Linux, GNU/kFreeBSD or GNU/Hurd system")
+ set(PLATFORM_WINDOWS 0)
+ set(PLATFORM_LINUX 1)
+ set(PLATFORM_MACOSX 0)
diff --git a/debian/patches/series b/debian/patches/series
index 779db1a..a8520b8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
i225-hide-black-squares-bug.patch
+build-on-kfreebsd