From a691ddb05cd20baa90c80815529c2da62ce986c7 Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Wed, 16 Sep 1998 12:04:38 +0000 Subject: (1) Pass PORTOBJFORMAT in SCRIPTS_ENV too. Submitted by: "Eugene M. Kim" (2) Check for exact version of perl5 in /usr/bin and exit with error message if USE_PERL5 is defined and version does not match ${PERL_VERSION}. (3) Note LIB_DEPENDS should not have any regular expressions. Remove those in USE_XLIB and USE_QT. --- Mk/bsd.port.mk | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'Mk/bsd.port.mk') diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 3b2b0de738a2..eadbce572757 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.286 1998/08/28 18:41:04 dima Exp $ +# $Id: bsd.port.mk,v 1.287 1998/09/10 06:38:02 asami Exp $ # $NetBSD: $ # # bsd.port.mk - 940820 Jordan K. Hubbard. @@ -109,6 +109,8 @@ OpenBSD_MAINTAINER= imp@OpenBSD.ORG # AUTOCONF - Set to path of GNU autoconf if not in $PATH (default: # autoconf). # 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_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. @@ -148,12 +150,7 @@ OpenBSD_MAINTAINER= imp@OpenBSD.ORG # LIB_DEPENDS - A list of "lib:dir[:target]" tuples of other ports this # package depends on. "lib" is the name of a shared library. # make will use "ldconfig -r" to search for the -# library. Note that lib can be any regular expression, -# and you need two backslashes in front of dots (.) to -# supress its special meaning (e.g., use -# "foo\\.2\\.:${PORTSDIR}/utils/foo" to match "libfoo.2.*"). -# If the third field ("target") exists, it will be used -# instead of ${DEPENDS_TARGET}. +# library. Note that lib can not contain regular expressions. # DEPENDS - A list of "dir[:target]" tuples of other ports this # package depends on being made first. Use this only for # things that don't fall into the above four categories. @@ -389,6 +386,7 @@ PLIST_SUB+= OSREL=${OSREL} # Get the object format. PORTOBJFORMAT!= test -x /usr/bin/objformat && /usr/bin/objformat || echo aout CONFIGURE_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT} +SCRIPTS_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT} MAKE_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT} PLIST_SUB+= PORTOBJFORMAT=${PORTOBJFORMAT} @@ -517,7 +515,12 @@ PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \ PERL_VER=${PERL_VER} .if exists(/usr/bin/perl5) # 3.0-current after perl5 import -PERL5= /usr/bin/perl5 +.if !exists(/usr/bin/perl${PERL_VERSION}) && defined(USE_PERL5) +.BEGIN: + @${ECHO_MSG} "Error: you don't have the right version of perl in /usr/bin." + @${FALSE} +.endif +PERL5= /usr/bin/perl${PERL_VERSION} .else PERL5= ${LOCALBASE}/bin/perl${PERL_VERSION} .if defined(USE_PERL5) @@ -527,11 +530,11 @@ RUN_DEPENDS+= perl${PERL_VERSION}:${PORTSDIR}/lang/perl5 .endif .if defined(USE_XLIB) -LIB_DEPENDS+= X11\\.6:${PORTSDIR}/x11/XFree86 +LIB_DEPENDS+= X11.6:${PORTSDIR}/x11/XFree86 .endif .if defined(USE_QT) -LIB_DEPENDS+= qt\\.1\\.\\\(33\\\|40\\\):${PORTSDIR}/x11-toolkits/qt140 +LIB_DEPENDS+= qt.1:${PORTSDIR}/x11-toolkits/qt140 .endif .if exists(${PORTSDIR}/../Makefile.inc) -- cgit v1.2.3