aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorokazaki <okazaki@FreeBSD.org>2002-06-21 03:33:47 +0800
committerokazaki <okazaki@FreeBSD.org>2002-06-21 03:33:47 +0800
commit5bd04ba06fa223bb278380c9534292fe99db787c (patch)
treeec5605d35e698346fc2aab18db978676d421b4d9 /japanese
parentad363ad222c587d92a7f389f9a3b04487e17254c (diff)
downloadfreebsd-ports-graphics-5bd04ba06fa223bb278380c9534292fe99db787c.tar.gz
freebsd-ports-graphics-5bd04ba06fa223bb278380c9534292fe99db787c.tar.zst
freebsd-ports-graphics-5bd04ba06fa223bb278380c9534292fe99db787c.zip
Use ${REINPLACE_CMD} instead of ${PERL}.
Declare USE_AUTOCONF_VER as 213 until bsd.port.mk supports 252 (or later).
Diffstat (limited to 'japanese')
-rw-r--r--japanese/gxditview/Makefile23
1 files changed, 16 insertions, 7 deletions
diff --git a/japanese/gxditview/Makefile b/japanese/gxditview/Makefile
index d62f7643a59..19e8d528d48 100644
--- a/japanese/gxditview/Makefile
+++ b/japanese/gxditview/Makefile
@@ -22,7 +22,11 @@ MAINTAINER= okazaki@FreeBSD.org
RUN_DEPENDS= ${LOCALBASE}/bin/groff:${PORTSDIR}/japanese/groff
-USE_AUTOCONF= 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
USE_GMAKE= yes
USE_IMAKE= yes
@@ -35,6 +39,8 @@ INSTALL_WRKSRC= ${WRKDIR}/${DISTNAME}/src/xditview
MAN1= gxditview.1
+.include <bsd.port.pre.mk>
+
# workaround for autoconf-2.13
CONFIGUREIN_FILTER= \
@@ -43,15 +49,18 @@ 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;'
+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-extract:
- ${LN} -sf configure.ac ${WRKSRC}/configure.in
${CP} ${FILESDIR}/Imakefile ${WRKSRC}
post-patch:
- ${PERL} -pi ${CONFIGUREIN_FILTER} ${WRKSRC}/configure.in
- ${PERL} -pi ${ACLOCAL_FILTER} ${WRKSRC}/aclocal.m4
+.if ${USE_AUTOCONF_VER} == 213
+ ${CP} -p ${WRKSRC}/configure.ac ${WRKSRC}/configure.in
+ ${REINPLACE_CMD} ${CONFIGUREIN_FILTER} ${WRKSRC}/configure.in
+ ${REINPLACE_CMD} ${ACLOCAL_FILTER} ${WRKSRC}/aclocal.m4
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>