freebsd-ports/devel/py-intbitset/Makefile
Kubilay Kocak 21bd3d9735 devel/py-intbitset: Patch out march/mtune/-O3 (Respect CFLAGS)
ports r476958 added BROKEN to non-x86 ARCH's due to:

fails to compile: the clang compiler does not support -march=core2

Ports must respect user CFLAGS, and beside this port appending its own flags,
overriding system/ports supplied CFLAGS, was also adding march/mtune flags,
the former of which was set to an x86 specific CPU.

This change patches out these flags to address the issue.

While I'm here, level up port compliance (strip shared libraries)

Approved by:	portmgr (blanket, framework compliance)
MFH:		2018Q3
2018-08-12 05:00:27 +00:00

32 lines
922 B
Makefile

# $FreeBSD$
PORTNAME= intbitset
DISTVERSION= 2.3.0
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= freebsd_ports@k-worx.org
COMMENT= C-based extension implementing fast integer bit sets
LICENSE= LGPL3
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_aarch64= fails to compile: the clang compiler does not support -march=core2
BROKEN_armv6= fails to compile: the clang compiler does not support -march=core2
BROKEN_armv7= fails to compile: the clang compiler does not support -march=core2
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${PY_FLAVOR}
USES= python
USE_PYTHON= cython distutils autoplist
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/intbitset.so
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.mk>