Skip to content
Snippets Groups Projects
Commit e58bf48b authored by Mikael Urankar's avatar Mikael Urankar
Browse files

astro/opencpn: Disable SIMD on non x86 architectures

  - Disable SIMD (SSE and AVX) on !x86 architectures
  - Disable NEON on powerpc* and armv6/7

Approved by:	portmgr (build fix blanket)
parent 5a3add12
No related branches found
No related tags found
No related merge requests found
......@@ -45,8 +45,11 @@ DOCS_CMAKE_OFF= -DOCPN_BUNDLE_DOCS:STRING="OFF"
.include <bsd.port.options.mk>
.if ${ARCH:Mpowerpc*}
CMAKE_ARGS+= -DHAVE_MSSE=OFF -DHAVE_MSSE2=OFF -DHAVE_MSSE3=OFF -DHAVE_MAVX2=OFF -DHAVE_MFPU_NEON=OFF
.if ${ARCH} != amd64 && ${ARCH} != i386
CMAKE_ARGS+= -DHAVE_MSSE=OFF -DHAVE_MSSE2=OFF -DHAVE_MSSE3=OFF -DHAVE_MAVX2=OFF
.endif
.if ${ARCH:Marmv*} || ${ARCH:Mpowerpc*}
CMAKE_ARGS+= -DHAVE_MFPU_NEON=OFF
.endif
.include <bsd.port.pre.mk>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment