2014-01-27 08:29:32 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Handle gnu configure that does not properly support DESTDIR
|
|
|
|
#
|
|
|
|
# Feature: desthack
|
|
|
|
# Usage: USES=desthack
|
2014-01-29 21:39:35 +01:00
|
|
|
# Valid ARGS: none
|
2014-01-27 08:29:32 +01:00
|
|
|
#
|
2014-03-15 11:31:54 +01:00
|
|
|
# MAINTAINER: portmgr@FreeBSD.org
|
2014-01-27 08:29:32 +01:00
|
|
|
|
|
|
|
.if !defined(_INCLUDE_USES_DESTHACK_MK)
|
|
|
|
_INCLUDE_USES_DESTHACK_MK= yes
|
|
|
|
|
2014-09-28 18:36:31 +02:00
|
|
|
.if !empty(desthack_ARGS)
|
2014-01-29 21:42:44 +01:00
|
|
|
IGNORE= USES=desthack does not require args
|
2014-01-27 08:29:32 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
GNU_CONFIGURE_PREFIX= \$${${DESTDIRNAME}}${PREFIX}
|
|
|
|
GNU_CONFIGURE_MANPREFIX= \$${${DESTDIRNAME}}${MANPREFIX}
|
|
|
|
.endif
|