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
--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: