From ca36f293648ee19056df7ea9a1cbfcc93c800dc8 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Tue, 18 Oct 2011 13:15:29 +0200 Subject: [PATCH] build: Add a proper pkgconfig libgtp.pc for the GTP library Signed-off-by: Sylvain Munaut --- Makefile.am | 3 +++ configure.in | 1 + libgtp.pc.in | 11 +++++++++++ 3 files changed, 15 insertions(+) create mode 100644 libgtp.pc.in 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}/ +