This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2gomatebindings. commit b09f65f5598145472b6e721c477cb63656d6b689 Author: Mihai Moldovan <ionic@ionic.de> Date: Sat Jun 11 03:07:53 2016 +0200 debian/rules: add per-distro and per-version substitution variable for GTK library version selection. --- debian/changelog | 3 +++ debian/rules | 27 ++++++++++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index b35b64f..2dd0cd1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -28,6 +28,9 @@ x2gomatebindings (0.0.1.4-0~x2go1) UNRELEASED; urgency=low * debian/control: - Maintainer change in package: X2Go Developers <x2go-dev@lists.x2go.org>. - Whitespace only. + * debian/rules: + - Add per-distro and per-version substitution variable for GTK library + version selection. -- X2Go Release Manager <git-admin@x2go.org> Tue, 10 Feb 2015 23:48:43 +0100 diff --git a/debian/rules b/debian/rules index 48a47bc..2ce773f 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,26 @@ #!/usr/bin/make -f +ifeq ($(shell dpkg-vendor --is Debian && echo yes),yes) + RELEASE_VER = $(shell /usr/bin/lsb_release -r | /bin/sed -e 's/[ ]*//g' | /usr/bin/cut -d ':' -f '2' | /usr/bin/cut -d '.' -f '1') + SUBSTVARS = -Vdist:Depends="libgtk-2.0-bin" + USE_GTK = 2.0 +ifeq ($(shell (( $(RELEASE_VER) >= 9 )) && echo yes),yes) + SUBSTVARS = -Vdist:Depends="libgtk-3.0-bin" + USE_GTK = 3.0 +endif +else ifeq($(shell dpkg-vendor --is Ubuntu && echo yes),yes) + RELEASE_VER_MAJOR = $(shell /usr/bin/lsb_release -r | /bin/sed -e 's/[ ]*//g' | /usr/bin/cut -d ':' -f '2' | /usr/bin/cut -d '.' -f '1') + RELEASE_VER_MINOR = $(shell /usr/bin/lsb_release -r | /bin/sed -e 's/[ ]*//g' | /usr/bin/cut -d ':' -f '2' | /usr/bin/cut -d '.' -f '2') + SUBSTVARS = -Vdist:Depends="libgtk-2.0-bin" + USE_GTK = 2.0 +ifeq ($(shell (( $(RELEASE_VER_MAJOR) >= 16 )) && echo yes),yes) +ifeq ($(shell (( $(RELEASE_VER_MINOR) >= 10 )) && echo yes),yes) + SUBSTVARS = -Vdist:Depends="libgtk-3.0-bin" + USE_GTK = 3.0 +endif +endif +endif + %: dh $@ @@ -7,7 +28,8 @@ override_dh_auto_configure: cp /usr/share/misc/config.sub . cp /usr/share/misc/config.guess . ./autogen.sh - dh_auto_configure + dh_auto_configure $(DHFLAGS) -- \ + --with-gtk=$(USE_GTK) override_dh_auto_install: make -C po DESTDIR=../debian/x2gomatebindings install @@ -23,3 +45,6 @@ override_dh_auto_clean: rm -f extension/Makefile.in rm -f config.h.in intltool-*.in rm -f compile + +override_dh_gencontrol: + dh_gencontrol -- $(SUBSTVARS) -- Alioth's /srv/git/code.x2go.org/x2gomatebindings.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2gomatebindings.git