You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
plfit: update to 1.0.1
- update to version 1.0.1 - fix functionality of default +openmp variant
This commit is contained in:
+6
-9
@@ -4,7 +4,7 @@ PortSystem 1.0
|
||||
PortGroup cmake 1.1
|
||||
PortGroup github 1.0
|
||||
|
||||
github.setup ntamas plfit 1.0.0
|
||||
github.setup ntamas plfit 1.0.1
|
||||
revision 0
|
||||
github.tarball_from archive
|
||||
|
||||
@@ -16,9 +16,9 @@ long_description This program fits power-law distributions to empirical (disc
|
||||
or continuous) data, according to the method of Clauset, Shalizi \
|
||||
and Newman.
|
||||
|
||||
checksums rmd160 58af3ed82ea2a939097bc73d7c7c07e56695b87f \
|
||||
sha256 b64eff580c721809d32be69c43070c37c9200ca02e5169d9ae7972fbd759977e \
|
||||
size 185990
|
||||
checksums rmd160 dc9e2a090bb848a5b6093b6725cfb7bf64ba9dc5 \
|
||||
sha256 523868c283f334329084df457739baf29b0a21e679830e5326965b0d128db1d4 \
|
||||
size 186015
|
||||
|
||||
test.run yes
|
||||
test.target test
|
||||
@@ -33,13 +33,12 @@ configure.pre_args-replace \
|
||||
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
|
||||
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF
|
||||
|
||||
# ld: unknown option: --version-script=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_plfit/plfit/work/plfit-1.0.0/src/plfit.map
|
||||
patchfiles-append patch-fix-linking-gcc.diff
|
||||
|
||||
variant openmp description {Enable OpenMP support} {
|
||||
configure.args-replace -DPLFIT_USE_OPENMP=OFF -DPLFIT_USE_OPENMP=ON
|
||||
}
|
||||
|
||||
default_variants +openmp
|
||||
|
||||
# See https://github.com/macports/macports-base/commit/7c91604891fa0d071b8d598490c4dc2edb8e0031
|
||||
if {[variant_isset openmp]} {
|
||||
compiler.openmp_version 2.0
|
||||
@@ -50,5 +49,3 @@ if {[variant_isset openmp]} {
|
||||
configure.ldflags-append -fopenmp
|
||||
}
|
||||
}
|
||||
|
||||
default_variants +openmp
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- src/CMakeLists.txt 2024-11-21 17:12:31.000000000 +0800
|
||||
+++ src/CMakeLists.txt 2024-12-03 09:42:09.000000000 +0800
|
||||
@@ -25,7 +25,7 @@
|
||||
target_link_libraries(plfit OpenMP::OpenMP_C)
|
||||
endif()
|
||||
|
||||
-if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT APPLE)
|
||||
set_target_properties(plfit PROPERTIES LINK_FLAGS "-Wl,--version-script=${PROJECT_SOURCE_DIR}/src/plfit.map")
|
||||
set_target_properties(plfit PROPERTIES LINK_DEPENDS ${PROJECT_SOURCE_DIR}/src/plfit.map)
|
||||
endif()
|
||||
Reference in New Issue
Block a user