2023-07-07 06:32:48 +08:00
|
|
|
# -*- 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 compilers 1.0
|
|
|
|
|
PortGroup github 1.0
|
|
|
|
|
|
2023-12-25 07:32:32 +08:00
|
|
|
github.setup libKriging libKriging 0.8.3 v
|
2025-01-25 02:50:03 +11:00
|
|
|
# Change github.tarball_from to 'releases' or 'archive' next update
|
|
|
|
|
github.tarball_from tarball
|
2026-06-04 13:20:03 -05:00
|
|
|
revision 4
|
2023-07-07 06:32:48 +08:00
|
|
|
categories math
|
|
|
|
|
license Apache-2
|
2026-04-11 19:42:02 +04:00
|
|
|
maintainers nomaintainer
|
2023-07-07 06:32:48 +08:00
|
|
|
description Kriging library for performance and wide language support
|
|
|
|
|
long_description {*}${description}
|
|
|
|
|
|
|
|
|
|
fetch.type git
|
|
|
|
|
|
|
|
|
|
post-fetch {
|
|
|
|
|
system -W ${worksrcpath} "git submodule update --init"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cmake.build_type MinSizeRel
|
|
|
|
|
|
|
|
|
|
compilers.choose cc cxx fc f90
|
|
|
|
|
compilers.setup require_fortran -g95
|
|
|
|
|
compiler.cxx_standard 2017
|
|
|
|
|
|
|
|
|
|
patchfiles-append patch-CMakeLists.diff
|
|
|
|
|
|
|
|
|
|
post-patch {
|
|
|
|
|
reinplace "s,__FC__,${configure.fc}," ${worksrcpath}/CMakeLists.txt \
|
|
|
|
|
${worksrcpath}/dependencies/lbfgsb_cpp/CMakeLists.txt \
|
|
|
|
|
${worksrcpath}/dependencies/lbfgsb_cpp/cmake/ExternalFortranProject.cmake.in
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
depends_build-append \
|
2024-06-26 10:06:54 +08:00
|
|
|
path:bin/pkg-config:pkgconfig
|
2023-07-07 06:32:48 +08:00
|
|
|
depends_lib-append port:armadillo \
|
|
|
|
|
port:hdf5
|
|
|
|
|
|
|
|
|
|
# Yes, explicitly passing Fortran_COMPILER is needed.
|
|
|
|
|
configure.pre_args-append \
|
|
|
|
|
-DCMAKE_Fortran_COMPILER=${configure.fc}
|
|
|
|
|
|
|
|
|
|
configure.args-append \
|
|
|
|
|
-DBUILD_SHARED_LIBS=ON
|
|
|
|
|
|
|
|
|
|
# Automatic installation fails, since the build system magically pulls out Armadillo duplicates.
|
|
|
|
|
|
|
|
|
|
configure.pre_args-replace \
|
|
|
|
|
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
|
|
|
|
|
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF
|
|
|
|
|
|
|
|
|
|
test.run yes
|