[SCM] phasex/master: Enable optimizations on amd64.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Sat Jan 12 20:24:36 UTC 2013


The following commit has been merged in the master branch:
commit 1891af226d787e966f37771692a7f079218a3930
Author: Alessio Treglia <alessio at debian.org>
Date:   Sat Jan 12 19:49:45 2013 +0000

    Enable optimizations on amd64.

diff --git a/debian/rules b/debian/rules
index 6390e8f..3fe3f0b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,10 +1,19 @@
 #!/usr/bin/make -f
 
+DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+
+ifneq (,$(findstring amd64,$(DEB_BUILD_ARCH)))
+DEB_CONFIGURE_FLAGS_EXTRA=--enable-arch=amd64
+endif
+
 LDFLAGS+=-Wl,--as-needed
 
 %:
 	dh --with=autoreconf $@
 
+override_dh_auto_configure:
+	dh_auto_configure -- $(DEB_CONFIGURE_FLAGS_EXTRA)
+
 override_dh_auto_install:
 	dh_auto_install
 	mkdir -p $(CURDIR)/debian/tmp/usr/share/applications

-- 
phasex packaging



More information about the pkg-multimedia-commits mailing list