milis/talimatname/genel/s/su2/talimat

26 lines
958 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Parsiyel diferansiyel denklemlerin (PDE) analizi ve PDE ile kısıtlı optimizasyon problemleri için kütüphane
# 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
}