smlinux/base/fftw/fftw.SMBuild
PktSurf 06bd44b23a Changes in base section
-> Upgraded boost to 1.86.0, fixed broken symlinks
-> Discarded chrony raspberry pi conf example and README
-> Allow cmake to install elf binaries in /usr instead of /usr/bin
   temporarily, also enable options to link cmake against system deps
-> Removed aarch64 raspberry pi 64 build option in fftw and flac
-> Disable generation of nls files in gawk
-> Added /usr to some build files
2024-10-16 23:06:11 +05:30

62 lines
1.2 KiB
Text
Executable file

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=fftw
version=3.3.8
build=1sml
homepage="http://www.fftw.org/"
download="https://www.fftw.org/fftw-$version.tar.gz"
desc="Collection of fast C routines for computing the Discrete Fourier Transform in multiple dimensions"
requires="gcc-libs"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
sed -i 's@-mtune=native@$CFLAGS@g' configure
# Default compile options
defconfopts() {
./configure \
--prefix=/usr \
--bindir=/bin \
--enable-shared \
--disable-static \
--enable-threads \
$liboptions
}
defmakeopts() {
make
make install DESTDIR=$pkg
make clean
unset liboptions
}
# Standard build
defconfopts
defmakeopts
# Build with floating-point libs
liboptions=--enable-float
defconfopts
defmakeopts
# Build with double-precision libs
liboptions=--enable-long-double
defconfopts
make
make install DESTDIR=$pkg
cp COPY* $pkgdocs/
mkfinalpkg
}
sha512sums="
a272fd08bf852011dfe0add9f374bac8d1f52798961eb9789677177d3e2455a706e7f56ab5bb2428445c799edb72ad3851cefe298a38f226f400505cda967269 fftw-3.3.8.tar.lz
"