Skip to content

Commit

Permalink
biology/bifrost: Portability fixes
Browse files Browse the repository at this point in the history
Tag as only for 64-bit platforms
Fix build on aarch64 (patch out -march=native)

Reported by:    pkg-fallout
  • Loading branch information
Jason W. Bacon authored and Jason W. Bacon committed Jul 16, 2023
1 parent 63e5ba4 commit 7d4be2d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions biology/bifrost/Makefile
Expand Up @@ -10,6 +10,9 @@ 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

USES= cmake
USE_GITHUB= yes

Expand Down
11 changes: 11 additions & 0 deletions biology/bifrost/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
--- CMakeLists.txt.orig 2023-07-16 13:25:06 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")

if(ENABLE_AVX2 MATCHES "OFF")

0 comments on commit 7d4be2d

Please sign in to comment.