smlinux/base/fftw/fftw.SMBuild
PktSurf b702d78311 Fixed identation in subshell in build files of following packages:
base/{busybox,enchant,fftw,kmod,llvm,musl}
Replaced CFLAGS and related CFLAGS with += operator for cleanliness
Fixed mkdir commands in:
base/{exiv2,fmt,glib,json-glib}
Fixed file/recompile_magic.mgc.sh script by discarding /usr in base/file build file
Tuned build options in base/flac
Discarded unnecessary CPPFLAGS and printf command in base/flex
Replaced CFLAGS with LDFLAGS in base/gawk
Discarded /usr/bin/update-mime-database with own /etc/rc.d.rc.gtk liner in base/glib's doinst.sh file
Discarded CXXFLAGS liner in base/glib
Discarded mkdir liner in base/initfs
Cause base/llvm build file to properly cd into the smbuild directory smoothly when attempting a rebuild in future
Discarded unnecessary CFLAGS options in base/mksh
Upgraded base/zstd to 1.5.2, rewrote its build options to use cmake build system
2023-03-14 22:36:37 +05:30

63 lines
1.2 KiB
Text
Executable file

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() {
[ "$arch" = "aarch64" ] && \
addconfigopts="--enable-openmp"
./configure \
--prefix="" \
--enable-shared \
--disable-static \
--enable-threads \
$addconfigopts \
$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
"