diff options
author | ijliao <ijliao@FreeBSD.org> | 2002-07-07 18:34:07 +0000 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2002-07-07 18:34:07 +0000 |
commit | 20d7c439c89cfb1fd40c3bbb5acee4391061a7f4 (patch) | |
tree | d77b98d157dd1c66caa826d00a75a8d28b5348aa /french/xtel | |
parent | acdac520ff4ea85759b33e3903f052541cdcccbc (diff) | |
download | FreeBSD-ports-20d7c439c89cfb1fd40c3bbb5acee4391061a7f4.zip FreeBSD-ports-20d7c439c89cfb1fd40c3bbb5acee4391061a7f4.tar.gz |
PERL -> REINPLACE_CMD
PR: 40289
Submitted by: maintainer
Diffstat (limited to 'french/xtel')
-rw-r--r-- | french/xtel/Makefile | 6 | ||||
-rw-r--r-- | french/xtel/files/patch-Videotex_Videotex.c | 11 |
2 files changed, 14 insertions, 3 deletions
diff --git a/french/xtel/Makefile b/french/xtel/Makefile index a55da39..43c594d 100644 --- a/french/xtel/Makefile +++ b/french/xtel/Makefile @@ -21,6 +21,7 @@ LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg USE_IMAKE= yes USE_XPM= yes +USE_REINPLACE= yes MAN1= xtel.1 xteld.1 @@ -37,10 +38,9 @@ PATCH_FILES= Imakefile post-patch: .for FILE in ${PATCH_FILES} - @${PERL} -pi -e "s:%%LOCALBASE%%:${LOCALBASE}:g" ${WRKSRC}/${FILE} + ${CHMOD} u+w ${WRKSRC}/${FILE} + ${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:g" ${WRKSRC}/${FILE} .endfor - find ${WRKSRC} -type f | xargs ${PERL} -pi -e \ - "s@#include.*<malloc.h>@#include <stdlib.h>@g" pre-configure: .if !exists(${PREFIX}/lib/X11/config/host.def) diff --git a/french/xtel/files/patch-Videotex_Videotex.c b/french/xtel/files/patch-Videotex_Videotex.c new file mode 100644 index 0000000..7b5c4f9 --- /dev/null +++ b/french/xtel/files/patch-Videotex_Videotex.c @@ -0,0 +1,11 @@ +--- Videotex/Videotex.c.orig Sun Feb 11 01:13:00 2001 ++++ Videotex/Videotex.c Sun Jul 7 13:17:57 2002 +@@ -22,7 +22,7 @@ + /* + * Widget Videotex: VideotexWidgetClass + */ +-#include <malloc.h> ++#include <stdlib.h> + #include <ctype.h> + #include <X11/IntrinsicP.h> + #include <X11/StringDefs.h> |