summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-03-08 19:33:38 +0000
committerjlam <jlam@pkgsrc.org>2002-03-08 19:33:38 +0000
commit9c900fe06a3c95e71993d6c8e018a14f22455084 (patch)
treef0b383c4a6f3f40338b72fd51964810eedccc378 /mk
parent6c002eaace2595a4c98a00e5627be5dd9eb117fe (diff)
downloadpkgsrc-9c900fe06a3c95e71993d6c8e018a14f22455084.tar.gz
Use some new conventions (changes not user-visible):
FOO_SED is user-appendable. _FOO_SED = ${_FOO_PRE_SED} ${FOO_SED} ${_FOO_POST_SED} _FOO_SED is used when actually making sed(1) substitutions. This allows tweaking _FOO_{PRE,POST}_SED to alter the total sed expression.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.buildlink.mk16
1 files changed, 11 insertions, 5 deletions
diff --git a/mk/bsd.buildlink.mk b/mk/bsd.buildlink.mk
index c8121cc233e..c83964e3e8d 100644
--- a/mk/bsd.buildlink.mk
+++ b/mk/bsd.buildlink.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink.mk,v 1.55 2002/02/26 22:24:00 jlam Exp $
+# $NetBSD: bsd.buildlink.mk,v 1.56 2002/03/08 19:33:38 jlam Exp $
#
# This Makefile fragment is included by package buildlink.mk files. This
# file does the following things:
@@ -190,6 +190,10 @@ BUILDLINK_CONFIG_WRAPPER_SED?= # empty
_BUILDLINK_CONFIG_WRAPPER_POST_SED+= \
-e "s|-I${LOCALBASE}/|-I${BUILDLINK_DIR}/|g" \
-e "s|-L${LOCALBASE}/|-L${BUILDLINK_DIR}/|g"
+_BUILDLINK_CONFIG_WRAPPER_SED= \
+ ${_BUILDLINK_CONFIG_WRAPPER_PRE_SED} \
+ ${BUILDLINK_CONFIG_WRAPPER_SED} \
+ ${_BUILDLINK_CONFIG_WRAPPER_POST_SED}
_BUILDLINK_CONFIG_WRAPPER_USE: .USE
${_PKG_SILENT}${_PKG_DEBUG} \
@@ -200,8 +204,7 @@ _BUILDLINK_CONFIG_WRAPPER_USE: .USE
(${ECHO} '#!/bin/sh'; \
${ECHO} ''; \
${ECHO} '${ECHO} "`${BUILDLINK_CONFIG.${.TARGET:S/-buildlink-config-wrapper//}} $$*`" | ${SED} \'; \
- ${ECHO} ' ${BUILDLINK_CONFIG_WRAPPER_SED} \'; \
- ${ECHO} ' ${_BUILDLINK_CONFIG_WRAPPER_POST_SED}'; \
+ ${ECHO} ' ${_BUILDLINK_CONFIG_WRAPPER_SED} \'; \
) > ${BUILDLINK_CONFIG_WRAPPER.${.TARGET:S/-buildlink-config-wrapper//}}; \
${CHMOD} +x ${BUILDLINK_CONFIG_WRAPPER.${.TARGET:S/-buildlink-config-wrapper//}}; \
${ECHO} ${BUILDLINK_CONFIG.${.TARGET:S/-buildlink-config-wrapper//}} >> $${cookie}; \
@@ -338,12 +341,15 @@ REPLACE_BUILDLINK_SED?= # empty
_REPLACE_BUILDLINK_POST_SED+= \
-e "s|-I${BUILDLINK_DIR}/|-I${LOCALBASE}/|g" \
-e "s|-L${BUILDLINK_DIR}/|-L${LOCALBASE}/|g"
+_REPLACE_BUILDLINK_SED= \
+ ${_REPLACE_BUILDLINK_PRE_SED} \
+ ${REPLACE_BUILDLINK_SED} \
+ ${_REPLACE_BUILDLINK_POST_SED}
BUILDLINK_SUBST_MESSAGE.unbuildlink= \
"Fixing directory and library names in files-to-be-installed."
BUILDLINK_SUBST_FILES.unbuildlink= ${REPLACE_BUILDLINK}
-BUILDLINK_SUBST_SED.unbuildlink= ${REPLACE_BUILDLINK_SED} \
- ${_REPLACE_BUILDLINK_POST_SED} \
+BUILDLINK_SUBST_SED.unbuildlink= ${_REPLACE_BUILDLINK_SED} \
${REPLACE_LIBNAMES_SED} \
${REPLACE_RPATH_SED}