From: Christian Persch Date: Sun, 25 Jan 2009 19:37:16 +0000 (+0000) Subject: Bug 569082 – use versioned directory for backends X-Git-Tag: EVINCE_2_25_90~25 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=d8e0f342c454da540242925c83a218d6c24be3dd;p=evince.git Bug 569082 – use versioned directory for backends * configure.ac: Define ev_binary_version and backenddir. * evince-document.pc.in: Add backenddir variable. * libdocument/Makefile.am: * backend/*/Makefile.am: Remove backenddir definition, so it picks up the one from configure. svn path=/trunk/; revision=3382 --- diff --git a/ChangeLog b/ChangeLog index 06446f8e..6cf8b244 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2009-01-25 Christian Persch + + Bug 569082 – use versioned directory for backends + + * configure.ac: Define ev_binary_version and backenddir. + * evince-document.pc.in: Add backenddir variable. + * libdocument/Makefile.am: + * backend/*/Makefile.am: Remove backenddir definition, so it picks + up the one from configure. + 2009-01-25 Christian Persch * configure.ac: diff --git a/backend/comics/Makefile.am b/backend/comics/Makefile.am index 36a65ae7..34f1ad6b 100644 --- a/backend/comics/Makefile.am +++ b/backend/comics/Makefile.am @@ -1,5 +1,3 @@ -backenddir = $(libdir)/evince/backends - INCLUDES = \ -I$(top_srcdir) \ -I$(top_srcdir)/libdocument \ diff --git a/backend/djvu/Makefile.am b/backend/djvu/Makefile.am index 1b94646e..9b460f4a 100644 --- a/backend/djvu/Makefile.am +++ b/backend/djvu/Makefile.am @@ -1,5 +1,3 @@ -backenddir = $(libdir)/evince/backends - INCLUDES = \ -I$(top_srcdir) \ -I$(top_srcdir)/libdocument \ diff --git a/backend/dvi/Makefile.am b/backend/dvi/Makefile.am index 72afd6a1..5a9d4df1 100644 --- a/backend/dvi/Makefile.am +++ b/backend/dvi/Makefile.am @@ -1,7 +1,5 @@ SUBDIRS = mdvi-lib -backenddir = $(libdir)/evince/backends - INCLUDES = \ -I$(top_srcdir) \ -I$(top_srcdir)/libdocument \ diff --git a/backend/impress/Makefile.am b/backend/impress/Makefile.am index b7deeb7b..d6213f73 100644 --- a/backend/impress/Makefile.am +++ b/backend/impress/Makefile.am @@ -1,5 +1,3 @@ -backenddir = $(libdir)/evince/backends - INCLUDES = \ -I$(top_srcdir) \ -I$(top_srcdir)/libdocument \ diff --git a/backend/pdf/Makefile.am b/backend/pdf/Makefile.am index 10272c89..34103e65 100644 --- a/backend/pdf/Makefile.am +++ b/backend/pdf/Makefile.am @@ -1,5 +1,3 @@ -backenddir = $(libdir)/evince/backends - INCLUDES = \ -I$(top_srcdir) \ -I$(top_srcdir)/libdocument \ diff --git a/backend/pixbuf/Makefile.am b/backend/pixbuf/Makefile.am index decc8da9..016ea8ef 100644 --- a/backend/pixbuf/Makefile.am +++ b/backend/pixbuf/Makefile.am @@ -1,5 +1,3 @@ -backenddir = $(libdir)/evince/backends - INCLUDES = \ -I$(top_srcdir) \ -I$(top_srcdir)/libdocument \ diff --git a/backend/ps/Makefile.am b/backend/ps/Makefile.am index 0bc6990d..b6c21f65 100644 --- a/backend/ps/Makefile.am +++ b/backend/ps/Makefile.am @@ -1,5 +1,3 @@ -backenddir = $(libdir)/evince/backends - INCLUDES = \ -I$(top_srcdir) \ -I$(top_srcdir)/libdocument \ diff --git a/backend/tiff/Makefile.am b/backend/tiff/Makefile.am index 79ec11e0..0858b6c1 100644 --- a/backend/tiff/Makefile.am +++ b/backend/tiff/Makefile.am @@ -1,5 +1,3 @@ -backenddir = $(libdir)/evince/backends - INCLUDES = \ -I$(top_srcdir) \ -I$(top_srcdir)/libdocument \ diff --git a/configure.ac b/configure.ac index a19f8fb0..644eb9d3 100644 --- a/configure.ac +++ b/configure.ac @@ -34,6 +34,9 @@ m4_define([ev_view_lt_age],[0]) m4_define([ev_view_lt_version_info],[ev_view_lt_current:ev_view_lt_revision:ev_view_lt_age]) m4_define([ev_view_lt_current_minus_age],[m4_eval(ev_view_lt_current - ev_view_lt_age)]) +# Binary version for the document backends +m4_define([ev_binary_version],[ev_document_lt_current]) + # ***************************************************************************** AC_PREREQ([2.57]) @@ -449,6 +452,10 @@ AC_SUBST(EVINCE_MIME_TYPES) AC_CHECK_FUNC(localtime_r, AC_DEFINE(HAVE_LOCALTIME_R, 1, [Defines if localtime_r is available on your system])) +# Backends directory + +AC_SUBST([backenddir],"\$(libdir)/evince/ev_binary_version/backends") + # Versioning AC_SUBST([EV_MAJOR_VERSION],[ev_major_version]) @@ -456,6 +463,7 @@ AC_SUBST([EV_MINOR_VERSION],[ev_minor_version]) AC_SUBST([EV_MICRO_VERSION],[ev_micro_version]) AC_SUBST([EV_API_VERSION],[ev_api_version]) +AC_SUBST([EV_BINARY_VERSION],[ev_binary_version]) AC_SUBST([EV_DOCUMENT_LT_VERSION_INFO],[ev_document_lt_version_info]) AC_SUBST([EV_DOCUMENT_LT_CURRENT_MINUS_AGE],[ev_document_lt_current_minus_age]) diff --git a/evince-document.pc.in b/evince-document.pc.in index 07536df3..537fb73a 100644 --- a/evince-document.pc.in +++ b/evince-document.pc.in @@ -2,6 +2,7 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@/evince/@EV_API_VERSION@ +backenddir=@libdir@/evince/@EV_BINARY_VERSION@/backends Name: Evince Document Description: GNOME document viewer backend library diff --git a/libdocument/Makefile.am b/libdocument/Makefile.am index 0580c622..94b049f5 100644 --- a/libdocument/Makefile.am +++ b/libdocument/Makefile.am @@ -77,7 +77,7 @@ libevdocument_la_CPPFLAGS = \ -DG_LOG_DOMAIN=\"EvDocument\" \ -DEVINCE_UIDIR=\"$(pkgdatadir)\" \ -DGNOMELOCALEDIR=\"$(datadir)/locale\" \ - -DEV_BACKENDSDIR=\"$(libdir)/evince/backends\" \ + -DEV_BACKENDSDIR=\"$(backenddir)\" \ -DEVINCE_COMPILATION \ $(AM_CPPFLAGS)