aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/gdome2
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2002-11-04 07:56:03 +0800
committerknu <knu@FreeBSD.org>2002-11-04 07:56:03 +0800
commit606c40b9071560edc535e2406bc98f3117b5c132 (patch)
tree9d64ab26b6397985a995f92d1c403f02f2008c80 /textproc/gdome2
parent05c2bbdad41df359061ee9af7d91f99d5c483b54 (diff)
downloadfreebsd-ports-gnome-606c40b9071560edc535e2406bc98f3117b5c132.tar.gz
freebsd-ports-gnome-606c40b9071560edc535e2406bc98f3117b5c132.tar.zst
freebsd-ports-gnome-606c40b9071560edc535e2406bc98f3117b5c132.zip
USE_REINPLACE instead of perl.
Diffstat (limited to 'textproc/gdome2')
-rw-r--r--textproc/gdome2/Makefile25
1 files changed, 15 insertions, 10 deletions
diff --git a/textproc/gdome2/Makefile b/textproc/gdome2/Makefile
index 772015a84d74..2201a5105dde 100644
--- a/textproc/gdome2/Makefile
+++ b/textproc/gdome2/Makefile
@@ -16,6 +16,7 @@ LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2
USE_GNOMENG= yes
USE_GNOME= glib12
+USE_REINPLACE= yes
USE_LIBTOOL= yes
CONFIGURE_ENV= GLIB_CONFIG="${GLIB_CONFIG}" CPPFLAGS="-I${LOCALBASE}/include"
PLIST_SUB= DOCSDIR="share/doc/${DISTNAME}"
@@ -24,15 +25,19 @@ INSTALLS_SHLIB= yes
MAN1= gdome-config.1
post-patch:
- @${PERL} -i -pe 's,^(HTML_DIR *= *).*,$$1\$$(prefix)/share/doc,' ${WRKSRC}/gtk-doc/Makefile.in
- @${FIND} ${WRKSRC} -type f | ${XARGS} ${PERL} -i -pe \
- 's,<parser.h>,<libxml/parser.h>,; \
- s,<hash.h>,<libxml/hash.h>,; \
- s,<xmlmemory.h>,<libxml/xmlmemory.h>,; \
- s,<tree.h>,<libxml/tree.h>,; \
- s,<xmlerror.h>,<libxml/xmlerror.h>,; \
- s,<xmlIO.h>,<libxml/xmlIO.h>,; \
- s,<parserInternals.h>,<libxml/parserInternals.h>,; \
- s,<entities.h>,<libxml/entities.h>,'
+ @${REINPLACE_CMD} -E -e \
+ 's,^(HTML_DIR *= *).*,\1\$$(prefix)/share/doc,' \
+ ${WRKSRC}/gtk-doc/Makefile.in
+ @${FIND} ${WRKSRC} -type f -and \
+ '(' -name '*.[ch]' -or -name '*.xml' ')' | \
+ ${XARGS} ${REINPLACE_CMD} -e ' \
+ s,<parser\.h>,<libxml/parser.h>,; \
+ s,<hash\.h>,<libxml/hash.h>,; \
+ s,<xmlmemory\.h>,<libxml/xmlmemory.h>,; \
+ s,<tree\.h>,<libxml/tree.h>,; \
+ s,<xmlerror\.h>,<libxml/xmlerror.h>,; \
+ s,<xmlIO\.h>,<libxml/xmlIO.h>,; \
+ s,<parserInternals\.h>,<libxml/parserInternals.h>,; \
+ s,<entities\.h>,<libxml/entities.h>,'
.include <bsd.port.mk>