[neverball] 01/02: Disable openhmd on hurd-i386, sh4 and powerpcspe.

Markus Koschany apo at moszumanska.debian.org
Tue Dec 13 23:01:52 UTC 2016


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

apo pushed a commit to branch master
in repository neverball.

commit d5b01d396b1c3f7d860939938e859c4d9d80203c
Author: Markus Koschany <apo at debian.org>
Date:   Tue Dec 13 21:58:44 2016 +0100

    Disable openhmd on hurd-i386, sh4 and powerpcspe.
---
 debian/control |  2 +-
 debian/rules   | 10 +++++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index 0fcee9b..90b9a29 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,7 @@ Uploaders:
 Build-Depends:
  debhelper (>= 10),
  libjpeg-dev,
- libopenhmd-dev,
+ libopenhmd-dev [!hurd-i386 !sh4 !powerpcspe],
  libphysfs-dev,
  libpng-dev,
  libsdl2-dev,
diff --git a/debian/rules b/debian/rules
index 956cf20..1f56ca6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,14 @@
 #export DH_VERBOSE=1
 # Disable debug mode. Enable mouse grab in window mode again. See #755760
 export DEB_CPPFLAGS_MAINT_APPEND = -DNDEBUG
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+NOT_OPENHMD := hurd-i386 sh4 powerpcspe
+ifneq (,$(findstring $(DEB_HOST_ARCH),$(NOT_OPENHMD)))
+		OPENHMD := no
+else
+		OPENHMD := openhmd
+endif
+
 
 %:
 	dh $@
@@ -10,7 +18,7 @@ override_dh_auto_build-arch:
 	$(MAKE) $(shell dpkg-buildflags --export=configure) \
 		DATADIR=/usr/share/games/neverball \
 		LOCALEDIR=/usr/share/locale \
-		ENABLE_HMD=openhmd \
+		ENABLE_OPENHMD=$(OPENHMD) \
 		executables
 	# Rename icons for .desktop files.
 	cp $(CURDIR)/dist/neverball_128.png $(CURDIR)/dist/neverball.png

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



More information about the Pkg-games-commits mailing list