OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../fftw3/fftw3.conf
  5. # Copyright (C) 2011 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. # shared library support has to be enabled explicitely
  16. [ "$SDECFG_STATIC" != 1 ] && var_append extraconfopt " " "--enable-shared"
  17. # Optimization
  18. [ "$arch" = "x86" ] && var_append confopt " " "--enable-i386-hacks"
  19. var_append confopt " " "--enable-threads"
  20. if [ ! "`type -p f77`" ] ; then
  21. var_append confopt ' ' "--disable-fortran"
  22. fi
  23. # There are 3 APIs available which have to be build seperately
  24. # 1. double precision (default)
  25. # 2. single precision (--enable-single or --enable-float)
  26. # 3. long-double precision (--enable-long-double)
  27. buildloops=3
  28. pkg_fftw3_preconf() {
  29. if [ $buildloop -eq 2 ]; then
  30. var_append extraconfopt " " "--enable-float"
  31. elif [ $buildloop -eq 3 ]; then
  32. var_remove extraconfopt " " "--enable-float"
  33. var_append extraconfopt " " "--enable-long-double"
  34. fi
  35. }
  36. hook_add preconf 5 'pkg_fftw3_preconf'