aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2011-10-18 13:15:29 +0200
committerSylvain Munaut <tnt@246tNt.com>2011-10-18 13:15:29 +0200
commitca36f293648ee19056df7ea9a1cbfcc93c800dc8 (patch)
tree0ff9059e82a4bcfb58010241da01f1a2be72bcf3
parent3a4c67b4bf0067c4949a60bc750d01e0576c5e08 (diff)
build: Add a proper pkgconfig libgtp.pc for the GTP library
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--Makefile.am3
-rw-r--r--configure.in1
-rw-r--r--libgtp.pc.in11
3 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 581e1bd..960ca07 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,2 +1,5 @@
## Process this file with automake to produce Makefile.in
SUBDIRS = lib gtp ggsn sgsnemu doc
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libgtp.pc
diff --git a/configure.in b/configure.in
index 36a5cbe..3aa6909 100644
--- a/configure.in
+++ b/configure.in
@@ -115,5 +115,6 @@ AC_CONFIG_FILES([Makefile
sgsnemu/Makefile
src/Makefile
tests/Makefile
+ libgtp.pc
openggsn.spec])
AC_OUTPUT
diff --git a/libgtp.pc.in b/libgtp.pc.in
new file mode 100644
index 0000000..2201608
--- /dev/null
+++ b/libgtp.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: OpenGGSN STP Library
+Description: C Utility Library
+Version: @VERSION@
+Libs: -L${libdir} -lgtp
+Cflags: -I${includedir}/
+