#!/usr/bin/make -f include /usr/share/dpkg/default.mk include /usr/share/python3/python.mk export HOME=$(CURDIR)/fake-home # debian package version version=$(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2) # upstream version gst_version=$(shell echo $(version) | cut -d '-' -f 1) # default version of python python_version=$(shell py3versions -d) CFLAGS += -Wno-error CXXFLAGS += -Wno-error LDFLAGS += -Wl,-z,defs -Wl,-O1 %: 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 override_dh_gencontrol: echo "PythonDevPackage=lib$(python_version)-dev" >> debian/libges-1.0-dev.substvars dh_gencontrol