Play it safe and change the sed script so that -E isn't needed.

This commit is contained in:
cube 2008-09-15 18:21:48 +00:00
parent 664f39465e
commit e8a45a91fe
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.x11.mk,v 1.66 2008/09/15 08:05:19 rtr Exp $
# $NetBSD: bsd.x11.mk,v 1.67 2008/09/15 18:21:48 cube Exp $
.include <bsd.init.mk>
@ -267,7 +267,7 @@ pkgconfig-install: ${_PKGDEST.${_pkg}}
_pkg_version=$$(${PRINT_PACKAGE_VERSION} \
${PKGDIST.${.PREFIX}}/configure); \
fi; \
${TOOL_SED} -E \
${TOOL_SED} \
-e "s,@prefix@,${X11ROOTDIR},; \
s,@INSTALL_DIR@,${X11ROOTDIR},; \
s,@exec_prefix@,\\$$\{prefix\},; \
@ -299,7 +299,7 @@ pkgconfig-install: ${_PKGDEST.${_pkg}}
s,@XTHREADLIB@,-lpthread,; \
s,@fchown_define@,-DHAS_FCHOWN,; \
s,@sticky_bit_define@,-DHAS_STICKY_DIR_BIT," \
-e '/^Libs:/ s%-L([^[:space:]]+)%-Wl,-R\1 &%g' \
-e '/^Libs:/ s%-L\([^ ]*\)%-Wl,-R\1 &%g' \
< ${.IMPSRC} > ${.TARGET}.tmp && \
mv -f ${.TARGET}.tmp ${.TARGET}