[rbdoom3bfg] 01/01: Allow mmx, sse and co for amd64
Tobias Frost
tobi at moszumanska.debian.org
Sat Jun 20 22:21:22 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 d3641a830509af47f7d51bd1dfe80690bacc2afb
Author: Tobias Frost <tobi at coldtobi.de>
Date: Sun Jun 21 00:21:17 2015 +0200
Allow mmx, sse and co for amd64
---
debian/rules | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index cc77dd3..fa677d2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,13 @@
# output every command that modifies files on the build system.
#DH_VERBOSE = 1
+DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+
+CMAKE_ADDTIONAL_FLAGS ?=
+ifeq ($(findstring $(DEB_BUILD_ARCH), amd64 kfreebsd-amd64),)
+CMAKE_ADDITIONAL_FLAGS ?= -DUSE_INTRINSICS=OFF
+endif
+
%:
dh $@ --sourcedirectory=neo --parallel
@@ -13,8 +20,10 @@ override_dh_auto_configure:
-DSDL2=ON -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
-DUSE_SYSTEM_ZLIB=ON -DUSE_SYSTEM_LIBPNG=ON \
-DUSE_SYSTEM_LIBJPEG=ON -DUSE_SYSTEM_LIBGLEW=ON \
- -DCPU_TYPE=$(DEB_BUILD_ARCH_CPU) -DCPU_OPTIMIZATION="" -DUSE_INTRINSICS=OFF \
- -DUSE_PRECOMPILED_HEADERS=OFF
+ -DCPU_TYPE=$(DEB_BUILD_ARCH_CPU) \
+ -DUSE_PRECOMPILED_HEADERS=OFF \
+ -DCPU_OPTIMIZATION="" \
+ $(CMAKE_ADDITIONAL_FLAGS)
override_dh_installchangelogs:
# We won't have a ChangeLog if packaging from a released tarball.
--
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