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 Jun 02 20:16:23 2019 +0200 (12 months ago)
parents 7cf8d56238e4
children e49c0fe6ab6c
files Makefile
line diff
     1.1 --- a/Makefile	Tue Apr 23 11:06:32 2019 +0200
     1.2 +++ b/Makefile	Sun Jun 02 20:16:23 2019 +0200
     1.3 @@ -70,6 +70,12 @@
     1.4  		--keyword=NC_:1c,2 \
     1.5  		--keyword=g_dngettext:2,3 \
     1.6  		--add-comments
     1.7 +INDICATOR_LIB := $(or \
     1.8 +		    $(shell pkg-config --exists appindicator3-0.1 && \
     1.9 +		        printf '%s\\\n' appindicator3-0.1), \
    1.10 +		    $(shell pkg-config --exists ayantana-indicator3-0.1 && \
    1.11 +		        printf '%s\\\n' ayantana-indicator3-0.1), \
    1.12 +		    appindicator3-0.1)
    1.13  
    1.14  define generate-manpage-rule =
    1.15  %.$1: %.$(addsuffix .xml,$1) docbook-update-source-data.xsl
    1.16 @@ -152,10 +158,10 @@
    1.17  			-DSETTINGS_SCHEMA_ID=\"$(APPLICATION_ID)\" \
    1.18  			-DI_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE
    1.19  $(PACKAGE): XCFLAGS =	$(shell pkg-config --cflags gtk+-3.0 \
    1.20 -			    appindicator3-0.1 packagekit-glib2 \
    1.21 +			    $(INDICATOR_LIB) packagekit-glib2 \
    1.22  			    polkit-gobject-1 upower-glib)
    1.23  $(PACKAGE): LDLIBS =	$(shell pkg-config --libs gtk+-3.0 \
    1.24 -			    appindicator3-0.1 packagekit-glib2 \
    1.25 +			    $(INDICATOR_LIB) packagekit-glib2 \
    1.26  			    polkit-gobject-1 upower-glib)
    1.27  
    1.28  $(PACKAGE)-prefs: XCPPFLAGS = -DPACKAGE=\"$(PACKAGE)\" \