octave.mk 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. ################################################################################
  2. #
  3. # octave
  4. #
  5. ################################################################################
  6. OCTAVE_VERSION = 8.4.0
  7. OCTAVE_SITE = $(BR2_GNU_MIRROR)/octave
  8. OCTAVE_SOURCE = octave-$(OCTAVE_VERSION).tar.lz
  9. OCTAVE_LICENSE = GPL-3.0+
  10. OCTAVE_LICENSE_FILES = COPYING
  11. OCTAVE_AUTORECONF = YES
  12. OCTAVE_CONF_OPTS = --disable-java
  13. OCTAVE_DEPENDENCIES = \
  14. host-gperf \
  15. host-pkgconf \
  16. openblas \
  17. pcre2
  18. ifeq ($(BR2_PACKAGE_BZIP2),y)
  19. OCTAVE_CONF_OPTS += --with-bz2
  20. OCTAVE_DEPENDENCIES += bzip2
  21. else
  22. OCTAVE_CONF_OPTS += --without-bz2
  23. endif
  24. ifeq ($(BR2_PACKAGE_GRAPHICSMAGICK),y)
  25. OCTAVE_CONF_OPTS += --with-magick=GraphicsMagick++
  26. OCTAVE_DEPENDENCIES += graphicsmagick
  27. else ifeq ($(BR2_PACKAGE_IMAGEMAGICK),y)
  28. OCTAVE_CONF_OPTS += --with-magick=ImageMagick++
  29. OCTAVE_DEPENDENCIES += imagemagick
  30. else
  31. OCTAVE_CONF_OPTS += --without-magick
  32. endif
  33. ifeq ($(BR2_PACKAGE_LIBCURL),y)
  34. OCTAVE_CONF_OPTS += --with-curl
  35. OCTAVE_DEPENDENCIES += libcurl
  36. else
  37. OCTAVE_CONF_OPTS += --without-curl
  38. endif
  39. ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
  40. OCTAVE_CONF_OPTS += --with-sndfile
  41. OCTAVE_DEPENDENCIES += libsndfile
  42. else
  43. OCTAVE_CONF_OPTS += --without-sndfile
  44. endif
  45. ifeq ($(BR2_PACKAGE_OPENSSL),y)
  46. OCTAVE_CONF_OPTS += --with-openssl=yes
  47. OCTAVE_DEPENDENCIES += openssl
  48. else
  49. OCTAVE_CONF_OPTS += --without-openssl
  50. endif
  51. ifeq ($(BR2_PACKAGE_READLINE),y)
  52. OCTAVE_CONF_OPTS += \
  53. --enable-readline \
  54. --with-libreadline-prefix=$(STAGING_DIR)/usr
  55. OCTAVE_DEPENDENCIES += readline
  56. else
  57. OCTAVE_CONF_OPTS += --disable-readline
  58. endif
  59. ifeq ($(BR2_PACKAGE_ZLIB),y)
  60. OCTAVE_CONF_OPTS += --with-z
  61. OCTAVE_DEPENDENCIES += zlib
  62. else
  63. OCTAVE_CONF_OPTS += --without-z
  64. endif
  65. $(eval $(autotools-package))