mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 08:44:33 +00:00
ff48e37159
Reported by: madpilot Reviewed by: bapt X-MFC-With: 272282
33 lines
857 B
Makefile
33 lines
857 B
Makefile
# $FreeBSD$
|
|
|
|
.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.
|
|
.if exists(${.CURDIR}/Mk/bsd.port.mk)
|
|
PORTSDIR!= realpath ${.CURDIR}
|
|
.elif exists(${.CURDIR}/../Mk/bsd.port.mk)
|
|
PORTSDIR!= realpath ${.CURDIR}/..
|
|
.elif exists(${.CURDIR}/../../Mk/bsd.port.mk)
|
|
PORTSDIR!= realpath ${.CURDIR}/../..
|
|
.elif exists(${.CURDIR}/../../../Mk/bsd.port.mk)
|
|
PORTSDIR!= realpath ${.CURDIR}/../../..
|
|
.else
|
|
PORTSDIR= /usr/ports
|
|
.endif
|
|
.endif
|
|
|
|
BSDPORTMK?= ${PORTSDIR}/Mk/bsd.port.mk
|
|
|
|
# Needed to keep bsd.own.mk from reading in /etc/src.conf
|
|
# and setting MK_* variables when building ports.
|
|
_WITHOUT_SRCCONF=
|
|
|
|
# Enable CTF conversion on request.
|
|
.if defined(WITH_CTF)
|
|
.undef NO_CTF
|
|
.endif
|
|
|
|
.include <bsd.own.mk>
|
|
.include "${BSDPORTMK}"
|