svn commit: r483345 - head/devel/py-cbor

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sun Oct 28 19:58:44 UTC 2018


Author: sunpoet
Date: Sun Oct 28 19:58:42 2018
New Revision: 483345
URL: https://svnweb.freebsd.org/changeset/ports/483345

Log:
  Fix build on powerpc64
  
  PR:		232509
  Submitted by:	Piotr Kubaj <pkubaj at anongoth.pl>

Modified:
  head/devel/py-cbor/Makefile

Modified: head/devel/py-cbor/Makefile
==============================================================================
--- head/devel/py-cbor/Makefile	Sun Oct 28 19:58:34 2018	(r483344)
+++ head/devel/py-cbor/Makefile	Sun Oct 28 19:58:42 2018	(r483345)
@@ -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>


More information about the svn-ports-all mailing list