[SCM] ffmpeg/experimental: Simplify CPU check

sramacher at users.alioth.debian.org sramacher at users.alioth.debian.org
Mon Mar 7 21:48:23 UTC 2016


The following commit has been merged in the experimental branch:
commit 0d4ca5a5b734634a3a7704a912d852d2c9ea9e50
Author: Sebastian Ramacher <sramacher at debian.org>
Date:   Mon Mar 7 02:09:42 2016 +0100

    Simplify CPU check

diff --git a/debian/rules b/debian/rules
index c8185bc..b5a55f3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,12 +12,8 @@ DEBIAN_DIR = $(dir $(firstword $(MAKEFILE_LIST)))
 DEB_VERSION  := $(shell dpkg-parsechangelog -l$(DEBIAN_DIR)changelog -SVersion)
 DEB_REVISION := $(word 2, $(subst -, ,$(DEB_VERSION)))
 
-# Get the architecture triplet:
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
-
-# Get the host architecture/OS:
-DEB_HOST_ARCH_OS   ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
-DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+# DEB_HOST_* variables
+include /usr/share/dpkg/architecture.mk
 
 # Ubuntu ld adds -Bsymbolic-functions by default, but that prevents FFmpeg from building.
 export DEB_LDFLAGS_MAINT_STRIP=-Wl,-Bsymbolic-functions
@@ -156,7 +152,7 @@ else
 endif
 
 # Disable i686 optimizations on i386, because they are not always available on this architecture.
-ifneq (,$(filter $(DEB_HOST_ARCH),i386 hurd-i386))
+ifneq (,$(filter $(DEB_HOST_ARCH_CPU),i386))
 	CONFIG += --disable-i686
 endif
 

-- 
ffmpeg packaging



More information about the pkg-multimedia-commits mailing list