mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
See https://github.com/macports/macports-ports/pull/26909#issuecomment-3339115770
63 lines
2.2 KiB
Tcl
63 lines
2.2 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
||
|
||
PortSystem 1.0
|
||
PortGroup cmake 1.1
|
||
PortGroup github 1.0
|
||
|
||
github.setup LLNL zfp 01506c8136bce467ee2b768c73b782b075ad25a8
|
||
version 2024.11.26
|
||
revision 0
|
||
categories science devel
|
||
license BSD
|
||
maintainers nomaintainer
|
||
description ${name} is a compressed format for representing \
|
||
multi-dimensional floating-point and integer arrays
|
||
long_description {*}${description}
|
||
homepage https://zfp.llnl.gov
|
||
|
||
checksums rmd160 74c36b318294d79c5b619f1c0c409377a79301f3 \
|
||
sha256 c19d58c9235aaee88456ba00a25610e8c19a3acb50a24c1af2941b36776a319a \
|
||
size 516506
|
||
github.tarball_from archive
|
||
|
||
# index.hpp: error: integer constant is too large for ‘unsigned long’ type
|
||
compiler.blacklist-append \
|
||
{clang < 400} *gcc-4.*
|
||
compiler.c_standard 1999
|
||
|
||
configure.args-append \
|
||
-DBUILD_EXAMPLES=OFF \
|
||
-DBUILD_TESTING=ON \
|
||
-DBUILD_UTILITIES=ON \
|
||
-DZFP_WITH_ALIGNED_ALLOC=OFF \
|
||
-DZFP_WITH_OPENMP=OFF
|
||
|
||
variant openmp description {use OpenMP} {
|
||
compiler.openmp_version 3.0
|
||
|
||
configure.args-replace \
|
||
-DZFP_WITH_OPENMP=OFF \
|
||
-DZFP_WITH_OPENMP=ON
|
||
|
||
if {[string match *clang* ${configure.compiler}]} {
|
||
configure.ldflags-append \
|
||
-L${prefix}/lib/libomp \
|
||
-lomp
|
||
}
|
||
}
|
||
|
||
# See: https://github.com/LLNL/zfp/issues/205
|
||
if {${configure.build_arch} in [list i386 ppc]} {
|
||
configure.args-append \
|
||
-DZFP_INT64='long long' \
|
||
-DZFP_INT64_SUFFIX=ll \
|
||
-DZFP_UINT64='unsigned long long' \
|
||
-DZFP_UINT64_SUFFIX=ull
|
||
}
|
||
|
||
test.run yes
|
||
# Drop once someone finally removes this from cmake PG:
|
||
configure.pre_args-replace \
|
||
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
|
||
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF
|