2000-12-29 01:23:57 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-09-29 15:05:23 +00:00
|
|
|
.if !defined(PORTSDIR)
|
|
|
|
# Autodetect if the command is being run in a ports tree that's not rooted
|
|
|
|
# in the default /usr/ports. The ../../.. case is in case ports ever grows
|
|
|
|
# a third level.
|
2014-10-01 20:52:08 +00:00
|
|
|
.for RELPATH in . .. ../.. ../../..
|
|
|
|
.if !defined(_PORTSDIR) && exists(${.CURDIR}/${RELPATH}/Mk/bsd.port.mk)
|
|
|
|
_PORTSDIR= ${.CURDIR}/${RELPATH}
|
2014-09-29 15:05:23 +00:00
|
|
|
.endif
|
2014-10-01 20:52:08 +00:00
|
|
|
.endfor
|
|
|
|
_PORTSDIR?= /usr/ports
|
|
|
|
PORTSDIR!= realpath ${_PORTSDIR}
|
2014-09-29 15:05:23 +00:00
|
|
|
.endif
|
|
|
|
|
2004-07-02 20:47:18 +00:00
|
|
|
BSDPORTMK?= ${PORTSDIR}/Mk/bsd.port.mk
|
2002-04-19 07:40:34 +00:00
|
|
|
|
2006-11-19 16:28:52 +00:00
|
|
|
# Needed to keep bsd.own.mk from reading in /etc/src.conf
|
|
|
|
# and setting MK_* variables when building ports.
|
|
|
|
_WITHOUT_SRCCONF=
|
2006-08-24 18:04:49 +00:00
|
|
|
|
2010-04-02 06:55:31 +00:00
|
|
|
# Enable CTF conversion on request.
|
|
|
|
.if defined(WITH_CTF)
|
|
|
|
.undef NO_CTF
|
|
|
|
.endif
|
|
|
|
|
2002-04-19 07:40:34 +00:00
|
|
|
.include <bsd.own.mk>
|
2004-07-02 20:47:18 +00:00
|
|
|
.include "${BSDPORTMK}"
|