[gegl] Fix generation of gegl-major.minor.pc



commit 3c748f4e66f4c5ece8563879e023184e9f7b1cc8
Author: Michael Natterer <mitch gimp org>
Date:   Mon Apr 2 01:29:41 2012 +0200

    Fix generation of gegl-major.minor.pc

 Makefile.am  |    4 +---
 configure.ac |    7 ++++++-
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 04dbc44..5b78eaa 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,10 +18,8 @@ SUBDIRS+= docs
 endif
 
 pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = gegl-$(GEGL_MAJOR_VERSION).$(GEGL_MINOR_VERSION).pc
+pkgconfig_DATA = gegl-$(GEGL_API_VERSION).pc
 
-gegl-$(GEGL_MAJOR_VERSION).$(GEGL_MINOR_VERSION).pc: gegl.pc
-	cp $< $@
 built_dist_files = README
 
 EXTRA_DIST = 			\
diff --git a/configure.ac b/configure.ac
index e1aa873..d8ff7f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1113,9 +1113,14 @@ tests/simple/Makefile
 tests/xml/Makefile
 tests/xml/data/Makefile
 po/Makefile.in
-gegl.pc
 gegl-uninstalled.pc
 ])
+
+# Files with versions in their names
+AC_CONFIG_FILES(
+gegl-gegl_api_version.pc:gegl.pc.in
+)
+
 AC_OUTPUT
 
 dnl Print a summary of features enabled/disabled:



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