aboutsummaryrefslogblamecommitdiff
path: root/Mk/Uses/desthack.mk
blob: a8c32742265255aea7f1630f4b71488f2aee53a4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                                                             

                             
                    
 
                                 



                                       
                           
                                           
        
 


                                                               
# Handle gnu configure that does not properly support DESTDIR
#
# Feature:	desthack
# Usage:	USES=desthack
# Valid ARGS:	none
#
# MAINTAINER:	ports@FreeBSD.org

.if !defined(_INCLUDE_USES_DESTHACK_MK)
_INCLUDE_USES_DESTHACK_MK=	yes

.  if !empty(desthack_ARGS)
IGNORE=	USES=desthack does not require args
.  endif

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