milis/talimatname/genel/f/fftw/talimat

44 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Ayrık Fourier dönüşümü (DFT) hesaplamak için bir kütüphane.
2016-02-24 01:27:23 +01:00
# URL: http://www.fftw.org/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler:
2018-08-15 10:46:50 +02:00
# Grup: kütüphane
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
isim=fftw
surum=3.3.4
devir=3
kaynak=(http://www.fftw.org/$isim-$surum.tar.gz)
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2016-02-24 01:27:23 +01:00
cd $SRC
2017-10-28 14:10:23 +02:00
cp -a $isim-$surum $isim-$surum-double
cp -a $isim-$surum $isim-$surum-long-double
mv $isim-$surum $isim-$surum-single
2016-02-24 01:27:23 +01:00
# use upstream default CFLAGS while keeping our -march/-mtune
CFLAGS+=" -O3 -fomit-frame-pointer -malign-double -fstrict-aliasing -ffast-math"
CONFIGURE="./configure F77=gfortran --prefix=/usr \
--enable-shared --enable-threads \
--enable-openmp"
# build double precision
2017-10-28 14:10:23 +02:00
cd $SRC/$isim-$surum-double
2016-02-24 01:27:23 +01:00
$CONFIGURE --enable-sse2 --enable-avx
make
make DESTDIR=$PKG install
# build & install long double precission
2017-10-28 14:10:23 +02:00
cd $SRC/$isim-$surum-long-double
2016-02-24 01:27:23 +01:00
$CONFIGURE --enable-long-double
make
make DESTDIR=$PKG install
# build & install single precision
2017-10-28 14:10:23 +02:00
cd $SRC/$isim-$surum-single
2016-02-24 01:27:23 +01:00
$CONFIGURE --enable-float --enable-sse --enable-avx
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share/info/dir
}