Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/fakeroot.mk
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# Changes some default behaviour of build systems to allow installing as user. | # Changes some default behaviour of build systems to allow installing as user. | ||||
# | # | ||||
# Feature: fakeroot | # Feature: fakeroot | ||||
# Usage: USES=fakeroot | # Usage: USES=fakeroot | ||||
# Valid ARGS: none | # Valid ARGS: none | ||||
# | # | ||||
# MAINTAINER: bapt@FreeBSD.org | # MAINTAINER: bapt@FreeBSD.org | ||||
.if !defined(_INCLUDE_USES_FAKEROOT_MK) | .if !defined(_INCLUDE_USES_FAKEROOT_MK) | ||||
_INCLUDE_USES_FAKEROOT_MK= yes | _INCLUDE_USES_FAKEROOT_MK= yes | ||||
BUILD_DEPENDS+= fakeroot:${PORTSDIR}/security/fakeroot | BUILD_DEPENDS+= fakeroot:security/fakeroot | ||||
.if ${UID} != 0 | .if ${UID} != 0 | ||||
FAKEROOT?= fakeroot | FAKEROOT?= fakeroot | ||||
.endif | .endif | ||||
.endif | .endif |