bsd.port.mk revision 272383
170459Speter# $FreeBSD: head/share/mk/bsd.port.mk 272383 2014-10-01 20:52:08Z will $ 270459Speter 3272282Swill.if !defined(PORTSDIR) 4272282Swill# Autodetect if the command is being run in a ports tree that's not rooted 5272282Swill# in the default /usr/ports. The ../../.. case is in case ports ever grows 6272282Swill# a third level. 7272383Swill.for RELPATH in . .. ../.. ../../.. 8272383Swill.if !defined(_PORTSDIR) && exists(${.CURDIR}/${RELPATH}/Mk/bsd.port.mk) 9272383Swill_PORTSDIR= ${.CURDIR}/${RELPATH} 10272282Swill.endif 11272383Swill.endfor 12272383Swill_PORTSDIR?= /usr/ports 13272383SwillPORTSDIR!= realpath ${_PORTSDIR} 14272282Swill.endif 15272282Swill 16131482SeikBSDPORTMK?= ${PORTSDIR}/Mk/bsd.port.mk 1795027Sru 18164411Sru# Needed to keep bsd.own.mk from reading in /etc/src.conf 19164411Sru# and setting MK_* variables when building ports. 20164411Sru_WITHOUT_SRCCONF= 21161583Sobrien 22206082Snetchild# Enable CTF conversion on request. 23206082Snetchild.if defined(WITH_CTF) 24206082Snetchild.undef NO_CTF 25206082Snetchild.endif 26206082Snetchild 2795027Sru.include <bsd.own.mk> 28131482Seik.include "${BSDPORTMK}" 29