summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/tcl-trf/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/devel/tcl-trf/Makefile b/devel/tcl-trf/Makefile
index 4420a1239584..c1433bd8c25a 100644
--- a/devel/tcl-trf/Makefile
+++ b/devel/tcl-trf/Makefile
@@ -29,6 +29,8 @@ DDIR= ${PREFIX}/lib/tcl${TCL_VER}/Trf
MAKE_ENV+= TCL_VER=${TCL_VER} MKDIR="${MKDIR}" \
INSTALL_DATA="${INSTALL_DATA}"
+USE_REINPLACE= yes
+REINPLACE_ARGS= -i ""
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --with-tcl=${LOCALBASE}/lib/tcl${TCL_VER} \
--with-tclinclude=${LOCALBASE}/include/tcl${TCL_VER} \
@@ -40,10 +42,10 @@ post-extract:
post-patch:
# Make direct calls to -lbz2
- ${PERL} -pi -e 's,bz\.([^(]+),BZ2_bz\u\1,g' \
+ ${REINPLACE_CMD} -e 's,bz\.([^(]+),BZ2_bz\u\1,g' \
${WRKSRC}/generic/bz2.c
# Make direct calls to -lz
- ${PERL} -pi -e 's,zf\.([^(]+),\1,g' ${WRKSRC}/generic/adler.c \
+ ${REINPLACE_CMD} -e 's,zf\.([^(]+),\1,g' ${WRKSRC}/generic/adler.c \
${WRKSRC}/generic/crc_zlib.c ${WRKSRC}/generic/zip.c
post-install: