Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2018 19:58:42 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r483345 - head/devel/py-cbor
Message-ID:  <201810281958.w9SJwg5u067074@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810281958.w9SJwg5u067074>