mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-27 10:03:20 +00:00
Use ${REINPLACE_CMD} instead of ${PERL}.
This commit is contained in:
parent
471cc5bc1d
commit
489fefbd88
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61645
@ -27,6 +27,9 @@ TMAC_DISTNAME= tmac-${TMAC_DATE}
|
||||
USE_GMAKE= yes
|
||||
# declare USE_AUTOCONF_VER as 213 until bsd.port.mk supports 252 (or later)
|
||||
USE_AUTOCONF_VER= 213
|
||||
.if ${USE_AUTOCONF_VER} == 213
|
||||
USE_REINPLACE= yes
|
||||
.endif
|
||||
|
||||
CONFIGURE_ARGS= --program-prefix=g --enable-nippon
|
||||
CONFIGURE_ENV= INSTALL_MAN="${INSTALL_MAN}"
|
||||
@ -69,12 +72,6 @@ PLIST_SUB+= INFO="@comment "
|
||||
PLIST_SUB+= INFO=""
|
||||
.endif
|
||||
|
||||
TEXINFO_FILTER= -e 's/\@acronym/\@var/g;' \
|
||||
-e 's/ifnottex/ifinfo/g;' \
|
||||
-e 's/ifnotinfo/iftex/g;' \
|
||||
-e 's/\@option/\@samp/g;' \
|
||||
-e 's/\@env/\@code/g;'
|
||||
|
||||
# workaround for autoconf-2.13
|
||||
|
||||
CONFIGUREIN_FILTER= \
|
||||
@ -83,18 +80,15 @@ CONFIGUREIN_FILTER= \
|
||||
-e 's|AC_OUTPUT|dnl|g;' \
|
||||
-e 's|AC_CONFIG_FILES|AC_OUTPUT|g;'
|
||||
|
||||
ACLOCAL_FILTER= -e 's/AC_LANG_POP\(C\+\+\)/AC_LANG_RESTORE/g;' \
|
||||
-e 's/AC_LANG_PUSH\(C\+\+\)/AC_LANG_SAVE\nAC_LANG_CPLUSPLUS/g;'
|
||||
|
||||
post-extract:
|
||||
.if ${USE_AUTOCONF_VER} == 213
|
||||
${LN} -sf configure.ac ${WRKSRC}/configure.in
|
||||
.endif
|
||||
ACLOCAL_FILTER= \
|
||||
-e 's/AC_LANG_POP[(]C[+][+][)]/AC_LANG_RESTORE/g;' \
|
||||
-e 's/AC_LANG_PUSH[(]C[+][+][)]/AC_LANG_SAVE[]AC_LANG_CPLUSPLUS/g;'
|
||||
|
||||
post-patch:
|
||||
.if ${USE_AUTOCONF_VER} == 213
|
||||
${PERL} -pi ${CONFIGUREIN_FILTER} ${WRKSRC}/configure.in
|
||||
${PERL} -pi ${ACLOCAL_FILTER} ${WRKSRC}/aclocal.m4
|
||||
${CP} -p ${WRKSRC}/configure.ac ${WRKSRC}/configure.in
|
||||
${REINPLACE_CMD} ${CONFIGUREIN_FILTER} ${WRKSRC}/configure.in
|
||||
${REINPLACE_CMD} ${ACLOCAL_FILTER} ${WRKSRC}/aclocal.m4
|
||||
.endif
|
||||
|
||||
post-build:
|
||||
|
Loading…
Reference in New Issue
Block a user