milis/talimatname/genel/s/su2/talimat

26 lines
958 B
Plaintext
Raw Normal View History

2018-08-28 15:55:19 +02:00
# Tanım: Parsiyel diferansiyel denklemlerin (PDE) analizi ve PDE ile kısıtlı optimizasyon problemleri için kütüphane
2018-07-03 07:13:10 +02:00
# URL: http://su2.stanford.edu/index.html
# Paketçi: milisarge
# Gerekler: git python3 openmpi
# Grup: sistem
isim=su2
surum=6.1.0
devir=1
kaynak=(https://github.com/su2code/SU2/archive/v$surum.tar.gz::$isim-$surum.tar.gz)
derle() {
cd "${SRC}/SU2-$surum"
#autoreconf -i
install -d $PKG/usr/share/openmpi
cp /usr/share/openmpi/mpicxx-wrapper-data.txt $PKG/usr/share/openmpi/mpicxx-wrapper-data.txt
cp /usr/share/openmpi/mpicc-wrapper-data.txt $PKG/usr/share/openmpi/mpicc-wrapper-data.txt
echo "export PATH=\${PATH}:/opt/${isim}/bin" > "${SRC}/su2_env.sh"
./configure --prefix="/opt/${isim}" --enable-mpi --with-cxx=/usr/bin/mpicxx --with-cc=/usr/bin/mpicc CXXFLAGS="-O3"
make
make prefix="${PKG}/opt/${isim}" install
install -D -m755 "${SRC}/su2_env.sh" "${PKG}/etc/profile.d/su2_env.sh"
rm -rf $PKG/usr
}