1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

Disable sse on non-x86 archs to fix build.

While here, pet portlint.

Approved by:	portmgr (tier-2 blanket)
This commit is contained in:
Mark Linimon 2019-04-06 19:40:42 +00:00
parent 897b8b7c3a
commit 6d9a99d78d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=498176

View File

@ -11,11 +11,10 @@ COMMENT= Small prototype-based programming language
LICENSE= BSD3CLAUSE
CONFLICTS= io-devel-[0-9]*
BROKEN_armv6= fails to compile: ucontext.h: expected parameter declarator
BROKEN_armv7= fails to compile: Coro.c:392:2: no member named 'arm_r0' in 'mcontext_t'
BROKEN_powerpc64= fails to build: unrecognized command line option -msse2
CONFLICTS= io-devel-[0-9]*
USES= cmake:noninja compiler:c11 ssl
@ -34,6 +33,13 @@ OPTIONS_SUB= yes
.include "${.CURDIR}/Makefile.addons"
.include <bsd.port.pre.mk>
# disable sse on non-x86 archs
.if ${ARCH} != amd64 && ${ARCH} != i386
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-CMakeLists.txt
.endif
post-patch:
${REINPLACE_CMD} -e 's/^[ ]*add_subdirectory/#&/' \
${WRKSRC}/addons/CMakeLists.txt
@ -61,4 +67,4 @@ do-test:
cd ${BUILD_WRKSRC} && \
./_build/binaries/io ${WRKSRC}/libs/iovm/tests/correctness/run.io
.include <bsd.port.mk>
.include <bsd.port.post.mk>