-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a script to download and build fftw3
This script is used to build the macOS wheel
- Loading branch information
1 parent
b907fc8
commit d15051d
Showing
6 changed files
with
76 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,8 @@ RELEASE-VERSION | |
|
||
# IDE | ||
.vscode | ||
|
||
# FFTW3 files | ||
fftw3/ | ||
fftw-3.*/ | ||
fftw-3.*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
# Download and build the FFTW3 library | ||
# | ||
# This script is part of the Stockwell project. | ||
# | ||
# :copyright: | ||
# 2024 Claudio Satriano <satriano@ipgp.fr> | ||
# | ||
# :license: | ||
# GNU General Public License v3.0 or later. | ||
# (https://www.gnu.org/licenses/gpl-3.0.html) | ||
|
||
# exit on error | ||
set -e | ||
|
||
# Get the script directory and move to it | ||
scriptdir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) | ||
cd "$scriptdir" | ||
|
||
# remove any existing FFTW3 package and directory | ||
rm -rf fftw-3.3.10.tar.gz fftw-3.3.10 fftw3 | ||
|
||
# Download the FFTW3 library and unpack it | ||
curl -O http://www.fftw.org/fftw-3.3.10.tar.gz | ||
tar -xzf fftw-3.3.10.tar.gz | ||
mkdir -p fftw3 | ||
|
||
# Build the FFTW3 library | ||
cd fftw-3.3.10 | ||
./configure --prefix="$scriptdir/fftw3" --enable-threads | ||
make -s | ||
make -s install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters