talimat 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Tanım: Ayrık Fourier dönüşümü (DFT) hesaplamak için bir kütüphane.
  2. # URL: http://www.fftw.org/
  3. # Paketçi: milisarge
  4. # Gerekler:
  5. # Grup: kütüphane
  6. isim=fftw
  7. surum=3.3.4
  8. devir=3
  9. kaynak=(http://www.fftw.org/$isim-$surum.tar.gz)
  10. derle() {
  11. cd $SRC
  12. cp -a $isim-$surum $isim-$surum-double
  13. cp -a $isim-$surum $isim-$surum-long-double
  14. mv $isim-$surum $isim-$surum-single
  15. # use upstream default CFLAGS while keeping our -march/-mtune
  16. CFLAGS+=" -O3 -fomit-frame-pointer -malign-double -fstrict-aliasing -ffast-math"
  17. CONFIGURE="./configure F77=gfortran --prefix=/usr \
  18. --enable-shared --enable-threads \
  19. --enable-openmp"
  20. # build double precision
  21. cd $SRC/$isim-$surum-double
  22. $CONFIGURE --enable-sse2 --enable-avx
  23. make
  24. make DESTDIR=$PKG install
  25. # build & install long double precission
  26. cd $SRC/$isim-$surum-long-double
  27. $CONFIGURE --enable-long-double
  28. make
  29. make DESTDIR=$PKG install
  30. # build & install single precision
  31. cd $SRC/$isim-$surum-single
  32. $CONFIGURE --enable-float --enable-sse --enable-avx
  33. make
  34. make DESTDIR=$PKG install
  35. rm -rf $PKG/usr/share/info/dir
  36. }