From 0d3d9251931685f982b3541a906c729fe2aced81 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Thu, 4 Mar 2021 19:18:53 +0000 Subject: biology/spoa: fix build on non-x86 In file included from /wrkdirs/usr/ports/biology/spoa/work/spoa-4.0.7/src/dispatcher.cpp:7: /usr/local/include/cpuinfo_x86.h:228:2: error: "Including cpuinfo_x86.h from a non-x86 target." #error "Including cpuinfo_x86.h from a non-x86 target." --- biology/spoa/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'biology') diff --git a/biology/spoa/Makefile b/biology/spoa/Makefile index 41bdf70f51f7..6a1908b3ff73 100644 --- a/biology/spoa/Makefile +++ b/biology/spoa/Makefile @@ -25,11 +25,17 @@ USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= rvaser -CMAKE_ON= BUILD_SHARED_LIBS spoa_optimize_for_portability spoa_build_executable spoa_use_simde spoa_use_simde_nonvec spoa_use_simde_openmp spoa_generate_dispatch +CMAKE_ON= BUILD_SHARED_LIBS spoa_optimize_for_portability spoa_build_executable spoa_use_simde spoa_use_simde_nonvec spoa_use_simde_openmp CMAKE_OFF= spoa_optimize_for_native LDFLAGS+= -lz -lcpu_features +.include + +.if ${ARCH} == amd64 || ${ARCH} == i386 +CMAKE_ARGS+= -Dspoa_generate_dispatch:BOOL=ON +.endif + do-test: @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -D${PORTNAME}_build_tests:BOOL=ON ${CMAKE_SOURCE_PATH} && \ -- cgit v1.2.3