comparison Makefile @ 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 513f5478a711
children 4196eacbe940
comparison
equal deleted inserted replaced
21:7cf8d56238e4 22:b6cc1cdca785
68 --keyword=N_ \ 68 --keyword=N_ \
69 --keyword=C_:1c,2 \ 69 --keyword=C_:1c,2 \
70 --keyword=NC_:1c,2 \ 70 --keyword=NC_:1c,2 \
71 --keyword=g_dngettext:2,3 \ 71 --keyword=g_dngettext:2,3 \
72 --add-comments 72 --add-comments
73 INDICATOR_LIB := $(or \
74 $(shell pkg-config --exists appindicator3-0.1 && \
75 printf '%s\\\n' appindicator3-0.1), \
76 $(shell pkg-config --exists ayantana-indicator3-0.1 && \
77 printf '%s\\\n' ayantana-indicator3-0.1), \
78 appindicator3-0.1)
73 79
74 define generate-manpage-rule = 80 define generate-manpage-rule =
75 %.$1: %.$(addsuffix .xml,$1) docbook-update-source-data.xsl 81 %.$1: %.$(addsuffix .xml,$1) docbook-update-source-data.xsl
76 $$(XSLTPROC) \ 82 $$(XSLTPROC) \
77 --xinclude \ 83 --xinclude \
150 -DPACKAGE_LOCALE_DIR="\"$(localedir)\"" \ 156 -DPACKAGE_LOCALE_DIR="\"$(localedir)\"" \
151 -DGETTEXT_PACKAGE=\"$(PACKAGE)\" \ 157 -DGETTEXT_PACKAGE=\"$(PACKAGE)\" \
152 -DSETTINGS_SCHEMA_ID=\"$(APPLICATION_ID)\" \ 158 -DSETTINGS_SCHEMA_ID=\"$(APPLICATION_ID)\" \
153 -DI_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE 159 -DI_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE
154 $(PACKAGE): XCFLAGS = $(shell pkg-config --cflags gtk+-3.0 \ 160 $(PACKAGE): XCFLAGS = $(shell pkg-config --cflags gtk+-3.0 \
155 appindicator3-0.1 packagekit-glib2 \ 161 $(INDICATOR_LIB) packagekit-glib2 \
156 polkit-gobject-1 upower-glib) 162 polkit-gobject-1 upower-glib)
157 $(PACKAGE): LDLIBS = $(shell pkg-config --libs gtk+-3.0 \ 163 $(PACKAGE): LDLIBS = $(shell pkg-config --libs gtk+-3.0 \
158 appindicator3-0.1 packagekit-glib2 \ 164 $(INDICATOR_LIB) packagekit-glib2 \
159 polkit-gobject-1 upower-glib) 165 polkit-gobject-1 upower-glib)
160 166
161 $(PACKAGE)-prefs: XCPPFLAGS = -DPACKAGE=\"$(PACKAGE)\" \ 167 $(PACKAGE)-prefs: XCPPFLAGS = -DPACKAGE=\"$(PACKAGE)\" \
162 -DAPPLICATION_ID=\"$(PREFS_APPLICATION_ID)\" \ 168 -DAPPLICATION_ID=\"$(PREFS_APPLICATION_ID)\" \
163 -DVERSION=\"$(VERSION)\" \ 169 -DVERSION=\"$(VERSION)\" \