[gtksourceview/wip/api-version: 2/2] build: do not hardcode API version for the pkg-config file



commit 68ef9f97fab3989697ae7a62b3acd8766a247e41
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Oct 19 16:30:21 2016 +0200

    build: do not hardcode API version for the pkg-config file

 configure.ac                                   |    2 +-
 gtksourceview-3.0.pc.in => gtksourceview.pc.in |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b0d94fb..5a60a66 100644
--- a/configure.ac
+++ b/configure.ac
@@ -220,7 +220,7 @@ AC_SUBST(ABS_TOP_SRCDIR)
 
 # Output files
 AC_CONFIG_FILES([
-gtksourceview-3.0.pc
+gtksourceview-${GSV_API_VERSION}.pc:gtksourceview.pc.in
 Makefile
 config.h.win32
 build/Makefile
diff --git a/gtksourceview-3.0.pc.in b/gtksourceview.pc.in
similarity index 69%
rename from gtksourceview-3.0.pc.in
rename to gtksourceview.pc.in
index fb328ba..8e3b683 100644
--- a/gtksourceview-3.0.pc.in
+++ b/gtksourceview.pc.in
@@ -8,5 +8,5 @@ Description: Source code editing widget
 Version: @PACKAGE_VERSION@
 Requires: @AX_PACKAGE_REQUIRES@
 Requires.private: @AX_PACKAGE_REQUIRES_PRIVATE@
-Libs: -L${libdir} -lgtksourceview-3.0
-Cflags: -I${includedir}/gtksourceview-3.0
+Libs: -L${libdir} -lgtksourceview-@GSV_API_VERSION@
+Cflags: -I${includedir}/gtksourceview-@GSV_API_VERSION@


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