summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-11-17 10:06:03 +0000
committerjkh <jkh@FreeBSD.org>1994-11-17 10:06:03 +0000
commitb43669fad82486a41c0f882709bec4ddaa8fa0a2 (patch)
treeb507b50bfc839a60fd80e646d861e113f9d7d12c /share
parent74b1e0b0171782131972d6a6ac3730a9c6e69b1d (diff)
downloadFreeBSD-src-b43669fad82486a41c0f882709bec4ddaa8fa0a2.zip
FreeBSD-src-b43669fad82486a41c0f882709bec4ddaa8fa0a2.tar.gz
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.
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.port.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index cea2a85..8d70032 100644
--- a/share/mk/bsd.port.mk
+++ b/share/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"
OpenPOWER on IntegriCloud