[SCM] gpac/master: Implement DEB_BUILD_OPTIONS' noopt flag.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Sat Feb 11 11:08:39 UTC 2012


The following commit has been merged in the master branch:
commit 54e441faf55b57e5f87d99c04e86bbc016d98c44
Author: Alessio Treglia <alessio at debian.org>
Date:   Sat Feb 11 12:08:56 2012 +0100

    Implement DEB_BUILD_OPTIONS' noopt flag.

diff --git a/debian/rules b/debian/rules
index 2a60832..2041173 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,10 @@ export REPACK_SH=$(CURDIR)/debian/repack.sh
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 export GPAC_SVN_REVISION ?= $(shell dpkg-parsechangelog | grep Version | sed 's/Version:.*+svn\([0-9]\+\).*/\1/')
 
+ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
+DEB_CONFIGURE_EXTRA_FLAGS = --disable-opt
+endif
+
 %:
 	dh $@ --parallel
 
@@ -16,7 +20,8 @@ override_dh_auto_configure:
 	    --extra-cflags="-Wall -fPIC -DPIC -I/usr/include/mozjs -DXP_UNIX" \
 	    --enable-joystick \
 	    --enable-debug \
-	    --disable-ssl
+	    --disable-ssl \
+	    $(DEB_EXTRA_CONFIGURE_FLAGS)
 	echo "#define GPAC_SVN_REVISION	\"\"" >include/gpac/version.h
 
 override_dh_auto_install:

-- 
gpac packaging



More information about the pkg-multimedia-commits mailing list