zlib: Quote BUILDLINK_PREFIX.zlib with `:Q' operator in fake-zlib-pc target
Properly quote BUILDLINK_PREFIX.zlib via the `:Q' operator. Pointed out by <prlw1> via pkgsrc-changes@ and discussed with <joerg>, thanks!
This commit is contained in:
parent
c71f95ec25
commit
155409ffb5
1 changed files with 7 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: builtin.mk,v 1.13 2017/04/04 08:57:33 adam Exp $
|
||||
# $NetBSD: builtin.mk,v 1.14 2018/06/08 07:51:33 leot Exp $
|
||||
|
||||
BUILTIN_PKG:= zlib
|
||||
|
||||
|
@ -93,7 +93,7 @@ _FAKE_ZLIB_PC=${BUILDLINK_DIR}/lib/pkgconfig/zlib.pc
|
|||
fake-zlib-pc:
|
||||
${RUN} \
|
||||
sedsrc=../../devel/zlib/files/zlib.pc.in; \
|
||||
src=${BUILDLINK_PREFIX.zlib}/lib${LIBABISUFFIX}/pkgconfig/zlib.pc;\
|
||||
src=${BUILDLINK_PREFIX.zlib:Q}/lib${LIBABISUFFIX}/pkgconfig/zlib.pc;\
|
||||
dst=${_FAKE_ZLIB_PC}; \
|
||||
${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig;\
|
||||
if [ ! -f $${dst} ]; then \
|
||||
|
@ -102,12 +102,12 @@ fake-zlib-pc:
|
|||
${LN} -sf $${src} $${dst}; \
|
||||
else \
|
||||
${ECHO_BUILDLINK_MSG} "Creating $${dst}"; \
|
||||
${SED} -e s,@prefix@,${BUILDLINK_PREFIX.zlib},\
|
||||
-e s,@exec_prefix@,${BUILDLINK_PREFIX.zlib},\
|
||||
-e s,@libdir@,${BUILDLINK_PREFIX.zlib}/lib${LIBABISUFFIX},\
|
||||
${SED} -e s,@prefix@,${BUILDLINK_PREFIX.zlib:Q},\
|
||||
-e s,@exec_prefix@,${BUILDLINK_PREFIX.zlib:Q},\
|
||||
-e s,@libdir@,${BUILDLINK_PREFIX.zlib:Q}/lib${LIBABISUFFIX},\
|
||||
-e s,@VERSION@,${BUILTIN_VERSION.zlib},\
|
||||
-e s,@includedir@,${BUILDLINK_PREFIX.zlib}/include,\
|
||||
-e s,@sharedlibdir@,${BUILDLINK_PREFIX.zlib}/lib,\
|
||||
-e s,@includedir@,${BUILDLINK_PREFIX.zlib:Q}/include,\
|
||||
-e s,@sharedlibdir@,${BUILDLINK_PREFIX.zlib:Q}/lib,\
|
||||
$${sedsrc} > $${dst}; \
|
||||
fi \
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue