#!/usr/bin/make -f
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
DEB_PKG_CONFIG_LIBDIR=$(shell pkg-config gobject-introspection-1.0 --variable libdir | sed -e 's/.//')
%:
dh $@ --parallel --with=autoreconf,gir,gnome,python2,python3
override_dh_autoreconf:
NOCONFIGURE=1 dh_autoreconf --as-needed ./autogen.sh
override_dh_auto_configure:
dh_auto_configure -- --enable-gtk-doc
override_dh_gnome_clean:
dh_gnome_clean --no-control
override_dh_install:
sed 's@DEB_PKG_CONFIG_LIBDIR@${DEB_PKG_CONFIG_LIBDIR}@' debian/gir1.2-xapp-1.0.install.in > debian/gir1.2-xapp-1.0.install
# install the python3 gir override file as well
PYTHON=python3 ./configure --prefix=/usr
cd pygobject/ && DESTDIR=../debian/tmp make install && cd ..
dh_install --list-missing