diff options
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> |