1 | # -*- 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 |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup compilers 1.0 |
---|
5 | |
---|
6 | name taucs |
---|
7 | version 2.2 |
---|
8 | categories maths |
---|
9 | platforms darwin |
---|
10 | license LGPL |
---|
11 | maintainers {gmail.com:mark.brethen @mbrethen} openmaintainer |
---|
12 | |
---|
13 | description C library of sparse linear solvers |
---|
14 | |
---|
15 | long_description |
---|
16 | |
---|
17 | homepage https://www.tau.ac.il/~stoledo/taucs/ |
---|
18 | master_sites ${homepage}${version} |
---|
19 | dist_subdir ${name}/${version} |
---|
20 | distname ${name} |
---|
21 | extract.suffix .tgz |
---|
22 | extract.mkdir yes |
---|
23 | |
---|
24 | checksums rmd160 e7621bc65af42432e708318e93bce8958bf3a482 \ |
---|
25 | sha256 fc13dae767db5e9035b1ce63036a16d3a260aad784f461e073f1150a078a77e4 \ |
---|
26 | size 1573863 |
---|
27 | |
---|
28 | depends_lib-append port:metis |
---|
29 | |
---|
30 | compilers.choose cc f77 |
---|
31 | compilers.setup require_fortran |
---|
32 | |
---|
33 | post-extract { |
---|
34 | fs-traverse item ${worksrcpath} { |
---|
35 | if [file isdirectory ${item}] { |
---|
36 | file attributes ${item} -permissions a+rx |
---|
37 | } else { |
---|
38 | file attributes ${item} -permissions a+r |
---|
39 | } |
---|
40 | } |
---|
41 | } |
---|
42 | |
---|
43 | patchfiles patch-taucs-build.diff \ |
---|
44 | LDFLAGS.patch \ |
---|
45 | dylib.patch |
---|
46 | |
---|
47 | universal_variant no |
---|
48 | |
---|
49 | pre-configure { |
---|
50 | configure.env OSTYPE=${ostype} |
---|
51 | } |
---|
52 | |
---|
53 | configure.pre_args |
---|
54 | configure.universal_args |
---|
55 | |
---|
56 | post-configure { |
---|
57 | global ostype |
---|
58 | reinplace "s|@@CC@@|${configure.cc}|g" \ |
---|
59 | ${worksrcpath}/config/${ostype}.mk |
---|
60 | reinplace "s|@@CFLAGS@@|${configure.cflags}|g" \ |
---|
61 | ${worksrcpath}/config/${ostype}.mk |
---|
62 | reinplace "s|@@FC@@|${configure.f77}|g" \ |
---|
63 | ${worksrcpath}/config/${ostype}.mk |
---|
64 | reinplace "s|@@FFLAGS@@|${configure.fflags}|g" \ |
---|
65 | ${worksrcpath}/config/${ostype}.mk |
---|
66 | reinplace "s|@@LDFLAGS@@|${configure.ldflags}|g" \ |
---|
67 | ${worksrcpath}/config/${ostype}.mk |
---|
68 | } |
---|
69 | |
---|
70 | build.args PREFIX=${prefix} |
---|
71 | |
---|
72 | destroot { |
---|
73 | foreach dir {bin lib} { |
---|
74 | delete ${worksrcpath}/${dir}/${ostype}/exists.log |
---|
75 | delete ${destroot}${prefix}/${dir} |
---|
76 | copy ${worksrcpath}/${dir}/${ostype} ${destroot}${prefix}/${dir} |
---|
77 | } |
---|
78 | ln -s libtaucs.1.dylib ${destroot}${prefix}/lib/libtaucs.dylib |
---|
79 | } |
---|
80 | |
---|
81 | platform darwin { |
---|
82 | set ostype darwin |
---|
83 | } |
---|
84 | |
---|
85 | platform powerpc { |
---|
86 | configure.cflags-append -faltivec |
---|
87 | } |
---|
88 | |
---|
89 | livecheck.type regex |
---|
90 | livecheck.url ${homepage} |
---|
91 | livecheck.regex "(\[0-9.\]+)/${distfiles}" |
---|