svn commit: r567333 - head/biology/spoa

Piotr Kubaj pkubaj at FreeBSD.org
Thu Mar 4 19:18:54 UTC 2021


Author: pkubaj
Date: Thu Mar  4 19:18:53 2021
New Revision: 567333
URL: https://svnweb.freebsd.org/changeset/ports/567333

Log:
  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."

Modified:
  head/biology/spoa/Makefile

Modified: head/biology/spoa/Makefile
==============================================================================
--- head/biology/spoa/Makefile	Thu Mar  4 19:18:02 2021	(r567332)
+++ head/biology/spoa/Makefile	Thu Mar  4 19:18:53 2021	(r567333)
@@ -25,10 +25,16 @@ 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 <bsd.port.options.mk>
+
+.if ${ARCH} == amd64 || ${ARCH} == i386
+CMAKE_ARGS+=	-Dspoa_generate_dispatch:BOOL=ON
+.endif
 
 do-test:
 	@cd ${BUILD_WRKSRC} && \


More information about the svn-ports-head mailing list