Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Added npth pkgconfig file |
| 2 | |
| 3 | Upstream-Status: Pending |
| 4 | |
| 5 | Signed-off-by: Saul Wold <sgw@linux.intel.com> |
| 6 | |
| 7 | Index: npth-1.1/src/npth.pc.in |
| 8 | =================================================================== |
| 9 | --- /dev/null |
| 10 | +++ npth-1.1/src/npth.pc.in |
| 11 | @@ -0,0 +1,10 @@ |
| 12 | +prefix=@prefix@ |
| 13 | +exec_prefix=@exec_prefix@ |
| 14 | +libdir=@libdir@ |
| 15 | +includedir=@includedir@ |
| 16 | + |
| 17 | +Name: npth |
| 18 | +Description: a new portable posix threading library |
| 19 | +Version: @VERSION@ |
| 20 | +Libs: -L${libdir} -lnpth -lpthread |
| 21 | +Cflags: -I${includedir} |
| 22 | Index: npth-1.1/src/Makefile.am |
| 23 | =================================================================== |
| 24 | --- npth-1.1.orig/src/Makefile.am |
| 25 | +++ npth-1.1/src/Makefile.am |
| 26 | @@ -27,8 +27,10 @@ |
| 27 | # License along with this program; if not, see <http://www.gnu.org/licenses/>. |
| 28 | |
| 29 | ## Process this file with automake to produce Makefile.in |
| 30 | +pkgconfigdir = $(libdir)/pkgconfig |
| 31 | +pkgconfig_DATA = npth.pc |
| 32 | |
| 33 | -EXTRA_DIST = libnpth.vers |
| 34 | +EXTRA_DIST = libnpth.vers npth.pc |
| 35 | # versioninfo.rc.in |
| 36 | nodist_include_HEADERS = npth.h |
| 37 | |
| 38 | Index: npth-1.1/configure.ac |
| 39 | =================================================================== |
| 40 | --- npth-1.1.orig/configure.ac |
| 41 | +++ npth-1.1/configure.ac |
| 42 | @@ -337,6 +337,7 @@ src/Makefile |
| 43 | w32/Makefile |
| 44 | tests/Makefile]) |
| 45 | AC_CONFIG_FILES(npth-config, chmod +x npth-config) |
| 46 | +AC_CONFIG_FILES([src/npth.pc]) |
| 47 | AC_OUTPUT |
| 48 | |
| 49 | echo " |