| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/default.mk |
| 4 |
include /usr/share/python3/python.mk |
| 5 |
include /usr/share/dpkg/pkg-info.mk |
| 6 |
|
| 7 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 8 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs |
| 9 |
export HOME=$(CURDIR)/fake-home |
| 10 |
|
| 11 |
# upstream version |
| 12 |
gst_version=$(shell echo $(DEB_VERSION) | cut -d '-' -f 1) |
| 13 |
# default version of python |
| 14 |
python_version=$(shell py3versions -d) |
| 15 |
|
| 16 |
%: |
| 17 |
dh $@ |
| 18 |
|
| 19 |
override_dh_auto_configure: |
| 20 |
dh_auto_configure -- \ |
| 21 |
-Dauto_features=enabled -Ddoc=disabled -Dvalidate=disabled |
| 22 |
|
| 23 |
override_dh_auto_test: |
| 24 |
ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64)) |
| 25 |
dh_auto_test |
| 26 |
else |
| 27 |
dh_auto_test || true |
| 28 |
endif |
| 29 |
|
| 30 |
execute_after_dh_shlibdeps: |
| 31 |
mkdir -p $(CURDIR)/fake-home |
| 32 |
HOME=$(CURDIR)/fake-home \ |
| 33 |
dh_girepository -pgir1.2-ges-1.2 |
| 34 |
rm -rf $(CURDIR)/fake-home |
| 35 |
|
| 36 |
override_dh_makeshlibs: |
| 37 |
dh_makeshlibs -X "/usr/lib/$(DEB_HOST_MULTIARCH)/gstreamer-1.0" -plibges-1.0-0 -V 'libges-1.0-0 (>= $(gst_version))' -- -c4 |
| 38 |
|
| 39 |
execute_before_dh_gencontrol: |
| 40 |
echo "PythonDevPackage=lib$(python_version)-dev" >> debian/libges-1.0-dev.substvars |