mc.mk 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ################################################################################
  2. #
  3. # mc
  4. #
  5. ################################################################################
  6. MC_VERSION = 4.8.30
  7. MC_SOURCE = mc-$(MC_VERSION).tar.xz
  8. MC_SITE = http://ftp.midnight-commander.org
  9. MC_LICENSE = GPL-3.0+
  10. MC_LICENSE_FILES = COPYING
  11. MC_DEPENDENCIES = libglib2 host-pkgconf $(TARGET_NLS_DEPENDENCIES)
  12. MC_CONF_ENV = \
  13. CFLAGS="$(TARGET_CFLAGS) -std=c99" \
  14. LIBS=$(TARGET_NLS_LIBS)
  15. ifeq ($(BR2_PACKAGE_GPM),y)
  16. MC_CONF_OPTS += --with-gpm-mouse
  17. MC_DEPENDENCIES += gpm
  18. else
  19. MC_CONF_OPTS += --without-gpm-mouse
  20. endif
  21. ifeq ($(BR2_PACKAGE_LIBSSH2),y)
  22. MC_CONF_OPTS += --enable-vfs-sftp
  23. MC_DEPENDENCIES += libssh2
  24. else
  25. MC_CONF_OPTS += --disable-vfs-sftp
  26. endif
  27. # mc prefers slang, so use that if enabled, otherwise
  28. # fallback to using ncurses.
  29. # Either or both will be enabled, but we prefer slang.
  30. ifeq ($(BR2_PACKAGE_SLANG),y)
  31. MC_DEPENDENCIES += slang
  32. MC_CONF_OPTS += --with-screen=slang
  33. else
  34. MC_DEPENDENCIES += ncurses
  35. MC_CONF_OPTS += --with-screen=ncurses
  36. endif
  37. ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
  38. MC_CONF_OPTS += --with-x
  39. MC_DEPENDENCIES += xlib_libX11
  40. else
  41. MC_CONF_OPTS += --without-x
  42. endif
  43. $(eval $(autotools-package))