summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorzuntum <zuntum>2001-06-27 11:40:25 +0000
committerzuntum <zuntum>2001-06-27 11:40:25 +0000
commit20d9d737f42b8f87466e40521dfd6d0996d9a8fe (patch)
treeade2f06b958f4cd241a792a0abfed061fad18fae /mk
parentb5be48cdfda062a37499e635a85df5aadabb2119 (diff)
downloadpkgsrc-20d9d737f42b8f87466e40521dfd6d0996d9a8fe.tar.gz
o move REPLACE_PERL code to more proper location -- to the do-patch target;
now it works when NO_CONFIGURE is set
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk30
1 files changed, 15 insertions, 15 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 2be80a3fcf7..2f894e9f0c2 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.769 2001/06/27 11:24:15 zuntum Exp $
+# $NetBSD: bsd.pkg.mk,v 1.770 2001/06/27 11:40:25 zuntum Exp $
#
# This file is in the public domain.
#
@@ -1435,16 +1435,14 @@ do-patch: uptodate-digest
fi; \
fi; \
fi
-.endif
-
-# Configure
-.if !target(do-configure)
-do-configure:
-.if defined(REPLACE_NCURSES) && (!defined(NEED_NCURSES) || ${NEED_NCURSES} == "NO")
-.for f in ${REPLACE_NCURSES}
+.if defined(REPLACE_PERL)
+.for f in ${REPLACE_PERL}
${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; if [ -f ${f} ]; then \
- ${SED} -e "s/ncurses/curses/g" ${f} > ${f}.new; \
+ ${SED} -e "s,/usr/bin/perl,${PERL5},g" \
+ -e "s,/usr/local/bin/perl,${PERL5},g" \
+ -e "s,/usr/pkg/bin/perl,${PERL5},g" \
+ ${f} > ${f}.new; \
if [ -x ${f} ]; then \
${CHMOD} a+x ${f}.new; \
fi; \
@@ -1452,14 +1450,16 @@ do-configure:
fi
.endfor
.endif
+.endif
-.if defined(REPLACE_PERL)
-.for f in ${REPLACE_PERL}
+# Configure
+
+.if !target(do-configure)
+do-configure:
+.if defined(REPLACE_NCURSES) && (!defined(NEED_NCURSES) || ${NEED_NCURSES} == "NO")
+.for f in ${REPLACE_NCURSES}
${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; if [ -f ${f} ]; then \
- ${SED} -e "s,/usr/bin/perl,${PERL5},g" \
- -e "s,/usr/local/bin/perl,${PERL5},g" \
- -e "s,/usr/pkg/bin/perl,${PERL5},g" \
- ${f} > ${f}.new; \
+ ${SED} -e "s/ncurses/curses/g" ${f} > ${f}.new; \
if [ -x ${f} ]; then \
${CHMOD} a+x ${f}.new; \
fi; \