forked from alisw/alidist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fftw3.sh
35 lines (32 loc) · 871 Bytes
/
fftw3.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package: FFTW3
version: "%(tag_basename)s"
tag: v3.3.9
source: https://github.com/alisw/fftw3
prefer_system: (?!slc5.*)
build_requires:
- alibuild-recipe-tools
- CMake
---
#!/bin/bash -e
case $ARCHITECTURE in
osx_arm64)
cmake $SOURCEDIR \
-DCMAKE_INSTALL_PREFIX:PATH="${INSTALLROOT}" \
-DCMAKE_INSTALL_LIBDIR:PATH="lib" \
-DENABLE_FLOAT=ON
;;
*)
cmake $SOURCEDIR \
-DCMAKE_INSTALL_PREFIX:PATH="${INSTALLROOT}" \
-DCMAKE_INSTALL_LIBDIR:PATH="lib" \
-DENABLE_FLOAT=ON \
-DENABLE_AVX=ON
;;
esac
make ${JOBS+-j $JOBS}
make install
#Modulefile
MODULEDIR="$INSTALLROOT/etc/modulefiles"
MODULEFILE="$MODULEDIR/$PKGNAME"
mkdir -p "$MODULEDIR"
alibuild-generate-module --bin --lib > $MODULEFILE