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 /dns/py-adns | |
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 'dns/py-adns')
-rw-r--r-- | dns/py-adns/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/dns/py-adns/Makefile b/dns/py-adns/Makefile index b741415a3123..83e40776422b 100644 --- a/dns/py-adns/Makefile +++ b/dns/py-adns/Makefile @@ -20,9 +20,17 @@ USE_PYTHON= yes USE_PYDISTUTILS= yes PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g} +.include <bsd.port.pre.mk> + post-patch: +.if ${OSVERSION} < 500036 @${PERL} -pi -e 's|^(include_dirs = ).*$$|\1\["${LOCALBASE}/include"\]|g; \ s|^(library_dirs = ).*$$|\1\["${LOCALBASE}/lib"\]|g' \ ${WRKSRC}/setup.py +.else + @${SED} -i.orig -e 's|^\(include_dirs = \).*$$|\1\["${LOCALBASE}/include"\]|g' \ + -e 's|^\(library_dirs = \).*$$|\1\["${LOCALBASE}/lib"\]|g' \ + ${WRKSRC}/setup.py +.endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |