[vinagre/plugin] The schemes for pkgconfig and vinagre-1.0.pc



commit 7f9115b0bd228caa0c86fa768c40654273f98011
Author: Jorge Pereira <jpereira gnome org>
Date:   Tue Jul 7 22:46:58 2009 -0300

    The schemes for pkgconfig and vinagre-1.0.pc

 .gitignore       |    1 +
 configure.ac     |    6 +++++-
 data/Makefile.am |   12 ++++++++++--
 3 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 72bc1e6..7f4148a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,6 +20,7 @@ data/vinagre-file.desktop
 data/vinagre-file.desktop.in
 data/vinagre-mime.xml
 data/vinagre.schemas
+data/*.pc
 data/org.gnome.Empathy.StreamTubeHandler.x_vnc.service
 depcomp
 gnome-doc-utils.make
diff --git a/configure.ac b/configure.ac
index 77784fd..461205f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,6 +2,9 @@
 
 AC_INIT(vinagre, 2.27.2, http://projects.gnome.org/vinagre/)
 
+VINAGRE_API_VERSION=1.0
+AC_SUBST(VINAGRE_API_VERSION)
+
 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
 AM_CONFIG_HEADER(config.h)
 AM_MAINTAINER_MODE
@@ -134,7 +137,7 @@ dnl active plugins for vinagre.schemas
 ACTIVE_PLUGINS="dummy"
 AC_SUBST(ACTIVE_PLUGINS)
 
-VINAGRE_IMPLIB=""
+VINAGRE_IMPLIB="-lvinagre-${VINAGRE_API_VERSION}"
 PLUGIN_LIBTOOL_FLAGS="-module -avoid-version"
 LOADER_LIBTOOL_FLAGS="-module -avoid-version"
 
@@ -154,6 +157,7 @@ Makefile
 data/Makefile
 data/vinagre.desktop.in
 data/vinagre-file.desktop.in
+data/vinagre.pc
 data/icons/Makefile
 data/pixmaps/Makefile
 help/Makefile
diff --git a/data/Makefile.am b/data/Makefile.am
index 28f430a..619f997 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -5,6 +5,12 @@ glade_DATA = vinagre.glade
 
 man_MANS = vinagre.1
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = vinagre- VINAGRE_API_VERSION@.pc
+
+vinagre- VINAGRE_API_VERSION@.pc: vinagre.pc
+	cp vinagre.pc vinagre- VINAGRE_API_VERSION@.pc
+
 uidir = $(datadir)/vinagre
 ui_DATA = vinagre-ui.xml GNOME_VinagreApplet.xml
 
@@ -37,7 +43,8 @@ endif
 CLEANFILES = \
 	$(desktop_DATA) \
 	$(mime_DATA) \
-	$(schemas_DATA)
+	$(schemas_DATA) \
+	$(pkgconfig_DATA)
 
 EXTRA_DIST = \
 	$(glade_DATA) \
@@ -45,7 +52,8 @@ EXTRA_DIST = \
 	$(ui_DATA) \
 	$(desktop_in_files) \
 	$(MIMEFILES) \
-	$(schemas_in_files)
+	$(schemas_in_files) \
+	vinagre.pc.in
 
 if TELEPATHY
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]