blob: eb49af650cfc42f248bfdbf2c3472e90f212afa5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#
# $FreeBSD$
#
# Handle gnu configure that does not properly support DESTDIR
#
# MAINTAINER: portmgr@FreeBSD.org
#
# Feature: desthack
# Usage: USES=desthack
# Valide ARGS: none
#
.if !defined(_INCLUDE_USES_DESTHACK_MK)
_INCLUDE_USES_DESTHACK_MK= yes
.if defined(_desthack_ARGS)
IGNORE= USES=desthack does not require args
.endif
_USES_POST= desthack
GNU_CONFIGURE_PREFIX= \$${${DESTDIRNAME}}${PREFIX}
GNU_CONFIGURE_MANPREFIX= \$${${DESTDIRNAME}}${MANPREFIX}
.endif
.if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_DESTHACK_POST_MK)
_INCLUDE_USES_DESTHACK_POST_MK= yes
post-stage:
@${SED} -i '' -e 's,${STAGEDIR},,g' ${STAGEDIR}${PREFIX}/lib/*.la
.endif
|