Sync Mk with ports
[dports.git] / Mk / Uses / guessfix.mk
1 # $FreeBSD$
2 #
3 # Replace config.guess and config.sub files in specified directories
4 #
5 # MAINTAINER: draco@marino.st
6 #
7 # Feature:      guessfix
8 # Usage:        USES=guessfix
9 #
10
11 .if !defined(_INCLUDE_USES_GUESSFIX_Mk)
12 _INCLUDE_USES_GUESSFIX_MK=      yes
13
14 pre-patch: fix-subguess
15
16 fix-subguess:
17         @cd ${WRKSRC}; ${FIND} * -type f -name config.sub -exec \
18                 ${CP} ${PORTSDIR}/Templates/config.sub {} \;
19         @cd ${WRKSRC}; ${FIND} * -type f -name config.guess -exec \
20                 ${CP} ${PORTSDIR}/Templates/config.guess {} \;
21 .endif