From: Alessio Treglia Date: Sat, 11 Feb 2012 11:08:56 +0000 (+0100) Subject: Implement DEB_BUILD_OPTIONS' noopt flag. X-Git-Tag: archive/raspbian/1.0.1+dfsg1-4+rpi1~1^2~224 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=54e441faf55b57e5f87d99c04e86bbc016d98c44;p=gpac.git 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: