Sync Mk with ports
[dports.git] / Mk / Uses / ltmainfix.mk
1 # $FreeBSD$
2 #
3 # Fix old configure scripts generated by buggy ltmain ([:space:] bug)
4 #
5 # MAINTAINER: draco@marino.st
6 #
7 # Feature:      ltmainfix
8 # Usage:        USES=ltmainfix
9 #
10
11 .if !defined(_INCLUDE_USES_LTMAINFIX_Mk)
12 _INCLUDE_USES_LTMAINFIX_MK=     yes
13
14 pre-patch: fix-ltmain
15
16 fix-ltmain:
17         @cd ${WRKSRC}; ${FIND} * -type f -name configure -print | \
18                 ${XARGS} ${REINPLACE_CMD} -e 's|\^\[:space:\]\*|^[[:space:]]*|g'
19 .endif