ports/devel/py-pyinstaller/Makefile
Alexey Dokuchaev c81316cf01 Tentatively unbreak on some 64-bit architectures: powerpc64, sparc64, and
aarch64.  The patch basically extends existing ``... || defined()'' chain
of checks; ideally, this whole STB_PTR64-related code should be rewritten
in architecture name agnostic way.
2018-01-23 12:16:35 +00:00

46 lines
1.4 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= pyinstaller
PORTVERSION= 2.1
PORTREVISION= 3
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= PyInstaller-${PORTVERSION}
MAINTAINER= python@FreeBSD.org
COMMENT= Program to create standalone executables from Python scripts
LICENSE= GPLv2
BROKEN_mips64= Does not compile: cc1: error: unrecognized command line option "-m64
OPTIONS_DEFINE= DOCS
EXTRACT_AFTER_ARGS= --exclude doc/source --no-same-owner --no-same-permissions
USES= python:2.7
USE_PYTHON= autoplist distutils
DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e '/install_requires/s,distribute,setuptools,' \
${WRKSRC}/${PYSETUP}
@${REINPLACE_CMD} -e '/\/sbin\/ldconfig/s,-p,-r,' \
${WRKSRC}/PyInstaller/bindepend.py \
${WRKSRC}/PyInstaller/depend/utils.py
@${REINPLACE_CMD} -e '/libpython/s,\.so\.1\.0,.so.1,' \
${WRKSRC}/PyInstaller/bindepend.py
@${REINPLACE_CMD} -e '/defined(__x86_64__)/s,$$, || defined(__aarch64__) || defined(__powerpc64__) || defined(__sparc64__),' \
${WRKSRC}/bootloader/common/stb.h
pre-build:
cd ${WRKSRC}/bootloader && ${PYTHON_CMD} waf configure build install
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>