debian swirl logo

Back to the packages list vte

#!/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 $(PY_VERSIONS)

include /usr/share/cdbs/1/rules/autoreconf.mk
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_CONFIGURE_LIBEXECDIR := \$${prefix}/lib/$(libvteN)
DEB_FIXPERMS_EXCLUDE += gnome-pty-helper
DEB_DH_MAKESHLIBS_ARGS_$(libvteN) += -V '$(libvteN) (>= 1:0.28.0)' --add-udeb=$(udeb)

DEB_CONFIGURE_EXTRA_FLAGS += PYTHON="/usr/bin/$(cdbs_make_curflavor)"

DEB_CONFIGURE_FLAGS_main += \
		--disable-python

DEB_CONFIGURE_FLAGS_udeb += \
		--disable-python \
		--disable-gnome-pty-helper \
		--disable-gtk-doc \
		--without-ncurses

DEB_MAKE_DESTDIRSKEL = $(CURDIR)/debian/tmp
DEB_MAKE_DESTDIRSKEL_udeb = $(CURDIR)/debian/tmp/udeb

DEB_DH_INSTALL_ARGS_$(udeb) += --sourcedir=debian/tmp/udeb

# FIXME: not honoured
#CFLAGS_udeb += $(CFLAGS) -Os
CFLAGS += $(if $(findstring udeb,$(cdbs_make_curflavor)),-Os)

binary-install/python-vte::
		dh_python2 -ppython-vte

Builds:

libvte9
terminal emulator widget for gtk+ 2.0 - runtime files
libvte9-udeb
terminal emulator widget for gtk+ 2.0 - minimal runtime
libvte-common
terminal emulator widget for gtk+ 2.x - common files
libvte-dev
terminal emulator widget for gtk+ 2.0 - development files
libvte-doc
terminal emulator widget for gtk+ 2.x - documentation
python-vte
python bindings for the vte widget set