mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
94 lines
3.2 KiB
Tcl
94 lines
3.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 compilers 1.0
|
|
PortGroup linear_algebra 1.0
|
|
|
|
name taucs
|
|
version 2.2
|
|
revision 1
|
|
categories math
|
|
platforms darwin
|
|
license LGPL
|
|
maintainers {gmail.com:mark.brethen @mbrethen} {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
|
|
|
|
description C library of sparse linear solvers
|
|
|
|
long_description TAUCS is a ${description}.
|
|
|
|
homepage https://www.tau.ac.il/~stoledo/taucs/
|
|
master_sites ${homepage}${version}
|
|
dist_subdir ${name}/${version}
|
|
distname ${name}
|
|
extract.suffix .tgz
|
|
extract.mkdir yes
|
|
|
|
checksums rmd160 e7621bc65af42432e708318e93bce8958bf3a482 \
|
|
sha256 fc13dae767db5e9035b1ce63036a16d3a260aad784f461e073f1150a078a77e4 \
|
|
size 1573863
|
|
|
|
depends_lib-append port:metis \
|
|
port:libf2c
|
|
|
|
# requires C99
|
|
compiler.blacklist-append \
|
|
{clang < 211.10.1}
|
|
compilers.choose cc
|
|
compilers.setup -gcc44
|
|
linalg.setup noveclibfort blas_only
|
|
|
|
post-extract {
|
|
fs-traverse item ${worksrcpath} {
|
|
if {[file isdirectory ${item}]} {
|
|
file attributes ${item} -permissions a+rx
|
|
} else {
|
|
file attributes ${item} -permissions a+r
|
|
}
|
|
}
|
|
}
|
|
|
|
patchfiles patch-dylib.diff \
|
|
patch-ldflags.diff \
|
|
patch-taucs-build.diff
|
|
|
|
configure.pre_args
|
|
configure.universal_args
|
|
|
|
configure.post_args-append \
|
|
" && printenv >> config/${os.platform}.mk"
|
|
|
|
configure.env-append PREFIX=${prefix} \
|
|
LIBMETIS=-lmetis \
|
|
LIBF77=-lf2c \
|
|
LIBC= \
|
|
OSTYPE=${os.platform}
|
|
|
|
pre-configure {
|
|
configure.env-append \
|
|
LIBBLAS=${linalglib} \
|
|
LIBLAPACK=
|
|
}
|
|
|
|
if {${build_arch} eq "ppc" || ${build_arch} eq "ppc64"} {
|
|
configure.cflags-append \
|
|
-faltivec
|
|
}
|
|
|
|
destroot {
|
|
foreach dir {bin lib} {
|
|
delete ${worksrcpath}/${dir}/${os.platform}/exists.log
|
|
}
|
|
xinstall -m 0755 {*}[glob ${worksrcpath}/bin/${os.platform}/*] ${destroot}${prefix}/bin/
|
|
#xinstall -m 0644 {*}[glob ${worksrcpath}/lib/${os.platform}/*.a] ${destroot}${prefix}/lib/
|
|
xinstall -m 0755 {*}[glob ${worksrcpath}/lib/${os.platform}/*.dylib] ${destroot}${prefix}/lib/
|
|
xinstall -m 0644 {*}[glob ${worksrcpath}/build/${os.platform}/*.h] ${destroot}${prefix}/include/
|
|
xinstall -m 0644 {*}[glob ${worksrcpath}/src/*.h] ${destroot}${prefix}/include/
|
|
ln -s libtaucs.1.dylib ${destroot}${prefix}/lib/libtaucs.dylib
|
|
xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
|
|
xinstall -m 0644 {*}[glob ${worksrcpath}/doc/*.pdf] ${destroot}${prefix}/share/doc/${name}/
|
|
}
|
|
|
|
livecheck.type regex
|
|
livecheck.url ${homepage}
|
|
livecheck.regex "(\[0-9.\]+)/${distfiles}"
|