2023-06-08 10:04:02 +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 R 1.0
|
|
|
|
|
|
2023-09-06 21:02:25 +07:00
|
|
|
# CRAN version lacks OpenMP support, stay with the GitHub one.
|
|
|
|
|
R.setup github helske Rlibeemd 1.4.3 v
|
2024-05-30 17:29:02 +08:00
|
|
|
revision 2
|
2023-06-08 10:04:02 +08:00
|
|
|
categories-append math
|
2026-04-11 19:42:02 +04:00
|
|
|
maintainers nomaintainer
|
2023-06-08 10:04:02 +08:00
|
|
|
license GPL-3
|
|
|
|
|
description Ensemble Empirical Mode Decomposition (EEMD) and its complete variant (CEEMDAN)
|
|
|
|
|
long_description {*}${description}
|
2023-09-06 21:02:25 +07:00
|
|
|
checksums rmd160 752f7ce96115220ee009d1f016ae7d447794a15f \
|
|
|
|
|
sha256 bc16c030a27ff761011b961561c98b02e49275a6bc9af6cc131a72f936e16eba \
|
|
|
|
|
size 101734
|
2023-06-08 10:04:02 +08:00
|
|
|
|
|
|
|
|
depends_lib-append port:gsl \
|
|
|
|
|
port:R-Rcpp
|
|
|
|
|
|
2023-09-06 21:02:25 +07:00
|
|
|
# https://github.com/helske/Rlibeemd/issues/10
|
|
|
|
|
patchfiles patch-openmp.diff
|
|
|
|
|
|
|
|
|
|
post-patch {
|
|
|
|
|
if {[string match macports-gcc* ${configure.compiler}]} {
|
|
|
|
|
reinplace "s,@OMP_CFLAGS@,-fopenmp," ${worksrcpath}/src/Makevars.in
|
|
|
|
|
reinplace "s,@OMP_LDFLAGS@,-fopenmp," ${worksrcpath}/src/Makevars.in
|
|
|
|
|
} elseif {[string match macports-clang* ${configure.compiler}]} {
|
|
|
|
|
reinplace "s,@OMP_CFLAGS@,-I${prefix}/include/libomp -fopenmp," ${worksrcpath}/src/Makevars.in
|
|
|
|
|
reinplace "s,@OMP_LDFLAGS@,-L${prefix}/lib/libomp -lomp," ${worksrcpath}/src/Makevars.in
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
compiler.openmp_version 3.0
|
|
|
|
|
|
2023-06-08 10:04:02 +08:00
|
|
|
depends_test-append port:R-testthat
|
|
|
|
|
|
|
|
|
|
test.run yes
|