Commit bd6eb23022e0f8d8bbd04d587f402731294f8a68

Marco Villegas 2010-12-22T04:02:18

minor: Let waf write the right values for prefix and libdir at pkg-config file.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/wscript b/wscript
index 104de86..5581631 100644
--- a/wscript
+++ b/wscript
@@ -124,7 +124,7 @@ def build_library(bld, lib_str):
 
     # On Unix systems, build the Pkg-config entry file
     if bld.env.PLATFORM == 'unix':
-        bld(rule="""sed -e 's#@prefix@#$(prefix)#' -e 's#@libdir@#$(libdir)#' < ${SRC} > ${TGT}""",
+        bld(rule="""sed -e 's#@prefix@#${PREFIX}#' -e 's#@libdir@#${LIBDIR}#' < ${SRC} > ${TGT}""",
             source='libgit2.pc.in',
             target='libgit2.pc',
             install_path='${LIBDIR}/pkgconfig',