From e470bdac0a118ef8f456a3724d56717518938b9e Mon Sep 17 00:00:00 2001 From: thomas Date: Wed, 22 Aug 2018 14:23:44 +0200 Subject: [PATCH] fftw: Update from 3.3.3 to 3.3.8 Rewrote the beefile to build all flavours of fftw. I'm aware that this bee file breaks with almost everything from the book 'good bee style'. If anyone has a better solution to consistently build fftw for various datatypes with bee -- let me know. Flames welcome :) https://www.youtube.com/watch?v=en1uwIzI3SE (Fire - The Crazy World Of Arthur Brown) --- fftw-3.3.3-1.bee | 40 ---------------------------- fftw.be0 | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 40 deletions(-) delete mode 100755 fftw-3.3.3-1.bee create mode 100755 fftw.be0 diff --git a/fftw-3.3.3-1.bee b/fftw-3.3.3-1.bee deleted file mode 100755 index a7f8bbb10..000000000 --- a/fftw-3.3.3-1.bee +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env beesh - -SRCURL[0]="ftp://ftp.fftw.org/pub/fftw/fftw-${PKGVERSION}.tar.gz" - -PATCHURL[0]="" - -# BEE_CONFIGURE=compat - -# BEE_BUILDTYPE= - -# EXCLUDE="" - -# build_in_sourcedir - - - -#mee_extract() { -# bee_extract ${@} -#} - -#mee_patch() { -# bee_patch ${@} -#} - -mee_configure() { - bee_configure \ - --enable-threads \ - --with-pic - - -} - -#mee_build() { -# bee_build -#} - -#mee_install() { -# bee_install -#} - diff --git a/fftw.be0 b/fftw.be0 new file mode 100755 index 000000000..27e6cdce4 --- /dev/null +++ b/fftw.be0 @@ -0,0 +1,69 @@ +#!/usr/bin/env beesh + +# BEE_VERSION fftw-3.3.8-0 + +SRCURL[0]="ftp://ftp.fftw.org/pub/fftw/fftw-${PKGVERSION}.tar.gz" + +mee_configure() { + : +} + +# this gives the standard flags in DEFCONFIG +BEE_BUILDTYPE=autotools + +mee_build() { + + cd ${S} + + # fix cflags + local MEE_CFLAGS="-O3 -fPIC" + + sed -i "s|-mtune=native|$MEE_CFLAGS|" configure + + SIMD='--enable-sse2 --enable-avx' + BUILD='--enable-threads --enable-openmp' + + ./configure \ + $DEFCONFIG \ + $BUILD \ + $SIMD + + make -j $(nproc) + make install DESTDIR=${D} + + make clean + + ./configure \ + $DEFCONFIG \ + $BUILD \ + $SIMD \ + --enable-single + + make -j $(nproc) + make install DESTDIR=${D} + + make clean + + ./configure \ + $DEFCONFIG \ + $BUILD \ + --enable-long-double + + make -j $(nproc) + make install DESTDIR=${D} + + make clean + + ./configure \ + $DEFCONFIG \ + $BUILD \ + --enable-quad-precision + + make -j $(nproc) + make install DESTDIR=${D} + +} + +mee_install() { + : +}