summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/npth/npth/pkgconfig.patch
blob: e736921b43d2a6e07298a0deb405f7bf325bd7fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
From ff19a9648f1c7d93087e2c33ca64bb881d53ea5a Mon Sep 17 00:00:00 2001
From: Saul Wold <sgw@linux.intel.com>
Date: Mon, 10 Nov 2014 13:59:03 -0800
Subject: [PATCH] Added npth pkgconfig file

Upstream-Status: Pending

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 configure.ac    |  1 +
 src/Makefile.am |  4 +++-
 src/npth.pc.in  | 10 ++++++++++
 3 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 src/npth.pc.in

diff --git a/configure.ac b/configure.ac
index 10f3629..65b76a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -476,6 +476,7 @@ src/Makefile
 w32/Makefile
 tests/Makefile])
 AC_CONFIG_FILES(npth-config, chmod +x npth-config)
+AC_CONFIG_FILES([src/npth.pc])
 AC_OUTPUT
 
 echo "
diff --git a/src/Makefile.am b/src/Makefile.am
index 7070118..6f01c64 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -17,8 +17,10 @@
 # License along with this program; if not, see <http://www.gnu.org/licenses/>.
 
 ## Process this file with automake to produce Makefile.in
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = npth.pc
 
-EXTRA_DIST = libnpth.vers
+EXTRA_DIST = libnpth.vers npth.pc
 #	     versioninfo.rc.in
 nodist_include_HEADERS = npth.h
 
diff --git a/src/npth.pc.in b/src/npth.pc.in
new file mode 100644
index 0000000..db091e8
--- /dev/null
+++ b/src/npth.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: npth
+Description: a new portable posix threading library
+Version: @VERSION@
+Libs: -L${libdir} -lnpth -lpthread
+Cflags: -I${includedir}