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 /devel/decompyle | |
parent | 5fdaa85b0d76467676b8f9a6cb38497c8fb02688 (diff) | |
download | ports-797bc0968f6c141c034212ff2d71f0d1f5e35194.tar.gz ports-797bc0968f6c141c034212ff2d71f0d1f5e35194.zip |
Notes
Diffstat (limited to 'devel/decompyle')
-rw-r--r-- | devel/decompyle/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/devel/decompyle/Makefile b/devel/decompyle/Makefile index 8038a0de865b..207bf6f22840 100644 --- a/devel/decompyle/Makefile +++ b/devel/decompyle/Makefile @@ -17,8 +17,15 @@ 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,/usr/bin/env python2,${PYTHON_CMD},' \ ${WRKSRC}/scripts/decompyle +.else + ${SED} -i.orig -e 's,/usr/bin/env python2,${PYTHON_CMD},' \ + ${WRKSRC}/scripts/decompyle +.endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |