diff options
Diffstat (limited to 'print')
-rw-r--r-- | print/gfontview/Makefile | 9 | ||||
-rw-r--r-- | print/xtem/Makefile | 4 |
2 files changed, 8 insertions, 5 deletions
diff --git a/print/gfontview/Makefile b/print/gfontview/Makefile index bb99f98d0bdb..32e94122fbb4 100644 --- a/print/gfontview/Makefile +++ b/print/gfontview/Makefile @@ -18,6 +18,7 @@ MAINTAINER= ports@FreeBSD.org LIB_DEPENDS= t1.4:${PORTSDIR}/devel/t1lib USE_X_PREFIX= yes +USE_REINPLACE= yes USE_GNOME= yes USE_FREETYPE= yes GNU_CONFIGURE= yes @@ -29,13 +30,13 @@ CONFIGURE_ARGS= --with-fontdir="${LOCALBASE}/share/ghostscript/fonts" \ --with-libungif post-patch: - @${PERL} -pi -e 's|CXXFLAGS="-O2"|CXXFLAGS="\$$CXXFLAGS"|g ; \ + @${REINPLACE_CMD} -e 's|CXXFLAGS="-O2"|CXXFLAGS="$$CXXFLAGS"|g ; \ s|DATADIRNAME=lib|DATADIRNAME=share|g ; \ s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \ - s|\$$\(top_builddir\)/intl/libintl.a|-lintl|g' \ + s|\$$(top_builddir)/intl/libintl.a|-lintl|g' \ ${WRKSRC}/configure - @${PERL} -pi -e 's|\$$\(datadir\)/gnome/|\$$\(datadir\)/|g ; \ - s|\$$\(datadir\)/locale|\$$\(prefix\)/share/locale|g ; \ + @${REINPLACE_CMD} -e 's|\$$(datadir)/gnome/|$$(datadir)/|g ; \ + s|\$$(datadir)/locale|$$(prefix)/share/locale|g ; \ s|-I/usr/include/freetype||g' \ ${WRKSRC}/Makefile.in diff --git a/print/xtem/Makefile b/print/xtem/Makefile index c72bff0add3f..585661e4f83f 100644 --- a/print/xtem/Makefile +++ b/print/xtem/Makefile @@ -19,6 +19,8 @@ RUN_DEPENDS+= gv:${PORTSDIR}/print/gv \ tex:${PORTSDIR}/print/teTeX .endif +USE_REINPLACE= yes + WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} MAN1= hyphen_show.1 xtem.1 @@ -30,7 +32,7 @@ post-extract: @${CP} ${FILESDIR}/Makefile ${FILESDIR}/exclude-list ${WRKSRC} post-patch: - @${PERL} -pi.bak -e \ + @${REINPLACE_CMD} -e \ "s|%%TCLSH%%|${PREFIX}/bin/tclsh8.2|g; \ s|%%WISH%%|${PREFIX}/bin/wish8.2|g; \ s|%%XTEMPATH%%|${PREFIX}/share/xtem|g" ${WRKSRC}/xtem |