aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1998-10-07 05:12:14 +0800
committerasami <asami@FreeBSD.org>1998-10-07 05:12:14 +0800
commit02546417bb5082570460e86d9b083872b70fd105 (patch)
tree715c88f661aee8cc4182fd3a500b06ea55666b36 /Mk/bsd.port.mk
parent4df4ced20399b601d978f06d36a2d041b5d7dd6d (diff)
downloadfreebsd-ports-gnome-02546417bb5082570460e86d9b083872b70fd105.tar.gz
freebsd-ports-gnome-02546417bb5082570460e86d9b083872b70fd105.tar.zst
freebsd-ports-gnome-02546417bb5082570460e86d9b083872b70fd105.zip
(1) Add new variable ${PERL} which is equal to ${PERL5} but without the
version number part (i.e., "<directory>/perl"). Use this to substitute #! lines in your perl5 scripts. Requested and reviewed by: ache (2) Add new variable WRKDIRPREFIX (defaults to ""). The "work" directories are now in ${WRKDIRPREFIX}${.CURDIR}/work by default. You can have a read-only ports tree (modulo any broken ports that write something to places other than ${WRKDIR}) by setting this to a writable location. Ports that set WRKDIR explicitly should append this to front so they will work when the user has WRKDIRPREFIX set. Reviewed by: Toshihiko Kodama <kodama@ayame.mfd.cs.fujitsu.co.jp>
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk15
1 files changed, 11 insertions, 4 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 10b195a1898a..c50a8ca556c0 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1,7 +1,7 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4
#
-# $Id: bsd.port.mk,v 1.290 1998/09/17 01:22:05 asami Exp $
+# $Id: bsd.port.mk,v 1.291 1998/09/22 23:58:49 asami Exp $
# $NetBSD: $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
@@ -112,6 +112,9 @@ OpenBSD_MAINTAINER= imp@OpenBSD.ORG
# USE_PERL5 - Says that the port uses perl5 for building and running.
# PERL5 - Set to full path of perl5, either in the system or
# installed from a port.
+# PERL - Set to full path of perl5, either in the system or
+# installed from a port, but without the version number.
+# Use this if you need to replace "#!" lines in scripts.
# PERL_VERSION - Full version of perl5 (see below for current value).
# PERL_VER - Short version of perl5 (see below for current value).
# USE_IMAKE - Says that the port uses imake. Implies USE_X_PREFIX.
@@ -174,8 +177,10 @@ OpenBSD_MAINTAINER= imp@OpenBSD.ORG
# (default: ${PORTSDIR}/distfiles).
# PACKAGES - A top level directory where all packages go (rather than
# going locally to each port). (default: ${PORTSDIR}/packages).
+# WRKDIRPREFIX - The place to root the temporary working directory
+# hierarchy (default: none).
# WRKDIR - A temporary working directory that gets *clobbered* on clean
-# (default: ${.CURDIR}/work).
+# (default: ${WRKDIRPREFIX}${.CURDIR}/work).
# WRKSRC - A subdirectory of ${WRKDIR} where the distribution actually
# unpacks to. (Default: ${WRKDIR}/${DISTNAME} unless
# NO_WRKSUBDIR is set, in which case simply ${WRKDIR}).
@@ -425,9 +430,9 @@ _DISTDIR?= ${DISTDIR}/${DIST_SUBDIR}
PACKAGES?= ${PORTSDIR}/packages
TEMPLATES?= ${PORTSDIR}/templates
.if !defined(NO_WRKDIR)
-WRKDIR?= ${.CURDIR}/work
+WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work
.else
-WRKDIR?= ${.CURDIR}
+WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}
.endif
.if defined(NO_WRKSUBDIR)
WRKSRC?= ${WRKDIR}
@@ -522,8 +527,10 @@ PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \
@${FALSE}
.endif
PERL5= /usr/bin/perl${PERL_VERSION}
+PERL= /usr/bin/perl
.else
PERL5= ${LOCALBASE}/bin/perl${PERL_VERSION}
+PERL= ${LOCALBASE}/bin/perl
.if defined(USE_PERL5)
BUILD_DEPENDS+= perl${PERL_VERSION}:${PORTSDIR}/lang/perl5
RUN_DEPENDS+= perl${PERL_VERSION}:${PORTSDIR}/lang/perl5