Mercurial > projects > package-update-indicator
changeset 22:b6cc1cdca785
Add support for libayantana-indicator
Prefer libappindicator and fall back to libayantana-indicator.
author | Guido Berhoerster <guido+pui@berhoerster.name> |
---|---|
date | Sun, 02 Jun 2019 20:16:23 +0200 |
parents | 7cf8d56238e4 |
children | e49c0fe6ab6c |
files | Makefile |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Tue Apr 23 11:06:32 2019 +0200 +++ b/Makefile Sun Jun 02 20:16:23 2019 +0200 @@ -70,6 +70,12 @@ --keyword=NC_:1c,2 \ --keyword=g_dngettext:2,3 \ --add-comments +INDICATOR_LIB := $(or \ + $(shell pkg-config --exists appindicator3-0.1 && \ + printf '%s\\\n' appindicator3-0.1), \ + $(shell pkg-config --exists ayantana-indicator3-0.1 && \ + printf '%s\\\n' ayantana-indicator3-0.1), \ + appindicator3-0.1) define generate-manpage-rule = %.$1: %.$(addsuffix .xml,$1) docbook-update-source-data.xsl @@ -152,10 +158,10 @@ -DSETTINGS_SCHEMA_ID=\"$(APPLICATION_ID)\" \ -DI_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE $(PACKAGE): XCFLAGS = $(shell pkg-config --cflags gtk+-3.0 \ - appindicator3-0.1 packagekit-glib2 \ + $(INDICATOR_LIB) packagekit-glib2 \ polkit-gobject-1 upower-glib) $(PACKAGE): LDLIBS = $(shell pkg-config --libs gtk+-3.0 \ - appindicator3-0.1 packagekit-glib2 \ + $(INDICATOR_LIB) packagekit-glib2 \ polkit-gobject-1 upower-glib) $(PACKAGE)-prefs: XCPPFLAGS = -DPACKAGE=\"$(PACKAGE)\" \