From b8fed46b62b0970281bfd59f3c0bca4967fadbcb Mon Sep 17 00:00:00 2001 From: jkh Date: Thu, 17 Nov 1994 10:06:03 +0000 Subject: I found today that making packages for X11 ports wasn't working. Further investigation showed that prefix was erroneously set to /usr/local for X11 based ports as well, when the assumption was that they'd really go into ${X11BASE} (an /etc/make.conf variable that the user's free to set). Set X11BASE to /usr/X11R6 if the user hasn't already, and assume that the user really wants prefix to point there when the port is XMKMF based. --- Mk/bsd.port.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Mk') diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index cea2a85d1eae..8d70032e23c3 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -3,7 +3,7 @@ # bsd.port.mk - 940820 Jordan K. Hubbard. # This file is in the public domain. # -# $Id: bsd.port.mk,v 1.68 1994/11/17 00:18:28 jkh Exp $ +# $Id: bsd.port.mk,v 1.69 1994/11/17 00:25:16 jkh Exp $ # # Please view me with 4 column tabs! @@ -96,7 +96,7 @@ # tree we are and thus can't go relative. They can, of course, be overridden # by individual Makefiles. PORTSDIR?= ${DESTDIR}/usr/ports -PREFIX?= /usr/local +X11BASE?= /usr/X11R6 DISTDIR?= ${PORTSDIR}/distfiles PACKAGES?= ${PORTSDIR}/packages .if !defined(NO_WRKDIR) @@ -113,6 +113,11 @@ PATCHDIR?= ${.CURDIR}/patches SCRIPTDIR?= ${.CURDIR}/scripts FILESDIR?= ${.CURDIR}/files PKGDIR?= ${.CURDIR}/pkg +.if defined(USE_XMKMF) +PREFIX?= ${X11BASE} +.else +PREFIX?= /usr/local +.endif .if exists(${PORTSDIR}/../Makefile.inc) .include "${PORTSDIR}/../Makefile.inc" -- cgit