unixodbc.mk 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ################################################################################
  2. #
  3. # unixodbc
  4. #
  5. ################################################################################
  6. UNIXODBC_VERSION = 2.3.9
  7. UNIXODBC_SOURCE = unixODBC-$(UNIXODBC_VERSION).tar.gz
  8. UNIXODBC_SITE = ftp://ftp.unixodbc.org/pub/unixODBC
  9. UNIXODBC_INSTALL_STAGING = YES
  10. UNIXODBC_LICENSE = LGPL-2.1+ (library), GPL-2.0+ (programs)
  11. UNIXODBC_LICENSE_FILES = COPYING exe/COPYING
  12. UNIXODBC_CPE_ID_VENDOR = unixodbc
  13. UNIXODBC_CONF_OPTS = --enable-drivers --enable-driver-conf
  14. ifeq ($(BR2_PACKAGE_LIBEDIT),y)
  15. UNIXODBC_CONF_OPTS += --enable-editline
  16. UNIXODBC_DEPENDENCIES += libedit
  17. else
  18. UNIXODBC_CONF_OPTS += --disable-editline
  19. endif
  20. ifeq ($(BR2_PACKAGE_LIBICONV),y)
  21. UNIXODBC_CONF_OPTS += --enable-iconv
  22. UNIXODBC_DEPENDENCIES += libiconv
  23. else
  24. UNIXODBC_CONF_OPTS += --disable-iconv
  25. endif
  26. ifeq ($(BR2_PACKAGE_LIBTOOL),y)
  27. UNIXODBC_CONF_OPTS += --without-included-ltdl
  28. UNIXODBC_DEPENDENCIES += libtool
  29. else
  30. UNIXODBC_CONF_OPTS += --with-included-ltdl
  31. endif
  32. ifeq ($(BR2_PACKAGE_READLINE),y)
  33. UNIXODBC_CONF_OPTS += --enable-readline
  34. UNIXODBC_DEPENDENCIES += readline
  35. else
  36. UNIXODBC_CONF_OPTS += --disable-readline
  37. endif
  38. ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
  39. UNIXODBC_CONF_OPTS += --enable-threads
  40. else
  41. UNIXODBC_CONF_OPTS += --disable-threads
  42. endif
  43. $(eval $(autotools-package))