aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/Gofer/Makefile4
-rw-r--r--lang/Sather/Makefile3
-rw-r--r--lang/ferite/Makefile3
-rw-r--r--lang/schemetoc/Makefile5
-rw-r--r--lang/scm/Makefile5
-rw-r--r--lang/smalltalk/Makefile7
-rw-r--r--lang/sxm/Makefile3
-rw-r--r--lang/wxbasic/Makefile3
-rw-r--r--lang/yabasic/Makefile5
9 files changed, 24 insertions, 14 deletions
diff --git a/lang/Gofer/Makefile b/lang/Gofer/Makefile
index d6f78251e78b..9efa9828de71 100644
--- a/lang/Gofer/Makefile
+++ b/lang/Gofer/Makefile
@@ -17,12 +17,14 @@ WRKSRC= ${WRKDIR}/src
LIBDIR= ${PREFIX}/lib/Gofer
MAN1= gofer.1
+USE_REINPLACE= yes
+
do-install:
@${MKDIR} ${LIBDIR}
${INSTALL_DATA} ${WRKDIR}/*.prelude ${LIBDIR}
${INSTALL_DATA} ${WRKDIR}/src/prelude.h ${LIBDIR}
+ ${REINPLACE_CMD} -e "s|#include \"prelude.h\"|#include \"${LIBDIR}/prelude.h\"|" ${WRKDIR}/src/gofc.h
${INSTALL_DATA} ${WRKDIR}/src/gofc.h ${LIBDIR}
- ${PERL} -pi -e "s|#include \"prelude.h\"|#include \"${LIBDIR}/prelude.h\"|" ${LIBDIR}/gofc.h
${INSTALL_DATA} ${WRKDIR}/src/runtime.o ${LIBDIR}
${INSTALL_SCRIPT} ${WRKDIR}/scripts/gofer ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKDIR}/scripts/goferc ${PREFIX}/bin
diff --git a/lang/Sather/Makefile b/lang/Sather/Makefile
index 22a54c0fa790..b3b0a623797e 100644
--- a/lang/Sather/Makefile
+++ b/lang/Sather/Makefile
@@ -16,12 +16,13 @@ MAINTAINER= ports@FreeBSD.org
BUILD_DEPENDS= ${LOCALBASE}/lib/libgc.a:${PORTSDIR}/devel/boehm-gc
+USE_REINPLACE= yes
USE_GMAKE= yes
ALL_TARGET= full
MAN1= sacomp.1
pre-configure:
- @${PERL} -pi.in \
+ @${REINPLACE_CMD} \
-e "s:%%CC%%:${CC}:g ;" \
-e "s:%%CFLAGS%%:${CFLAGS}:g ;" \
-e "s:%%LOCALBASE%%:${LOCALBASE}:g ;" \
diff --git a/lang/ferite/Makefile b/lang/ferite/Makefile
index 000cc3ac9570..97f593ea2668 100644
--- a/lang/ferite/Makefile
+++ b/lang/ferite/Makefile
@@ -17,6 +17,7 @@ LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client \
pcre.0:${PORTSDIR}/devel/pcre \
xml2.5:${PORTSDIR}/textproc/libxml2
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
@@ -35,7 +36,7 @@ post-install:
.endif
post-patch:
- @${PERL} -pi -e 's|%%LOCALBASE%%|${LOCALBASE}|g ; \
+ @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g ; \
s|%%PTRHEAD_CFLAGS%%|${PTHREAD_CFLAGS}|g ; \
s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS:S/"//g}|g' \
${WRKSRC}/configure ${WRKSRC}/ferite-config.in
diff --git a/lang/schemetoc/Makefile b/lang/schemetoc/Makefile
index 65e5960be57d..844c0baf5f30 100644
--- a/lang/schemetoc/Makefile
+++ b/lang/schemetoc/Makefile
@@ -14,6 +14,7 @@ EXTRACT_SUFX= .tar.Z
MAINTAINER= ports@FreeBSD.org
+USE_REINPLACE= yes
USE_XLIB= yes
INSTALLS_SHLIB= yes
NO_WRKSUBDIR= yes
@@ -30,7 +31,7 @@ post-extract:
.endfor
post-patch:
- @${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/scsc/*.sc
- @${PERL} -pi -e 's|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/scsc/*.sc
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/scsc/*.sc
+ @${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/scsc/*.sc
.include <bsd.port.mk>
diff --git a/lang/scm/Makefile b/lang/scm/Makefile
index 9ef9b19dc86a..0f68ec5b2098 100644
--- a/lang/scm/Makefile
+++ b/lang/scm/Makefile
@@ -17,6 +17,7 @@ MAINTAINER= ports@FreeBSD.org
WRKSRC= ${WRKDIR}/${PORTNAME}
+USE_REINPLACE= yes
USE_ZIP= yes
USE_GMAKE= yes
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
@@ -36,8 +37,8 @@ post-extract:
@${CP} ${FILESDIR}/require.scm.in ${WRKDIR}/require.scm
post-patch:
- @${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKDIR}/require.scm
- @${PERL} -pi -e 's|%%CC%%|${CC}|g ; \
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKDIR}/require.scm
+ @${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g ; \
s|%%CFLAGS%%|${CFLAGS}|g' ${WRKSRC}/build.scm
post-build:
diff --git a/lang/smalltalk/Makefile b/lang/smalltalk/Makefile
index de76608b9c5f..c55660d1c4f9 100644
--- a/lang/smalltalk/Makefile
+++ b/lang/smalltalk/Makefile
@@ -14,6 +14,7 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:S/.a/a/}
MAINTAINER= ports@FreeBSD.org
+USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= MAKEINFO='makeinfo --no-split'
@@ -35,8 +36,8 @@ post-extract:
@${RM} -f ${WRKSRC}/doc/gst.info*
pre-patch:
- @${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${PERL} -pi -e \
- 's| -release \$$\(VERSION\)| -avoid-version|g'
- @${PERL} -pi -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/libltdl/ltdl.c
+ @${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} -e \
+ 's| -release \$$(VERSION)| -avoid-version|g'
+ @${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/libltdl/ltdl.c
.include <bsd.port.mk>
diff --git a/lang/sxm/Makefile b/lang/sxm/Makefile
index e7ccfb17b541..00d9997d4b80 100644
--- a/lang/sxm/Makefile
+++ b/lang/sxm/Makefile
@@ -13,13 +13,14 @@ MASTER_SITES= http://www.malgil.com/sxm/
MAINTAINER= ports@FreeBSD.org
+USE_REINPLACE= yes
USE_GMAKE= yes
ALL_TARGET= all image Formlist
MAN1= sxm.1 sxi.1
post-patch:
- @${PERL} -pi -e "s|/usr/local|${PREFIX}|g ; \
+ @${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g ; \
s,^CC,#CC,g" ${WRKSRC}/Makefile
.include <bsd.port.mk>
diff --git a/lang/wxbasic/Makefile b/lang/wxbasic/Makefile
index 4d2174da1272..d97625af8343 100644
--- a/lang/wxbasic/Makefile
+++ b/lang/wxbasic/Makefile
@@ -19,6 +19,7 @@ LIB_DEPENDS= wx_gtk.2:${PORTSDIR}/x11-toolkits/wxgtk-devel
NO_WRKSUBDIR= yes
+USE_REINPLACE= yes
USE_BISON= yes
USE_GMAKE= yes
MAKEFILE= makefile.unx
@@ -27,7 +28,7 @@ LIBS+= -lglut -lGL -lGLU -lwx_gtk_gl ${PTHREAD_LIBS}
MAKE_ENV= CXXFLAGS="${CXXFLAGS}" LIBS="${LIBS}"
post-patch:
- @${PERL} -pi -e "s/malloc.h/stdlib.h/g" ${WRKSRC}/core.c
+ @${REINPLACE_CMD} -e "s/malloc.h/stdlib.h/g" ${WRKSRC}/core.c
pre-build:
@(cd ${WRKSRC} ; \
diff --git a/lang/yabasic/Makefile b/lang/yabasic/Makefile
index 136ae8ee7f3e..315b62fa6585 100644
--- a/lang/yabasic/Makefile
+++ b/lang/yabasic/Makefile
@@ -12,14 +12,15 @@ MASTER_SITES= http://www.yabasic.de/download/
MAINTAINER= ports@FreeBSD.org
+USE_REINPLACE= yes
USE_BISON= yes
USE_XLIB= yes
GNU_CONFIGURE= yes
MAN1= yabasic.1
post-patch:
- @${PERL} -pi -e "s|-DUNIX|\@X_CFLAGS\@ -DUNIX|g" ${WRKSRC}/Makefile.in
- @${PERL} -pi -e "s|<malloc.h>|<stdlib.h>|g" ${WRKSRC}/bison.c
+ @${REINPLACE_CMD} -e "s|-DUNIX|\@X_CFLAGS\@ -DUNIX|g" ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e "s|<malloc.h>|<stdlib.h>|g" ${WRKSRC}/bison.c
post-install:
.if !defined(NOPORTDOCS)