[SCM] libav/experimental: Add special handling of Raspbian
sramacher at users.alioth.debian.org
sramacher at users.alioth.debian.org
Wed Jan 7 20:21:14 UTC 2015
The following commit has been merged in the experimental branch:
commit 463505b1a53fa192191694d56cc4369ef49b1b68
Author: Sebastian Ramacher <sramacher at debian.org>
Date: Tue Jan 6 13:51:10 2015 +0100
Add special handling of Raspbian
On Raspbian enabling NEON only produces dead code that is never used.
Thanks: Peter Green
Closes: #738760
diff --git a/debian/confflags b/debian/confflags
index 9d8ee47..073de71 100644
--- a/debian/confflags
+++ b/debian/confflags
@@ -26,6 +26,9 @@ check_cpp = $(shell $(CROSS)cpp -dM -P /dev/null | grep -q '^\#define $(1)' && e
# configuration
check_asm = $(shell echo 'void foo(void) { __asm__ volatile("$(1)"); }' | $(CROSS)gcc -x c -c - -o /dev/null 2>/dev/null && echo 1 || echo 0)
+# this is 0 or 1 depending on wehter we build for Raspbian
+is_raspbian := $(shell dpkg-vendor --derives-from raspbian && echo 1 || echo 0)
+
# the other flavors always build dynamic versions
# Also, disable architecture-specific optimizations for default shared build
ifeq ($(DEB_HOST_ARCH_CPU),arm)
@@ -46,9 +49,12 @@ ifeq ($(DEB_HOST_ARCH_CPU),arm)
FLAVORS += vfp
endif
# only build a NEON flavour if the toolchain doesn't enable NEON by default
+ # and we are not building for Raspbian
ifneq ($(has_neon),1)
+ ifneq ($(is_raspbian),1)
FLAVORS += neon
endif
+ endif
# calling-conventions for VFP and NEON flavours: if the toolchain uses
# -mfloat-abi=soft, we want to use softfp, otherwise we want to use the
# toolchain default (either softfp or hardfp)
@@ -104,6 +110,11 @@ confflags += --prefix=/usr
confflags += $(shell test -x /usr/bin/yasm || echo --disable-yasm )
confflags += --disable-avserver
+ifeq ($(is_raspbian),1)
+# Disable armv6t2 and NEON on Raspbian
+confflags += --disable-armv6t2 --disable-neon
+endif
+
ifeq ($(DEB_HOST_ARCH),armel)
# this is required on Ubuntu lucid as it defaults to thumb2 and Libav has
# plenty of incompatible assembly; not sure how to detect that properly
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list