From f81df7e27c17c9bda533f0c3253abdedff02d6ab Mon Sep 17 00:00:00 2001 From: Patrick Li Date: Thu, 3 Jul 2003 05:41:16 +0000 Subject: [PATCH] Fix gnuchess support Submitted by: "Holger Kipp" --- games/glchess/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/games/glchess/Makefile b/games/glchess/Makefile index 0948f4524205..8c8e6b0ee03c 100644 --- a/games/glchess/Makefile +++ b/games/glchess/Makefile @@ -24,17 +24,19 @@ GNU_CONFIGURE= yes CONFIGURE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS} \ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" USE_AUTOMAKE_VER= 14 +USE_REINPLACE= yes MAN6= ${PORTNAME}.6 pre-patch: - @${PERL} -pi.orig -e 's!/usr/local/share/games/glchess!${DATADIR}!' \ + @${REINPLACE_CMD} -e 's!/usr/local/share/games/glchess!${DATADIR}!' \ ${WRKSRC}/glchessrc - @${PERL} -pi.orig -e 's!/etc!${PREFIX}/etc!' \ + @${REINPLACE_CMD} -e 's!/etc!${PREFIX}/etc!' \ ${WRKSRC}/src/config.c - @${PERL} -pi.orig -e 's|^aclocal|${ACLOCAL}|; \ + @${REINPLACE_CMD} -e 's|^aclocal|${ACLOCAL}|; \ s|^autoconf|${AUTOCONF}|; s|^automake|${AUTOMAKE}|' \ ${WRKSRC}/autogen.sh + @${REINPLACE_CMD} -e 's|"gnuchessx"|"gnuchess"|' ${WRKSRC}/src/main.c pre-configure: cd ${WRKSRC}; ${SH} autogen.sh