svn commit: r496448 - head/devel/py-lxml

William Grzybowski wg at FreeBSD.org
Thu Mar 21 12:29:50 UTC 2019


Author: wg
Date: Thu Mar 21 12:29:48 2019
New Revision: 496448
URL: https://svnweb.freebsd.org/changeset/ports/496448

Log:
  devel/py-lxml: fix build on gcc-based archs
  
  PR:		236688
  Submitted by:	linimon
  Reported by:	Piotr Kubaj

Modified:
  head/devel/py-lxml/Makefile

Modified: head/devel/py-lxml/Makefile
==============================================================================
--- head/devel/py-lxml/Makefile	Thu Mar 21 12:19:33 2019	(r496447)
+++ head/devel/py-lxml/Makefile	Thu Mar 21 12:29:48 2019	(r496448)
@@ -33,4 +33,11 @@ post-install-DOCS-on:
 	${INSTALL_DATA} ${DOCS_FILES:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 	@cd ${WRKSRC} && ${COPYTREE_SHARE} doc ${STAGEDIR}${DOCSDIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+# on gcc-based architectures, use modern GCC due to use of #pragma
+.if ${ARCH} == mips || ${ARCH} == mips64 || ${ARCH} == powerpc || ${ARCH} == powerpc64 || ${ARCH} == powerpcspe || ${ARCH} == sparc64
+USE_GCC=	yes
+.endif
+
+.include <bsd.port.post.mk>


More information about the svn-ports-all mailing list