]> www.fi.muni.cz Git - evince.git/commitdiff
Bug 568220 – need pkg-config file
authorChristian Persch <chpe@src.gnome.org>
Wed, 21 Jan 2009 16:58:21 +0000 (16:58 +0000)
committerChristian Persch <chpe@src.gnome.org>
Wed, 21 Jan 2009 16:58:21 +0000 (16:58 +0000)
svn path=/trunk/; revision=3372

ChangeLog
Makefile.am
configure.ac
evince-backend.pc.in [new file with mode: 0644]
evince-view.pc.in [new file with mode: 0644]

index 521b134818495f284052eb48d6cf8d82e2e1fe68..f36b2d0d6f867b6a425539bc046214360ad38841 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-01-21  Christian Persch  <chpe@gnome.org>
+
+       * Makefile.am:
+       * configure.ac:
+       A evince-{backend,view}.pc.in: Add pkgconfig files. Bug #568220.
+
 2009-01-21  Christian Persch  <chpe@gnome.org>
 
        * configure.ac:
index b2b43d30995aa4272c92a33d22d57389d3b92c5f..9fa971094203020f57201f103b435210bd80b59e 100644 (file)
@@ -14,6 +14,11 @@ if ENABLE_THUMBNAILER
 SUBDIRS += thumbnailer
 endif
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = \
+       evince-backend-$(EV_API_VERSION).pc \
+       evince-view-$(EV_API_VERSION).pc
+
 # Applications 
 
 intltool_extra = intltool-extract.in intltool-merge.in intltool-update.in
index c2cf3fbfea1ad12b46a3247dd772b0ed894b52f2..f3b9c7e884381751ee660a74ad33d08da0b51042 100644 (file)
@@ -54,6 +54,8 @@ DBUS_GLIB_REQUIRED=0.70
 GTK_REQUIRED=2.12.0
 GLIB_REQUIRED=2.18.0
 KEYRING_REQUIRED=2.22.0
+AC_SUBST([GLIB_REQUIRED])
+AC_SUBST([GTK_REQUIRED])
 
 GNOME_ICON_THEME_REQUIRED=2.17.1
 LIBXML_REQUIRED=2.5.0
@@ -481,6 +483,9 @@ test/Makefile
 thumbnailer/Makefile
 ])
 
+AC_CONFIG_FILES(evince-backend-[]ev_api_version[].pc:evince-backend.pc.in)
+AC_CONFIG_FILES(evince-view-[]ev_api_version[].pc:evince-view.pc.in)
+
 AC_OUTPUT
 
 echo "
diff --git a/evince-backend.pc.in b/evince-backend.pc.in
new file mode 100644 (file)
index 0000000..2130964
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@/evince/@EV_API_VERSION@
+
+Name: Evince Backend
+Description: GNOME document viewer backend library
+Version: @VERSION@
+Requires: gio-2.0 >= @GLIB_REQUIRED@ gtk+-2.0 >= @GTK_REQUIRED@
+Libs: -L${libdir} -levbackend
+Cflags: -I${includedir}
diff --git a/evince-view.pc.in b/evince-view.pc.in
new file mode 100644 (file)
index 0000000..28e1f73
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@/evince/@EV_API_VERSION@
+
+Name: Evince View
+Description: GNOME document viewer view library
+Version: @VERSION@
+Requires: evince-backend-@EV_API_VERSION@ = @VERSION@ gthread-2.0
+Libs: -L${libdir} -levview
+Cflags: -I${includedir}