aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2014-09-05 23:31:31 +0800
committertijl <tijl@FreeBSD.org>2014-09-05 23:31:31 +0800
commit0237507cb9cbb78a70ad13ffb7ed808348fa28dc (patch)
treec4de9e474e86d1c7990e9c7b14f3ca7c47ba3555 /Mk
parent8868794d959d3ea16da8a07bb6bc3b04f200fb30 (diff)
downloadfreebsd-ports-gnome-0237507cb9cbb78a70ad13ffb7ed808348fa28dc.tar.gz
freebsd-ports-gnome-0237507cb9cbb78a70ad13ffb7ed808348fa28dc.tar.zst
freebsd-ports-gnome-0237507cb9cbb78a70ad13ffb7ed808348fa28dc.zip
After patching configure restore the original modification time. This
avoids running makefile targets that depend on configure such as the PDF documentation in textproc/flex. Reported by: hrs Approved by: portmgr (bapt)
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/libtool.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/Mk/Uses/libtool.mk b/Mk/Uses/libtool.mk
index 1f9e3024aad4..40eac476b5f0 100644
--- a/Mk/Uses/libtool.mk
+++ b/Mk/Uses/libtool.mk
@@ -31,14 +31,15 @@ _INCLUDE_USES_LIBTOOL_POST_MK= yes
patch-libtool:
@${FIND} ${WRKDIR} \( -name configure -or -name ltconfig \) \
- -type f | ${XARGS} ${REINPLACE_CMD} \
+ -type f | while read i; do ${SED} -i.bak \
-e '/dragonfly\*/!s/^ *freebsd\*[ )]/dragonfly* | &/' \
-e '/gcc_dir=\\`/s/gcc /$$CC /' \
-e '/gcc_ver=\\`/s/gcc /$$CC /' \
-e '/link_all_deplibs[0-9A-Z_]*=/s/=unknown/=no/' \
-e '/objformat=/s/echo aout/echo elf/' \
-e "/freebsd-elf\\*)/,/;;/ { \
- /deplibs_check_method=/s/=.*/=pass_all/; }"
+ /deplibs_check_method=/s/=.*/=pass_all/; }" \
+ $${i} && ${TOUCH} -mr $${i}.bak $${i}; done
@${FIND} ${WRKDIR} -type f -name ltmain.sh | \
${XARGS} ${REINPLACE_CMD} \
@@ -48,7 +49,7 @@ patch-libtool:
.if ! ${libtool_ARGS:Moldver}
@${FIND} ${WRKDIR} \( -name configure -or -name ltconfig \) \
- -type f | ${XARGS} ${REINPLACE_CMD} \
+ -type f | while read i; do ${SED} -i.bak \
-e "/freebsd-elf\\*)/,/;;/ { \
/library_names_spec=.*\\.so/ \
s/=.*/='\$$libname\$$release.so\$$versuffix \
@@ -58,7 +59,8 @@ patch-libtool:
s/=.*/='\$$libname\$$release\$$shared_ext\$$versuffix \
\$$libname\$$release\$$shared_ext\$$major \
\$$libname\$$shared_ext' \
- soname_spec='\$$libname\$$release\$$shared_ext\$$major'/; }"
+ soname_spec='\$$libname\$$release\$$shared_ext\$$major'/; \
+ }" $${i} && ${TOUCH} -mr $${i}.bak $${i}; done
@${FIND} ${WRKDIR} -type f -name ltmain.sh | \
${XARGS} ${REINPLACE_CMD} \