Patrick Williams | 44b3caf | 2024-04-12 16:51:14 -0500 | [diff] [blame^] | 1 | From ff19a9648f1c7d93087e2c33ca64bb881d53ea5a Mon Sep 17 00:00:00 2001 |
| 2 | From: Saul Wold <sgw@linux.intel.com> |
| 3 | Date: Mon, 10 Nov 2014 13:59:03 -0800 |
| 4 | Subject: [PATCH] Added npth pkgconfig file |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Signed-off-by: Saul Wold <sgw@linux.intel.com> |
Patrick Williams | 44b3caf | 2024-04-12 16:51:14 -0500 | [diff] [blame^] | 9 | --- |
| 10 | configure.ac | 1 + |
| 11 | src/Makefile.am | 4 +++- |
| 12 | src/npth.pc.in | 10 ++++++++++ |
| 13 | 3 files changed, 14 insertions(+), 1 deletion(-) |
| 14 | create mode 100644 src/npth.pc.in |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | |
Patrick Williams | 44b3caf | 2024-04-12 16:51:14 -0500 | [diff] [blame^] | 16 | diff --git a/configure.ac b/configure.ac |
| 17 | index 10f3629..65b76a1 100644 |
| 18 | --- a/configure.ac |
| 19 | +++ b/configure.ac |
| 20 | @@ -476,6 +476,7 @@ src/Makefile |
| 21 | w32/Makefile |
| 22 | tests/Makefile]) |
| 23 | AC_CONFIG_FILES(npth-config, chmod +x npth-config) |
| 24 | +AC_CONFIG_FILES([src/npth.pc]) |
| 25 | AC_OUTPUT |
| 26 | |
| 27 | echo " |
| 28 | diff --git a/src/Makefile.am b/src/Makefile.am |
| 29 | index 7070118..6f01c64 100644 |
| 30 | --- a/src/Makefile.am |
| 31 | +++ b/src/Makefile.am |
| 32 | @@ -17,8 +17,10 @@ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 33 | # License along with this program; if not, see <http://www.gnu.org/licenses/>. |
| 34 | |
| 35 | ## Process this file with automake to produce Makefile.in |
| 36 | +pkgconfigdir = $(libdir)/pkgconfig |
| 37 | +pkgconfig_DATA = npth.pc |
| 38 | |
| 39 | -EXTRA_DIST = libnpth.vers |
| 40 | +EXTRA_DIST = libnpth.vers npth.pc |
| 41 | # versioninfo.rc.in |
| 42 | nodist_include_HEADERS = npth.h |
| 43 | |
Patrick Williams | 44b3caf | 2024-04-12 16:51:14 -0500 | [diff] [blame^] | 44 | diff --git a/src/npth.pc.in b/src/npth.pc.in |
| 45 | new file mode 100644 |
| 46 | index 0000000..db091e8 |
| 47 | --- /dev/null |
| 48 | +++ b/src/npth.pc.in |
| 49 | @@ -0,0 +1,10 @@ |
| 50 | +prefix=@prefix@ |
| 51 | +exec_prefix=@exec_prefix@ |
| 52 | +libdir=@libdir@ |
| 53 | +includedir=@includedir@ |
| 54 | + |
| 55 | +Name: npth |
| 56 | +Description: a new portable posix threading library |
| 57 | +Version: @VERSION@ |
| 58 | +Libs: -L${libdir} -lnpth -lpthread |
| 59 | +Cflags: -I${includedir} |