42 lines
1013 B
Diff
42 lines
1013 B
Diff
|
From b3072a867b0ff394863ec95cc70d296188edcd1d Mon Sep 17 00:00:00 2001
|
||
|
From: Mattias Ellert <mattias.ellert@physics.uu.se>
|
||
|
Date: Fri, 24 Jul 2020 14:52:36 +0200
|
||
|
Subject: [PATCH] Support INCLUDEDIR and LIBDIR in libxxhash.pc
|
||
|
|
||
|
---
|
||
|
Makefile | 2 ++
|
||
|
libxxhash.pc.in | 4 ++--
|
||
|
2 files changed, 4 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/Makefile b/Makefile
|
||
|
index 6852d23..89ee823 100644
|
||
|
--- a/Makefile
|
||
|
+++ b/Makefile
|
||
|
@@ -138,6 +138,8 @@ lib: libxxhash.a libxxhash
|
||
|
|
||
|
pkgconfig:
|
||
|
@$(SED) -e 's|@PREFIX@|$(PREFIX)|' \
|
||
|
+ -e 's|@INCLUDEDIR@|$(INCLUDEDIR)|' \
|
||
|
+ -e 's|@LIBDIR@|$(LIBDIR)|' \
|
||
|
-e 's|@VERSION@|$(LIBVER)|' \
|
||
|
libxxhash.pc.in >libxxhash.pc
|
||
|
|
||
|
diff --git a/libxxhash.pc.in b/libxxhash.pc.in
|
||
|
index 3f77f99..4dac3b7 100644
|
||
|
--- a/libxxhash.pc.in
|
||
|
+++ b/libxxhash.pc.in
|
||
|
@@ -3,8 +3,8 @@
|
||
|
|
||
|
prefix=@PREFIX@
|
||
|
exec_prefix=${prefix}
|
||
|
-includedir=${prefix}/include
|
||
|
-libdir=${exec_prefix}/lib
|
||
|
+includedir=@INCLUDEDIR@
|
||
|
+libdir=@LIBDIR@
|
||
|
|
||
|
Name: xxhash
|
||
|
Description: extremely fast hash algorithm
|
||
|
--
|
||
|
2.26.2
|
||
|
|