[fife] 01/02: debian/rules: Try to prevent build failures on mips and mipsel by using
Markus Koschany
apo at moszumanska.debian.org
Sun Jan 22 00:50:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
apo pushed a commit to branch master
in repository fife.
commit 482e6ede34924f81ecb0efb5534e6672054941a4
Author: Markus Koschany <apo at debian.org>
Date: Sun Jan 22 01:15:32 2017 +0100
debian/rules: Try to prevent build failures on mips and mipsel by using
a single thread only and building with CMAKE_BUILD_TYPE=MinSizeRel.
---
debian/rules | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 4c32fd6..ac0bdc8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,21 @@
#!/usr/bin/make -f
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+WEAK_HOSTS := mips mipsel
+
+ifneq (,$(findstring $(DEB_HOST_ARCH),$(WEAK_HOSTS)))
+ MAX := 1
+ TYPE := MinSizeRel
+else
+ MAX := 2
+ TYPE := RelWithDebInfo
+endif
%:
- dh $@ --with python2 --buildsystem=cmake
+ dh $@ --max-parallel=$(MAX) --with python2 --buildsystem=cmake
+
+override_dh_auto_configure:
+ dh_auto_configure -- \
+ -DCMAKE_BUILD_TYPE=$(TYPE)
override_dh_install:
dh_install --fail-missing
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/fife.git
More information about the Pkg-games-commits
mailing list