#!/usr/bin/make -f libvteN := $(shell sed -rn 's/^Package:[[:space:]]*(libvte[0-9]+)[[:space:]]*$$/\1/p' debian/control) udeb := $(libvteN)-udeb PY_VERSIONS = $(shell pyversions --requested debian/control) DEB_BUILDDIR = debian/build DEB_MAKE_FLAVORS = main udeb gtk3 $(PY_VERSIONS) include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/rules/utils.mk include /usr/share/cdbs/1/class/gnome.mk include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk -include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk DEB_FIXPERMS_EXCLUDE += gnome-pty-helper DEB_DH_MAKESHLIBS_ARGS_$(libvteN) += -V '$(libvteN) (>= 1:0.24.0)' --add-udeb=$(udeb) DEB_CONFIGURE_SCRIPT_ENV = PYTHON="/usr/bin/$(cdbs_make_curflavor)" DEB_CONFIGURE_EXTRA_FLAGS += \ --enable-glade-catalogue DEB_CONFIGURE_FLAGS_main += \ --libexecdir=/usr/lib/$(libvteN) \ --disable-python DEB_CONFIGURE_FLAGS_gtk3 += \ --libexecdir=/usr/lib/libvte2-90 \ --with-gtk=3.0 \ --enable-introspection \ --disable-python DEB_CONFIGURE_FLAGS_udeb += \ --disable-python \ --disable-gnome-pty-helper \ --disable-gtk-doc \ --without-ncurses DEB_DESTDIR = $(CURDIR)/debian/tmp$(if $(findstring udeb,$(cdbs_make_curflavor)),/udeb) # FIXME: not honoured CFLAGS_udeb += $(CFLAGS) -Os CFLAGS += $(if $(findstring udeb,$(cdbs_make_curflavor)),-Os) $(patsubst %,binary-predeb/%,$(DEB_ALL_PACKAGES)) :: dh_girepository -p$(cdbs_curpkg) binary-install/python-vte:: dh_pysupport -ppython-vte