[gtksourceview/wip/api-version: 1/2] build: do not hardcode API version for the pkg-config file
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/api-version: 1/2] build: do not hardcode API version for the pkg-config file
- Date: Wed, 19 Oct 2016 14:50:46 +0000 (UTC)
commit ee79bd648e241a3b3b4e39719d6d77145e66f8ec
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
Makefile.am | 4 ++--
configure.ac | 2 +-
gtksourceview-3.0.pc.in => gtksourceview.pc.in | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index ed5571f..9914e6f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,11 +8,11 @@ AM_DISTCHECK_CONFIGURE_FLAGS = \
--enable-vala \
--enable-glade-catalog
-pkgconfig_DATA = gtksourceview-3.0.pc
+pkgconfig_DATA = gtksourceview-@GSV_API_VERSION@.pc
EXTRA_DIST = \
gtksourceview.doap \
- gtksourceview-3.0.pc.in \
+ gtksourceview.pc.in \
HACKING \
MAINTAINERS \
config.h.win32.in \
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]