pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Create a symlink to the pkgsrc perl executable in $...
details: https://anonhg.NetBSD.org/pkgsrc/rev/359fe48cf037
branches: trunk
changeset: 486586:359fe48cf037
user: minskim <minskim%pkgsrc.org@localhost>
date: Thu Dec 30 09:47:01 2004 +0000
description:
Create a symlink to the pkgsrc perl executable in ${TOOLDIR}/bin so
that native perl is never used.
Suggested by jlam@.
diffstat:
mk/tools.mk | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diffs (31 lines):
diff -r a1607917d090 -r 359fe48cf037 mk/tools.mk
--- a/mk/tools.mk Thu Dec 30 08:19:05 2004 +0000
+++ b/mk/tools.mk Thu Dec 30 09:47:01 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: tools.mk,v 1.48 2004/12/22 21:39:25 jlam Exp $
+# $NetBSD: tools.mk,v 1.49 2004/12/30 09:47:01 minskim Exp $
#
# This Makefile creates a ${TOOLS_DIR} directory and populates the bin
# subdir with tools that hide the ones outside of ${TOOLS_DIR}.
@@ -391,6 +391,21 @@
fi
.endif
+# Create a symlink from ${TOOLS_DIR}/bin/perl to ${PERL5} when USE_PERL5
+# is defined.
+.if defined(USE_PERL5)
+override-tools: ${TOOLS_DIR}/bin/perl
+. if !target(${TOOLS_DIR}/bin/perl)
+${TOOLS_DIR}/bin/perl:
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ src="${PERL5}"; \
+ if [ -x $$src -a ! -f ${.TARGET} ]; then \
+ ${MKDIR} ${.TARGET:H}; \
+ ${LN} -sf $$src ${.TARGET}; \
+ fi
+. endif
+.endif
+
# Always create a ${TOOLS_DIR}/bin/rpcgen to wrap the real rpcgen.
# The wrapper will correctly set the CPP environment variable to a
# stat((2)able path to a C preprocessor, then rely on the PATH to
Home |
Main Index |
Thread Index |
Old Index