[graph-gtk] Added pkg-config .pc file to build and installation
- From: Isaac Wagner <isaacbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [graph-gtk] Added pkg-config .pc file to build and installation
- Date: Thu, 26 Jul 2012 15:32:48 +0000 (UTC)
commit 1decb3c39faf86f3d8f3fe872dabd4691001b085
Author: Isaac Wagner <isaacbw src gnome org>
Date: Thu Jul 26 11:32:19 2012 -0400
Added pkg-config .pc file to build and installation
.gitignore | 4 +++-
Makefile.am | 5 +++++
configure.ac | 3 ++-
graph-gtk.pc.in | 12 ++++++++++++
4 files changed, 22 insertions(+), 2 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 47ec52a..7e5df6b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -25,4 +25,6 @@ ltmain.sh
m4/
stamp-h1
*.o
-simple_container
\ No newline at end of file
+simple_container
+*.pc
+*.tar.gz
\ No newline at end of file
diff --git a/Makefile.am b/Makefile.am
index 06620ae..a1fe1c6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1 +1,6 @@
SUBDIRS = graph-gtk tests
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = graph-gtk.pc
+
+EXTRA_DIST = graph-gtk.pc.in
diff --git a/configure.ac b/configure.ac
index 2d42f6c..32ebf23 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,7 +6,8 @@ AC_CONFIG_MACRO_DIR([m4])
LT_INIT
-AC_CONFIG_FILES([ Makefile
+AC_CONFIG_FILES([ graph-gtk.pc:graph-gtk.pc.in
+ Makefile
graph-gtk/Makefile
tests/Makefile ])
diff --git a/graph-gtk.pc.in b/graph-gtk.pc.in
new file mode 100644
index 0000000..605e3d8
--- /dev/null
+++ b/graph-gtk.pc.in
@@ -0,0 +1,12 @@
+prefix= prefix@
+exec_prefix= exec_prefix@
+libdir= libdir@
+includedir= includedir@
+
+
+Name: GRAPH-GTK
+Description: GRAPH MANIPULATION WIDGET
+Version: @VERSION@
+Requires: gtk+-2.0
+Libs: -L${libdir} -l PACKAGE_NAME@
+Cflags: -I${includedir}/@PACKAGE_NAME@/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]