[Pkg-sdl-commits] [sdlgfx] 02/02: Re-enabling mmx autodetection in debian/rules

Gianfranco Costamagna locutusofborg-guest at moszumanska.debian.org
Thu Feb 20 10:26:28 UTC 2014


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

locutusofborg-guest pushed a commit to branch master
in repository sdlgfx.

commit c178971f8bb0e610dbdd11aae37c4d35c4c30b18
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date:   Thu Feb 20 11:25:12 2014 +0100

    Re-enabling mmx autodetection in debian/rules
---
 debian/changelog |  2 ++
 debian/rules     | 14 ++++++++++++--
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index a60d5c4..09a8560 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 sdlgfx (2.0.25-2) UNRELEASED; urgency=low
 
   * Fixing jquery lintian warning
+  * Re-enabling MMX detection in debian/rules, autodetection
+    doesn't work properly.
 
  -- Gianfranco Costamagna <costamagnagianfranco at yahoo.it>  Thu, 20 Feb 2014 10:35:39 +0100
 
diff --git a/debian/rules b/debian/rules
index 48940c3..5abf8fa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+DEB_HOST_ARCH  ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
 LIBPKG = libsdl-gfx1.2-5
 
@@ -8,8 +9,17 @@ LIBPKG = libsdl-gfx1.2-5
 %:
 	dh $@ --parallel --with autoreconf
 
-#override_dh_auto_configure:
-#	dh_auto_configure -- $(CONFIGURE_FLAGS)
+CONFIGURE_FLAGS ?=--disable-mmx
+
+ifeq ($(DEB_HOST_ARCH), i386 )
+	CONFIGURE_FLAGS =--enable-mmx
+endif
+ifeq ($(DEB_HOST_ARCH), amd64)
+	CONFIGURE_FLAGS =--enable-mmx
+endif
+
+override_dh_auto_configure:
+	dh_auto_configure -- $(CONFIGURE_FLAGS)
 
 override_dh_auto_build:
 	dh_auto_build

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sdl/packages/sdlgfx.git



More information about the pkg-sdl-commits mailing list