aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses/fakeroot.mk
blob: d7ffc5a1495f533e9e61e342989fd94bb44ce56e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# $FreeBSD$
#
# Changes some default behaviour of build systems to allow installing as user.
#
# Feature:  fakeroot
# Usage:    USES=fakeroot
# Valid ARGS:   none
#
# MAINTAINER:   bapt@FreeBSD.org

.if !defined(_INCLUDE_USES_FAKEROOT_MK)
_INCLUDE_USES_FAKEROOT_MK=  yes
.if ${UID} != 0
BUILD_DEPENDS+= fakeroot:${PORTSDIR}/security/fakeroot
FAKEROOT?=  fakeroot
.endif
.endif