summaryrefslogtreecommitdiff
path: root/Mk/Uses/desthack.mk
blob: 5049350ad5b87b501d6ca1c0129153aaf47e4221 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# $FreeBSD$
#
# Handle gnu configure that does not properly support DESTDIR
#
# Feature:	desthack
# Usage:	USES=desthack
# Valid ARGS:	none
#
# MAINTAINER:	portmgr@FreeBSD.org

.if !defined(_INCLUDE_USES_DESTHACK_MK)
_INCLUDE_USES_DESTHACK_MK=	yes

.if defined(_desthack_ARGS)
IGNORE=	USES=desthack does not require args
.endif

GNU_CONFIGURE_PREFIX=	\$${${DESTDIRNAME}}${PREFIX}
GNU_CONFIGURE_MANPREFIX=	\$${${DESTDIRNAME}}${MANPREFIX}
.endif