diff options
author | Patrick Li <pat@FreeBSD.org> | 2002-05-23 00:32:04 +0000 |
---|---|---|
committer | Patrick Li <pat@FreeBSD.org> | 2002-05-23 00:32:04 +0000 |
commit | 797bc0968f6c141c034212ff2d71f0d1f5e35194 (patch) | |
tree | ae9f52a6cc5a1541ffff20edd302bcbcb336a823 /textproc | |
parent | Update to 2002.04.30 (diff) |
Fix ports for building with -current without perl
PR: 38359
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=59747
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/py-rxp/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
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 <bsd.port.pre.mk> + 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 <bsd.port.mk> +.include <bsd.port.post.mk> |