summaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
Diffstat (limited to 'science')
-rw-r--r--science/euler/Makefile3
-rw-r--r--science/gdis/Makefile5
2 files changed, 5 insertions, 3 deletions
diff --git a/science/euler/Makefile b/science/euler/Makefile
index a50a6a7eb959..b34ac439b19e 100644
--- a/science/euler/Makefile
+++ b/science/euler/Makefile
@@ -14,13 +14,14 @@ MASTER_SITE_SUBDIR= euler
MAINTAINER= ports@FreeBSD.org
+USE_REINPLACE= yes
USE_GTK= yes
WRKSRC= ${WRKDIR}/${DISTNAME:R}/source
MAKEFILE= makefile
ALL_TARGET= # empty
post-patch:
- @${PERL} -pi -e "s,%%PREFIX%%,${PREFIX},g ; \
+ @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g ; \
s,gtk-config,${GTK_CONFIG},g ; \
s,glib-config,${GLIB_CONFIG},g" ${WRKSRC}/${MAKEFILE}
diff --git a/science/gdis/Makefile b/science/gdis/Makefile
index 935a9f532780..5de233041282 100644
--- a/science/gdis/Makefile
+++ b/science/gdis/Makefile
@@ -17,6 +17,7 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= gtkextra:${PORTSDIR}/x11-toolkits/gtkextra \
gtkgl:${PORTSDIR}/x11-toolkits/gtkglarea
+USE_REINPLACE= yes
USE_GTK= yes
USE_MESA= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
@@ -24,9 +25,9 @@ USE_GMAKE= yes
ALL_TARGET= # empty
post-patch:
- @${PERL} -pi -e "s,^CC,#CC,g ; s,^CFLAGS,#CFLAGS,g ; \
+ @${REINPLACE_CMD} -e "s,^CC,#CC,g ; s,^CFLAGS,#CFLAGS,g ; \
s,gtk-config,${GTK_CONFIG},g" ${WRKSRC}/Makefile
- @${PERL} -pi -e "s,%%DATADIR%%,${DATADIR},g" ${WRKSRC}/gdis.h
+ @${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR},g" ${WRKSRC}/gdis.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gdis ${PREFIX}/bin