aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-03-08 11:58:57 +0100
committerMax <msuraev@sysmocom.de>2017-03-09 12:17:35 +0100
commit727295f20611bbc2d2bc5cd7341f73e0536ec46a (patch)
treeba93f08feaa0961b59c3c6d9f478c41d6bd703d0
parent1275a3f91a744e011b0dba82b09124d249c7abb5 (diff)
Add pkg-config file
We're installing header file pcuif_proto.h so it's better to use pkg-config for proper version tracking similar to the way it's done for OpenBSC. Change-Id: I0520045e5655794df152b98b9755d7cbbd334049
-rw-r--r--.gitignore2
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac1
-rw-r--r--debian/osmo-pcu.install1
-rw-r--r--osmo-pcu.pc.in10
5 files changed, 16 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 959b09b..234ef0b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -58,3 +58,5 @@ debian/osmo-pcu-dbg/
debian/osmo-pcu.substvars
debian/osmo-pcu/
debian/tmp/
+
+osmo-pcu.pc
diff --git a/Makefile.am b/Makefile.am
index 12cb478..1536016 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,3 +3,5 @@ AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6
SUBDIRS = include src examples tests
EXTRA_DIST = osmoappdesc.py
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = osmo-pcu.pc
diff --git a/configure.ac b/configure.ac
index dcde2ed..54c70ca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,6 +83,7 @@ STD_DEFINES_AND_INCLUDES="-Wall"
AC_SUBST(STD_DEFINES_AND_INCLUDES)
AC_OUTPUT(
+ osmo-pcu.pc
include/Makefile
src/Makefile
examples/Makefile
diff --git a/debian/osmo-pcu.install b/debian/osmo-pcu.install
index 768719c..54dcc63 100644
--- a/debian/osmo-pcu.install
+++ b/debian/osmo-pcu.install
@@ -1,3 +1,4 @@
etc/osmocom/osmo-pcu.cfg
usr/bin/osmo-pcu
usr/include/osmocom/pcu/pcuif_proto.h
+usr/lib/pkgconfig/osmo-pcu.pc
diff --git a/osmo-pcu.pc.in b/osmo-pcu.pc.in
new file mode 100644
index 0000000..b72e9a8
--- /dev/null
+++ b/osmo-pcu.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@/
+
+Name: OsmoPCU
+Description: Osmocom PCU implementation
+Requires:
+Version: @VERSION@
+Cflags: -I${includedir}