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 | PortGroup active_variants 1.1 |
---|
6 | |
---|
7 | name CalculiX-ccx |
---|
8 | version 2.14 |
---|
9 | categories cad |
---|
10 | platforms darwin |
---|
11 | maintainers openmaintainer \ |
---|
12 | gmail.com:ian.rees gmail.com:mark.brethen |
---|
13 | license GPL-2+ |
---|
14 | |
---|
15 | description A three-dimensional finite element solver |
---|
16 | |
---|
17 | long_description CalculiX is an open source explicit and implicit finite element analysis \ |
---|
18 | suite with its own pre/post processor. |
---|
19 | |
---|
20 | homepage http://www.calculix.de/ |
---|
21 | master_sites http://www.dhondt.de/ |
---|
22 | dist_subdir CalculiX |
---|
23 | distname ccx_${version} |
---|
24 | |
---|
25 | use_bzip2 yes |
---|
26 | |
---|
27 | distfiles ${distname}.src${extract.suffix} \ |
---|
28 | ${distname}.htm${extract.suffix} \ |
---|
29 | ${distname}.ps${extract.suffix} \ |
---|
30 | ${distname}.test${extract.suffix} |
---|
31 | |
---|
32 | checksums ${distname}.src${extract.suffix} \ |
---|
33 | rmd160 69f11bdecaf193bb6f8c9e63673daac3378d25e2 \ |
---|
34 | sha256 59de9965d8f69141a34519101f7dd932c7d8d2be15480b31062b92512545fec4 \ |
---|
35 | size 1160412 \ |
---|
36 | ${distname}.htm${extract.suffix} \ |
---|
37 | rmd160 76c8997548e6837bad03d487c29f6a1a33b9ed41 \ |
---|
38 | sha256 4e697b40e68c12a7b9e67516b59ec18ee4779ab1719c7582fc67d38a81ae8988 \ |
---|
39 | size 2218811 \ |
---|
40 | ${distname}.ps${extract.suffix} \ |
---|
41 | rmd160 64c08c1bff0caa855394063c199f0dd8c7ab6d62 \ |
---|
42 | sha256 362897a739939d247e623a737b9c80313222f1f0e113b310b78c883d59f22128 \ |
---|
43 | size 2674965 \ |
---|
44 | ${distname}.test${extract.suffix} \ |
---|
45 | rmd160 1083b557db5e45ac18b7b129ac01bdfd361ca4ef \ |
---|
46 | sha256 d0b8b7f4aa25691e703b3b91e1d4280fa73967380a7c3d110f868868c48b4003 \ |
---|
47 | size 9661509 |
---|
48 | |
---|
49 | depends_lib-append port:arpack \ |
---|
50 | port:metis \ |
---|
51 | port:spooles \ |
---|
52 | port:taucs \ |
---|
53 | port:vecLibFort |
---|
54 | |
---|
55 | require_active_variants arpack accelerate |
---|
56 | |
---|
57 | extract.mkdir yes |
---|
58 | extract.post_args-append --strip-components=3 |
---|
59 | |
---|
60 | patchfiles patch-ccx-build.diff |
---|
61 | |
---|
62 | compilers.choose cc f77 |
---|
63 | compilers.setup require_fortran |
---|
64 | |
---|
65 | use_configure no |
---|
66 | use_parallel_build no |
---|
67 | |
---|
68 | build.dir ${worksrcpath}/src |
---|
69 | build.target |
---|
70 | build.args-append LDFLAGS=-L${prefix}/lib |
---|
71 | |
---|
72 | pre-build { |
---|
73 | reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/src/Makefile |
---|
74 | reinplace "s|@@CC@@|${configure.cc}|g" ${worksrcpath}/src/Makefile |
---|
75 | reinplace "s|@@FC@@|${configure.f77}|g" ${worksrcpath}/src/Makefile |
---|
76 | } |
---|
77 | |
---|
78 | destroot { |
---|
79 | set docsdir ${prefix}/share/doc/CalculiX/${distname} |
---|
80 | set examplesdir ${prefix}/share/examples/${distname} |
---|
81 | xinstall -d ${destroot}${docsdir} |
---|
82 | xinstall -d ${destroot}${examplesdir} |
---|
83 | |
---|
84 | xinstall -m 755 ${worksrcpath}/src/${distname} ${destroot}${prefix}/bin/ccx |
---|
85 | copy {*}[glob ${worksrcpath}/doc/*] ${destroot}${docsdir} |
---|
86 | copy ${worksrcpath}/test ${destroot}${examplesdir} |
---|
87 | } |
---|
88 | |
---|
89 | universal_variant no |
---|
90 | |
---|
91 | livecheck.type regex |
---|
92 | livecheck.url http://www.dhondt.de/ |
---|
93 | livecheck.regex {${distname}.src} |
---|