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

This commit is contained in:
Marco Villegas 2010-12-22 04:02:18 -05:00
parent 40c44d2fb6
commit bd6eb23022

View File

@ -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',