Files

39 lines
1.4 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
name alglib
version 4.01.0
revision 0
categories math
license GPL-2+
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description a cross-platform numerical analysis and data processing library
long_description ALGLIB is ${description}.
homepage http://www.alglib.net
master_sites http://www.alglib.net/translator/re/
extract.suffix .cpp.gpl.tgz
checksums rmd160 13d4d562f6953b23b19c66cf5fa4d3bc2f88c421 \
sha256 95e8ea41b32c92346f49a694759e786c5f3a1087b401a9259ef592c0eea4befb \
size 3651221
worksrcdir ${name}-cpp
post-extract {
# CMakeLists.txt is taken from https://src.fedoraproject.org/rpms/alglib/raw/rawhide/f/CMakeLists.txt
copy ${filespath}/CMakeLists.txt ${worksrcpath}/
}
# http://bugs.alglib.net/view.php?id=1025
patchfiles-append patch-bool-size-ppc.diff
configure.args-append -DALGLIB_VERSION=${version} \
-DALGLIB_VERSION_MAJOR=[lindex [split ${version} .] 0]
test.run yes
test.args-append DYLD_LIBRARY_PATH=${cmake.build_dir}