mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 04:47:13 +08:00
openmpi 2.1.2
This commit is contained in:
parent
488275f06a
commit
a1844d9303
@ -1,21 +1,22 @@
|
||||
|
||||
pkgname=hwloc
|
||||
pkgver=1.11.3
|
||||
pkgver=1.11.8
|
||||
pkgmin="${pkgver%.*}"
|
||||
pkgrel=2
|
||||
pkgrel=1
|
||||
pkgdesc="Portable Hardware Locality is a portable abstraction of hierarchical architectures"
|
||||
arch=('x86_64')
|
||||
url="http://www.open-mpi.org/projects/hwloc/"
|
||||
license=('BSD')
|
||||
depends=('sh' 'pciutils' 'libxml2')
|
||||
makedepends=('pkg-config')
|
||||
depends=('numactl' 'libtool')
|
||||
optdepends=('cairo' 'libxml2' 'pciutils')
|
||||
makedepends=('cairo' 'libxml2' 'pciutils')
|
||||
options=('!docs')
|
||||
source=(http://www.open-mpi.org/software/hwloc/v${pkgmin}/downloads/${pkgname}-${pkgver}.tar.bz2)
|
||||
sha1sums=('66e71c50dbbd483c0c1cdac4dbced6ce19fcbcb3')
|
||||
sha1sums=('5d6164400a49e2c77a7e1e98dd0247a1f7e6d4cf')
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
./configure --prefix=/usr --disable-cairo
|
||||
./configure --prefix=/usr --disable-cairo --enable-plugins
|
||||
make
|
||||
}
|
||||
|
||||
|
@ -1,18 +1,17 @@
|
||||
|
||||
pkgname=openmpi
|
||||
pkgver=2.0.0
|
||||
pkgver=2.1.2
|
||||
pkgmin="${pkgver%.*}"
|
||||
pkgrel=1
|
||||
pkgdesc='High performance message passing library (MPI)'
|
||||
arch=('x86_64')
|
||||
url='http://www.open-mpi.org'
|
||||
license=(custom)
|
||||
depends=('libltdl' 'hwloc>=1.9')
|
||||
depends=('libltdl' 'hwloc' 'openssh')
|
||||
makedepends=('inetutils' 'valgrind' 'gcc-fortran')
|
||||
optdepends=('gcc-fortran: fortran support')
|
||||
options=(staticlibs)
|
||||
source=(http://www.open-mpi.org/software/ompi/v${pkgmin}/downloads/${pkgname}-${pkgver}.tar.bz2)
|
||||
sha1sums=('a34f07a0e94af4ccd8080d74827befd61824c6c3')
|
||||
sha1sums=('4d43bb407eb8b9da099a555e8dc083352c6a1d02')
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
@ -22,7 +21,9 @@ build() {
|
||||
--enable-mpi-fortran=all \
|
||||
--libdir=/usr/lib/${pkgname} \
|
||||
--with-threads=posix \
|
||||
--enable-mpi-thread-multiple \
|
||||
--enable-smp-locks \
|
||||
--enable-builtin-atomics \
|
||||
--with-valgrind \
|
||||
--enable-memchecker \
|
||||
--enable-pretty-print-stacktrace \
|
||||
@ -45,20 +46,14 @@ package() {
|
||||
cd $pkgname-$pkgver
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
# FS#28583
|
||||
install -d -m 755 "$pkgdir"/usr/lib/pkgconfig
|
||||
for i in ompi-c.pc ompi-cxx.pc ompi-f77.pc ompi-f90.pc ompi.pc; do
|
||||
ln -sf /usr/lib/openmpi/pkgconfig/$i "$pkgdir"/usr/lib/pkgconfig/
|
||||
done
|
||||
|
||||
# Openmpi's otfinfo conflicts with the one from texlive
|
||||
#mv "$pkgdir"/usr/bin/otfinfo{,mpi}
|
||||
# FS#28583
|
||||
install -dm 755 "${pkgdir}/usr/lib/pkgconfig"
|
||||
for i in ompi-c.pc ompi-cxx.pc ompi-f77.pc ompi-f90.pc ompi.pc; do
|
||||
ln -sf "/usr/lib/openmpi/pkgconfig/${i}" "${pkgdir}/usr/lib/pkgconfig/"
|
||||
done
|
||||
|
||||
# Remove dangling symlink and useless file
|
||||
#rm "$pkgdir"/usr/share/vampirtrace/config.log
|
||||
|
||||
install -d -m 755 "${pkgdir}"/etc/ld.so.conf.d
|
||||
echo "/usr/lib/${pkgname}" > "${pkgdir}"/etc/ld.so.conf.d/${pkgname}.conf
|
||||
|
||||
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
||||
install -dm 755 "${pkgdir}/etc/ld.so.conf.d"
|
||||
echo "/usr/lib/${pkgname}" > "${pkgdir}"/etc/ld.so.conf.d/${pkgname}.conf
|
||||
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user