mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
science/arbor: Replace the units bundled lib with external dependency
This commit is contained in:
parent
71504af533
commit
a6cd5e6562
@ -1,6 +1,7 @@
|
||||
PORTNAME= arbor
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.10.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= science
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
@ -19,7 +20,8 @@ BUILD_DEPENDS= bash:shells/bash \
|
||||
${PYTHON_PKGNAMEPREFIX}svgwrite>0:graphics/py-svgwrite@${PY_FLAVOR}
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/lib/cmake/GTest/GTestConfig.cmake:devel/googletest # https://github.com/arbor-sim/arbor/issues/2205
|
||||
LIB_DEPENDS= libhwloc.so:devel/hwloc2 \
|
||||
libpugixml.so:textproc/pugixml
|
||||
libpugixml.so:textproc/pugixml \
|
||||
libunits.so:misc/units
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}svgwrite>0:graphics/py-svgwrite@${PY_FLAVOR}
|
||||
TEST_DEPENDS= googletest>=0:devel/googletest
|
||||
|
||||
@ -27,13 +29,15 @@ USES= cmake compiler:c++17-lang localbase python shebangfix
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= arbor-sim
|
||||
GH_TUPLE= LLNL:units:7917f5f:units/ext/units
|
||||
|
||||
SHEBANG_FILES= scripts/arbor-build-catalogue
|
||||
|
||||
CMAKE_ON= BUILD_SHARED_LIBS
|
||||
CMAKE_OFF= ARB_USE_BUNDLED_UNITS
|
||||
CMAKE_ARGS= -DPython3_EXECUTABLE=${PYTHON_CMD}
|
||||
|
||||
LDFLAGS+= -L${LOCALBASE}/lib -lunits
|
||||
|
||||
OPTIONS_DEFINE= NATIVE
|
||||
|
||||
NATIVE_CMAKE_ON= -DARB_ARCH=native
|
||||
|
@ -1,5 +1,3 @@
|
||||
TIMESTAMP = 1723264051
|
||||
TIMESTAMP = 1724617928
|
||||
SHA256 (arbor-sim-arbor-v0.10.1_GH0.tar.gz) = 6a9a209dc20ab6edcf9847a70b0b4dbabf0c0d3c7e6e29b5bec7c00de9d7b8ae
|
||||
SIZE (arbor-sim-arbor-v0.10.1_GH0.tar.gz) = 10159032
|
||||
SHA256 (LLNL-units-7917f5f_GH0.tar.gz) = 5ea0edf7dfe48185c05f1fd455ef66a483fc5fa6d8586bef4e4b219ef0f3e378
|
||||
SIZE (LLNL-units-7917f5f_GH0.tar.gz) = 1878237
|
||||
|
19
science/arbor/files/patch-CMakeLists.txt
Normal file
19
science/arbor/files/patch-CMakeLists.txt
Normal file
@ -0,0 +1,19 @@
|
||||
--- CMakeLists.txt.orig 2024-08-09 10:22:00 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -40,7 +40,7 @@ check_cxx_compiler_flag("-march=native" CXX_HAS_NATIVE
|
||||
|
||||
# Specify target architecture.
|
||||
check_cxx_compiler_flag("-march=native" CXX_HAS_NATIVE)
|
||||
-if(CXX_HAS_NATIVE)
|
||||
+if(FALSE AND CXX_HAS_NATIVE)
|
||||
set(ARB_DEFAULT_ARCH "native")
|
||||
else()
|
||||
set(ARB_DEFAULT_ARCH "none")
|
||||
@@ -307,7 +307,6 @@ install(TARGETS ext-units EXPORT arbor-targets)
|
||||
install(TARGETS ext-random123 EXPORT arbor-targets)
|
||||
target_link_libraries(arbor-public-deps INTERFACE ext-units)
|
||||
install(TARGETS ext-units EXPORT arbor-targets)
|
||||
-install(TARGETS units compile_flags_target EXPORT arbor-targets)
|
||||
|
||||
# Keep track of packages we need to add to the generated CMake config
|
||||
# file for arbor.
|
@ -121,5 +121,4 @@ lib/cmake/arbor/arbor-targets.cmake
|
||||
lib/libarbor.so
|
||||
lib/libarborenv.so
|
||||
lib/libarborio.so
|
||||
lib/libunits.a
|
||||
%%DATADIR%%/BuildModules.cmake
|
||||
|
Loading…
Reference in New Issue
Block a user