From 621fa441983c036519b49a8a200c9ee69715856b Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Fri, 7 Jan 2005 16:28:15 +0000 Subject: define EDS's datadir, needed to get to the Locations.xml file. 2005-01-07 Rodrigo Moya * Makefile.am: define EDS's datadir, needed to get to the Locations.xml file. * calendar-weather.c (load_locations): use EDS's datadir for the Locations.xml file full path. svn path=/trunk/; revision=28273 --- plugins/calendar-weather/Makefile.am | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'plugins/calendar-weather/Makefile.am') diff --git a/plugins/calendar-weather/Makefile.am b/plugins/calendar-weather/Makefile.am index a7fb297d74..ef4e0a0b7b 100644 --- a/plugins/calendar-weather/Makefile.am +++ b/plugins/calendar-weather/Makefile.am @@ -1,15 +1,18 @@ -INCLUDES = \ - -I$(top_srcdir)/shell \ - $(EVOLUTION_CFLAGS) \ - $(EVOLUTION_CALENDAR_CFLAGS) \ - $(SOURCE_SEL_CFLAGS) \ - -DWEATHER_DATADIR=\""$(datadir)/weather"\" +eds_datadir = `pkg-config --variable=privdatadir evolution-data-server-1.2` + +INCLUDES = \ + -I$(top_srcdir)/shell \ + $(EVOLUTION_CFLAGS) \ + $(EVOLUTION_CALENDAR_CFLAGS) \ + $(SOURCE_SEL_CFLAGS) \ + -DWEATHER_DATADIR=\""$(datadir)/evolution-$(BASE_VERSION)/weather"\" \ + -DWEATHER_EDS_DATADIR=\""$(eds_datadir)/weather"\" @EVO_PLUGIN_RULE@ # These will actually install into the e-d-s share directory, but # if the plugin is disabled, we aren't going to be needing them. -weatherdatadir = $(datadir)/weather +weatherdatadir = $(datadir)/evolution-$(BASE_VERSION)/weather weatherdata_DATA = \ category_weather_cloudy_16.png \ category_weather_fog_16.png \ -- cgit v1.2.3