* 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
+2009-01-25 Christian Persch <chpe@gnome.org>
+
+ 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 <chpe@gnome.org>
* configure.ac:
-backenddir = $(libdir)/evince/backends
-
INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-backenddir = $(libdir)/evince/backends
-
INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
SUBDIRS = mdvi-lib
-backenddir = $(libdir)/evince/backends
-
INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-backenddir = $(libdir)/evince/backends
-
INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-backenddir = $(libdir)/evince/backends
-
INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-backenddir = $(libdir)/evince/backends
-
INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-backenddir = $(libdir)/evince/backends
-
INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-backenddir = $(libdir)/evince/backends
-
INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
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])
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])
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])
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
-DG_LOG_DOMAIN=\"EvDocument\" \
-DEVINCE_UIDIR=\"$(pkgdatadir)\" \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \
- -DEV_BACKENDSDIR=\"$(libdir)/evince/backends\" \
+ -DEV_BACKENDSDIR=\"$(backenddir)\" \
-DEVINCE_COMPILATION \
$(AM_CPPFLAGS)