biology/bifrost: Control -march via CPUTYPE make variable
Also disable hard-coded -O3 in cmake to respect user env PR: 272651 Reported by: yuri Reviewed by: nimaje+fbz@bureaucracy.de, dizzy
This commit is contained in:
parent
519c9cc9f6
commit
f38473fec0
2 changed files with 12 additions and 10 deletions
|
@ -1,6 +1,7 @@
|
|||
PORTNAME= bifrost
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 1.2.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= biology
|
||||
|
||||
MAINTAINER= jwb@FreeBSD.org
|
||||
|
@ -10,12 +11,14 @@ WWW= https://github.com/pmelsted/bifrost
|
|||
LICENSE= BSD2CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
# Requires a 64-bit processor
|
||||
ONLY_FOR_ARCHS= aarch64 amd64 powerpc64 powerpc64le riscv64
|
||||
ONLY_FOR_ARCHS_REASON= Requires a 64-bit processor
|
||||
|
||||
USES= cmake
|
||||
USE_GITHUB= yes
|
||||
|
||||
CMAKE_ARGS= -DCOMPILATION_ARCH=${CPUTYPE:UOFF}
|
||||
|
||||
GH_ACCOUNT= pmelsted
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
--- CMakeLists.txt.orig 2023-07-16 13:25:06 UTC
|
||||
--- CMakeLists.txt.orig 2023-08-12 14:26:29 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -20,8 +20,6 @@ if(COMPILATION_ARCH MATCHES "OFF")
|
||||
message("Disabling native architecture compilation (including AVX2)")
|
||||
else(COMPILATION_ARCH MATCHES "OFF")
|
||||
message("Compilation architecture: ${COMPILATION_ARCH}")
|
||||
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=${COMPILATION_ARCH}")
|
||||
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=${COMPILATION_ARCH}")
|
||||
endif(COMPILATION_ARCH MATCHES "OFF")
|
||||
@@ -46,7 +46,6 @@ else(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "-pg")
|
||||
else(CMAKE_BUILD_TYPE MATCHES Profile)
|
||||
message("Build type: Release")
|
||||
- add_compile_options(-O3)
|
||||
endif(CMAKE_BUILD_TYPE MATCHES Profile)
|
||||
endif(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
|
||||
if(ENABLE_AVX2 MATCHES "OFF")
|
||||
|
|
Loading…
Reference in a new issue