summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-03-01 18:44:05 +0000
committerMarc Espie <espie@cvs.openbsd.org>1999-03-01 18:44:05 +0000
commite0bc57b28d9bcbda82835fb82dbfecbed588692b (patch)
treeac42def4394692657f1975c98481aa5fd7d5a358 /share
parent09240053c096cbb8da4f8f5a598936d1c22de54f (diff)
Work around some broken Configure (such as elm) which don't work correctly
when they're invoked with an absolute path. This was introduced by the WRKBUILD/WRKSRC split. So: - replace default CONFIGURE with a full path, so that you can override it. - remove leading ${WRKSRC} from the configure invocation. - add . to the configure path.
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.port.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index 77f2a3e4148..c98ad7b6a50 100644
--- a/share/mk/bsd.port.mk
+++ b/share/mk/bsd.port.mk
@@ -1,6 +1,6 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4
-# $OpenBSD: bsd.port.mk,v 1.71 1999/02/28 23:23:47 espie Exp $
+# $OpenBSD: bsd.port.mk,v 1.72 1999/03/01 18:44:04 espie Exp $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
@@ -28,7 +28,7 @@ OpenBSD_MAINTAINER= marc@OpenBSD.ORG
# NEED_VERSION: we need at least this version of bsd.port.mk for this
# port to build
-FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.71 1999/02/28 23:23:47 espie Exp $$
+FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.72 1999/03/01 18:44:04 espie Exp $$
.if defined(NEED_VERSION)
_VERSION_REVISION=${FULL_REVISION:M[0-9]*.*}
@@ -879,8 +879,8 @@ PKGFILE?= ${PKGREPOSITORY}/${PKGNAME}${PKG_SUFX}
PKGFILE?= ${PKGNAME}${PKG_SUFX}
.endif
-CONFIGURE_SCRIPT?= configure
-CONFIGURE_ENV+= PATH=${PORTPATH}
+CONFIGURE_SCRIPT?= ${WRKSRC}/configure
+CONFIGURE_ENV+= PATH=.:${PORTPATH}
.if defined(GNU_CONFIGURE)
CONFIGURE_ARGS+= --prefix=${PREFIX}
@@ -1289,7 +1289,7 @@ do-configure: ${WRKBUILD}
INSTALL="/usr/bin/install -c -o ${BINOWN} -g ${BINGRP}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" INSTALL_MAN="${INSTALL_MAN}" \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" INSTALL_DATA="${INSTALL_DATA}" \
- ${CONFIGURE_ENV} ${WRKSRC}/${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
+ ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
.endif
.if defined(USE_IMAKE)
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${XMKMF})