Fix build on powerpc64

PR:		232509
Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2018-10-28 19:58:42 +00:00
parent f4532ffb5a
commit 029e8b8981
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=483345

View file

@ -15,7 +15,14 @@ LICENSE= APACHE20
USE_PYTHON= autoplist concurrent distutils
USES= python
.include <bsd.port.pre.mk>
post-patch:
.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64
@${REINPLACE_CMD} -e '/pragma/d' ${WRKSRC}/c/cbormodule.c
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cbor/_cbor.so
.include <bsd.port.mk>
.include <bsd.port.post.mk>