Skip to content

Commit bdba0e5

Browse files
committed
xyce, trilinos16: new ports for Trilinos 16 and Xyce
1 parent a8c4beb commit bdba0e5

File tree

2 files changed

+158
-0
lines changed

2 files changed

+158
-0
lines changed

science/trilinos16/Portfile

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
PortSystem 1.0
2+
PortGroup cmake 1.1
3+
PortGroup github 1.0
4+
5+
name trilinos16
6+
version 16.1.0
7+
categories science
8+
maintainers {gmail.com:degnan.68k @bpdegnan} \
9+
openmaintainer
10+
license BSD
11+
description Scientific computing libraries including solvers and preconditioners
12+
long_description \
13+
Trilinos is a collection of packages for scientific computing, including \
14+
solvers, preconditioners, nonlinear and optimization libraries, and interfaces \
15+
to third-party libraries. It is designed for flexibility and high performance.
16+
17+
#homepage https://trilinos.github.io/
18+
##note, the project used - instead of . for archive files
19+
#distname trilinos-release-16-1-0
20+
#master_sites https://github.com/trilinos/Trilinos/archive/refs/tags/
21+
#extract.suffix .tar.gz
22+
##note, the mixed capitalization is causing fits with the default build system
23+
#worksrcdir Trilinos-trilinos-release-16-1-0
24+
25+
github.setup trilinos Trilinos trilinos-release-16-1-0
26+
github.tarball_from archive
27+
28+
29+
checksums rmd160 0464487926704ba40cc6f1b20fa631aec7512333 \
30+
sha256 e9651c88f581049457036cfc01b527a9d3903c257338eeeab942befd7452f23a \
31+
size 197260161
32+
33+
depends_build-append port:pkgconfig
34+
35+
depends_lib-append port:gcc13 \
36+
port:OpenBLAS \
37+
port:SuiteSparse \
38+
port:netcdf
39+
40+
configure.args-append \
41+
-DCMAKE_BUILD_TYPE=Release \
42+
-DCMAKE_INSTALL_PREFIX=${prefix} \
43+
-DCMAKE_Fortran_COMPILER=${prefix}/bin/gfortran-mp-13 \
44+
-DCMAKE_CXX_STANDARD=17 \
45+
-DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES=ON \
46+
-DTrilinos_ALLOW_DEPRECATED_PACKAGES=ON \
47+
-DTrilinos_ENABLE_ALL_PACKAGES=OFF \
48+
-DTrilinos_ENABLE_Epetra=ON \
49+
-DTrilinos_ENABLE_EpetraExt=ON \
50+
-DTrilinos_ENABLE_Teuchos=ON \
51+
-DTrilinos_ENABLE_AztecOO=ON \
52+
-DTrilinos_ENABLE_Ifpack=ON \
53+
-DTrilinos_ENABLE_Belos=ON \
54+
-DTrilinos_ENABLE_Amesos=ON \
55+
-DAmesos_ENABLE_KLU=ON \
56+
-DEpetraExt_BUILD_BTF=ON \
57+
-DEpetraExt_BUILD_EXPERIMENTAL=ON \
58+
-DEpetraExt_BUILD_GRAPH_REORDERINGS=ON \
59+
-DTrilinos_ENABLE_COMPLEX_DOUBLE=ON \
60+
-DTrilinos_ENABLE_Sacado=ON \
61+
-DTrilinos_ENABLE_NOX=ON \
62+
-DTrilinos_ENABLE_TrilinosCouplings=ON \
63+
-DNOX_ENABLE_LOCA=ON \
64+
-DTPL_ENABLE_BLAS=ON \
65+
-DTPL_ENABLE_LAPACK=ON \
66+
-DTPL_ENABLE_SuiteSparse=ON \
67+
-DTPL_ENABLE_Netcdf=ON \
68+
-DTPL_Netcdf_INCLUDE_DIRS=${prefix}/include \
69+
-DTPL_Netcdf_LIBRARIES=${prefix}/lib/libnetcdf.dylib \
70+
-DTrilinos_INSTALL_CMAKE_DIR=lib/cmake/Trilinos \
71+
-DTPL_ENABLE_AMD=ON \
72+
-DAMD_INCLUDE_DIRS=${prefix}/include/suitesparse \
73+
-DAMD_LIBRARY_NAMES=amd \
74+
-DAMD_LIBRARY_DIRS=${prefix}/lib \
75+
-DBUILD_SHARED_LIBS=ON
76+

science/xyce/Portfile

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
PortSystem 1.0
2+
PortGroup cmake 1.1
3+
4+
5+
name xyce
6+
version 7.9
7+
categories science
8+
9+
maintainers {gmail.com:degnan.68k @bpdegnan} \
10+
openmaintainer
11+
12+
license GPL-2
13+
description Parallel SPICE-compatible analog circuit simulator
14+
long_description \
15+
Xyce is a SPICE-compatible, high-performance analog circuit simulator \
16+
capable of solving extremely large circuit problems using massively \
17+
parallel computing platforms.
18+
19+
homepage https://xyce.sandia.gov
20+
master_sites https://xyce.sandia.gov/files/xyce/
21+
distname Xyce-${version}
22+
extract.suffix .tar.gz
23+
24+
checksums rmd160 298d502e49427e39a96ebcbb1f193833c9c905ec \
25+
sha256 de2a7227b09a83d5abad36ea9b27a834e2bd2d6547417f27e6576418c80d4f8b
26+
27+
28+
depends_lib-append port:fftw-3 \
29+
port:trilinos16 \
30+
port:SuiteSparse \
31+
port:bison \
32+
port:flex \
33+
port:OpenBLAS \
34+
port:lapack
35+
36+
37+
38+
set trilinos_component_paths [list \
39+
${prefix}/lib/cmake/Epetra \
40+
${prefix}/lib/cmake/EpetraExt \
41+
${prefix}/lib/cmake/TrilinosCouplings \
42+
${prefix}/lib/cmake/AztecOO \
43+
${prefix}/lib/cmake/Ifpack \
44+
${prefix}/lib/cmake/Teuchos \
45+
${prefix}/lib/cmake/Sacado \
46+
${prefix}/lib/cmake/NOX \
47+
${prefix}/lib/cmake/Belos \
48+
${prefix}/lib/cmake/Amesos \
49+
]
50+
51+
52+
configure.args-append \
53+
-DCMAKE_BUILD_TYPE=Release \
54+
-DCMAKE_INSTALL_PREFIX=${prefix} \
55+
-DCMAKE_C_COMPILER=${configure.cc} \
56+
-DCMAKE_CXX_COMPILER=${configure.cxx} \
57+
-DCMAKE_INSTALL_DOCDIR=${prefix}/share/doc/${name} \
58+
-DCMAKE_Fortran_COMPILER=${prefix}/bin/gfortran-mp-13 \
59+
-DCMAKE_CXX_STANDARD=17 \
60+
-DTrilinos_DIR=${prefix} \
61+
-DCMAKE_PREFIX_PATH="${prefix}/lib/cmake" \
62+
-DTrilinos_DIR=${prefix}/lib/cmake/Trilinos \
63+
-DCMAKE_PREFIX_PATH="[join $trilinos_component_paths {;}]"
64+
65+
66+
#there's something weird in cmake that is making things to ${prefix}/doc
67+
post-destroot {
68+
set bad_doc_path ${destroot}${prefix}/doc
69+
if {[file exists ${bad_doc_path}]} {
70+
set good_doc_path ${destroot}${prefix}/share/doc/${name}
71+
xinstall -m 755 -d ${good_doc_path}
72+
73+
# Move known files to correct place
74+
foreach f [glob -nocomplain ${bad_doc_path}/*] {
75+
file rename $f $good_doc_path/
76+
}
77+
78+
# Remove empty /opt/local/doc
79+
file delete -force ${bad_doc_path}
80+
}
81+
}
82+

0 commit comments

Comments
 (0)