From 797bc0968f6c141c034212ff2d71f0d1f5e35194 Mon Sep 17 00:00:00 2001 From: Patrick Li Date: Thu, 23 May 2002 00:32:04 +0000 Subject: Fix ports for building with -current without perl PR: 38359 Submitted by: maintainer --- textproc/py-rxp/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'textproc/py-rxp') diff --git a/textproc/py-rxp/Makefile b/textproc/py-rxp/Makefile index cde6feba8727..16bf922c7eb9 100644 --- a/textproc/py-rxp/Makefile +++ b/textproc/py-rxp/Makefile @@ -22,8 +22,14 @@ USE_PYDISTUTILS= yes EXAMPLESDIR= ${PREFIX}/share/examples/py-rxp DOCSDIR= ${PREFIX}/share/doc/py-rxp +.include + post-patch: +.if ${OSVERSION} < 500036 @${PERL} -pi -e 's/freebsd4/freebsd4","freebsd5/g' ${WRKSRC}/setup.py +.else + @${SED} -i.orig -e 's/freebsd4/freebsd4","freebsd5/g' ${WRKSRC}/setup.py +.endif .if !defined(NOPORTDOCS) post-install: @@ -32,4 +38,4 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR} .endif -.include +.include -- cgit v1.2.3