[SCM] vlc/master: Remove stuff that is handled by dpkg-dev and debhelper

sramacher at users.alioth.debian.org sramacher at users.alioth.debian.org
Fri Jan 1 14:03:18 UTC 2016


The following commit has been merged in the master branch:
commit 6e026fabfed98e5bc6cebc4108b60fc4f77fc6c2
Author: Sebastian Ramacher <sramacher at debian.org>
Date:   Fri Jan 1 12:59:46 2016 +0100

    Remove stuff that is handled by dpkg-dev and debhelper

diff --git a/debian/changelog b/debian/changelog
index 39f6213..e8e7f1b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+vlc (2.2.1-6) UNRELEASED; urgency=medium
+
+  * 
+
+ -- Sebastian Ramacher <sramacher at debian.org>  Sun, 20 Dec 2015 00:47:31 +0100
+
 vlc (2.2.1-5) unstable; urgency=medium
 
   * debian/control:
diff --git a/debian/rules b/debian/rules
index 8505f93..ccccd14 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,19 +2,8 @@
 
 export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
 
-DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
-DEB_HOST_ARCH_CPU  ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
-DEB_HOST_ARCH_OS   ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
-DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-VERSION = $(shell dpkg-parsechangelog|sed -n 's/^Version: //p')
-DEBIAN_VERSION = $(shell echo $(VERSION)|sed -nr 's/[^:]+://; s/.*-([^-]+$$)/\1/p')
-
-ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
-confflags := --build=$(DEB_BUILD_GNU_TYPE)
-else
-confflags := --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
-endif
+include /usr/share/dpkg/pkg-info.mk
+include /usr/share/dpkg/architecture.mk
 
 ifneq (,$(filter debug,$(DEB_BUILD_OPTIONS)))
 confflags += --enable-debug
@@ -24,13 +13,8 @@ ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
 confflags += --disable-optimizations --disable-mmx --disable-sse --disable-altivec
 endif
 
-CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
-CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
-
 # configure flags
 confflags += \
-	CPPFLAGS="$(shell dpkg-buildflags --get CPPFLAGS)" \
-	LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" \
 	--config-cache \
 	--disable-maintainer-mode \
 	--disable-silent-rules \
@@ -40,7 +24,7 @@ confflags += \
 	--docdir=/usr/share/doc/vlc-nox \
 	--libdir=/usr/lib \
 	--sysconfdir=/etc \
-	--with-binary-version=$(DEBIAN_VERSION) \
+	--with-binary-version=$(DEB_VERSION) \
 	$(NULL)
 # configure features
 confflags += \
@@ -233,14 +217,12 @@ endif
 
 # PowerPCSPE specific optimizations
 ifeq (,$(filter-out powerpcspe,$(DEB_HOST_ARCH)))
-CFLAGS += -mtune=8548
-CXXFLAGS += -mtune=8548
+DEB_CFLAGS_MAINT_APPEND += -mtune=8548
+DEB_CXXFLAGS_MAINT_APPEND += -mtune=8548
 endif
 
-confflags += \
-	CFLAGS="$(CFLAGS)" \
-	CXXFLAGS="$(CXXFLAGS)" \
-	$(NULL)
+export DEB_CFLAGS_MAINT_APPEND
+export DEB_CXXFLAGS_MAINT_APPEND
 
 %:
 	dh $@ --parallel --with autoreconf

-- 
VLC media player packaging



More information about the pkg-multimedia-commits mailing list