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 | |
parent | 5fdaa85b0d76467676b8f9a6cb38497c8fb02688 (diff) | |
download | ports-797bc0968f6c141c034212ff2d71f0d1f5e35194.tar.gz ports-797bc0968f6c141c034212ff2d71f0d1f5e35194.zip |
Notes
Diffstat (limited to 'dns')
-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> |