#!/usr/bin/make -f

#ifeq "$(DEB_BUILD_ARCH)" "armhf"
#	OPTIONS=--disable-optimize
#endif

#export DEB_CXXFLAGS_MAINT_APPEND = -fpermissive -Wno-narrowing
export UNIX=1

# external git
# https://github.com/dgilman/mp4v2/tree/cf634bb7ed2d3bd453d707a5c7896dcd6f12e458
# https://github.com/dgilman/faad2/tree/a65ecabd13a6b991781d75856e1b6870ce00fc70

%:
	dh $@ -Scmake

override_dh_clean:
	if [ -f 3rdparty/mp4v2/GNUmakefile ] ; then cd 3rdparty/mp4v2 && $(MAKE) distclean ; fi
	if [ -f 3rdparty/faad2/Makefile ] ; then cd 3rdparty/faad2 && $(MAKE) distclean ; fi

	dh_clean aacgain/config.h mpeg4ip_config.h faad2/config.h mpeg4ip_config.h

# No dbgsym packages:
override_dh_strip:
	dh_strip --no-automatic-dbgsym
