/[base]/head/share/mk/bsd.port.mk
ViewVC logotype

Contents of /head/share/mk/bsd.port.mk

Parent Directory Parent Directory | Revision Log Revision Log


Revision 287436 - (show annotations) (download)
Thu Sep 3 17:01:58 2015 UTC (8 years, 10 months ago) by bdrewery
File size: 804 byte(s)
Avoid sub-shell for realpath(1) for bmake by using its built-in :tA.

MFC after:	2 weeks
Approved by:	portmgr (implicit)

1 # $FreeBSD$
2
3 .if !defined(PORTSDIR)
4 # Autodetect if the command is being run in a ports tree that's not rooted
5 # in the default /usr/ports. The ../../.. case is in case ports ever grows
6 # a third level.
7 .for RELPATH in . .. ../.. ../../..
8 .if !defined(_PORTSDIR) && exists(${.CURDIR}/${RELPATH}/Mk/bsd.port.mk)
9 _PORTSDIR= ${.CURDIR}/${RELPATH}
10 .endif
11 .endfor
12 _PORTSDIR?= /usr/ports
13 .if defined(.PARSEDIR)
14 PORTSDIR= ${_PORTSDIR:tA}
15 .else # fmake doesn't have :tA
16 PORTSDIR!= realpath ${_PORTSDIR}
17 .endif
18 .endif
19
20 BSDPORTMK?= ${PORTSDIR}/Mk/bsd.port.mk
21
22 # Needed to keep bsd.own.mk from reading in /etc/src.conf
23 # and setting MK_* variables when building ports.
24 _WITHOUT_SRCCONF=
25
26 # Enable CTF conversion on request.
27 .if defined(WITH_CTF)
28 .undef NO_CTF
29 .endif
30
31 .include <bsd.own.mk>
32 .include "${BSDPORTMK}"

Properties

Name Value
svn:keywords FreeBSD=%H

  ViewVC Help
Powered by ViewVC 1.1.27