Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Mar 2021 19:18:54 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r567333 - head/biology/spoa
Message-ID:  <202103041918.124JIso4081143@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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} && \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103041918.124JIso4081143>