#!/usr/bin/make -f include /usr/share/dpkg/default.mk include /usr/share/python3/python.mk include /usr/share/dpkg/pkg-info.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs export HOME=$(CURDIR)/fake-home # upstream version gst_version=$(shell echo $(DEB_VERSION) | cut -d '-' -f 1) # default version of python python_version=$(shell py3versions -d) %: dh $@ override_dh_auto_configure: dh_auto_configure -- \ -Dauto_features=enabled -Ddoc=disabled -Dvalidate=disabled override_dh_auto_test: ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64)) dh_auto_test else dh_auto_test || true endif execute_after_dh_shlibdeps: mkdir -p $(CURDIR)/fake-home HOME=$(CURDIR)/fake-home \ dh_girepository -pgir1.2-ges-1.2 rm -rf $(CURDIR)/fake-home override_dh_makeshlibs: dh_makeshlibs -X "/usr/lib/$(DEB_HOST_MULTIARCH)/gstreamer-1.0" -plibges-1.0-0 -V 'libges-1.0-0 (>= $(gst_version))' -- -c4 execute_before_dh_gencontrol: echo "PythonDevPackage=lib$(python_version)-dev" >> debian/libges-1.0-dev.substvars