[mate-indicator-applet] 04/07: debian/rules: Use Ubuntu Indicators on Ubuntu, Ayatana Indicators elsewhere.

Mike Gabriel sunweaver at debian.org
Tue Jan 9 11:44:58 UTC 2018


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository mate-indicator-applet.

commit 167982c56dbd94990ce0c033b7c0b72b66bac2d7
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Jan 9 09:44:38 2018 +0100

    debian/rules: Use Ubuntu Indicators on Ubuntu, Ayatana Indicators elsewhere.
---
 debian/rules | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index de67d21..002ef2a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,12 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 
+ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes),yes)
+INDICATOR_IMPLEMENTATION=--with-ubuntu-indicators=yes
+else
+INDICATOR_IMPLEMENTATION=--with-ayatana-indicators=yes
+endif
+
 %:
 	dh $@ $(DHFLAGS) --without autoreconf
 
@@ -19,7 +25,8 @@ override_dh_auto_configure:
 	NOCONFIGURE=1 ./autogen.sh
 	dh_auto_configure $(DHFLAGS) -- \
 		--disable-static \
-		--libexecdir=/usr/lib/mate-indicator-applet
+		--libexecdir=/usr/lib/mate-indicator-applet \
+                $(INDICATOR_IMPLEMENTATION)
 
 override_dh_strip:
 	dh_strip --dbgsym-migration='mate-indicator-applet-dbg (<< 1.14.0-2~)'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-indicator-applet.git



More information about the pkg-mate-commits mailing list