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.

73 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2008-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libdouble-conversion
  9. PKG_VERSION:=3.1.4
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=double-conversion-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/google/double-conversion/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=95004b65e43fefc6100f337a25da27bb99b9ef8d4071a36a33b5e83eb1f82021
  14. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/double-conversion-$(PKG_VERSION)
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/double-conversion-$(PKG_VERSION)
  16. PKG_MAINTAINER:=
  17. PKG_LICENSE:=BSD-3c
  18. PKG_LICENSE_FILES:=COPYING LICENSE
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/host-build.mk
  21. include $(INCLUDE_DIR)/cmake.mk
  22. define Package/libdouble-conversion
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=Efficient binary-decimal and decimal-binary conversion routines for IEEE doubles
  26. URL:=https://github.com/google/double-conversion
  27. DEPENDS:=+libstdcpp
  28. endef
  29. define Package/libdouble-conversion/description
  30. double-conversion provides binary-decimal and decimal-binary routines for IEEE doubles.
  31. The library consists of efficient conversion routines that have been extracted
  32. from the V8 JavaScript engine. The code has been refactored and improved so that
  33. it can be used more easily in other projects.
  34. endef
  35. CMAKE_OPTIONS += \
  36. -DBUILD_SHARED_LIBS=ON \
  37. -DBUILD_TESTING=OFF
  38. define Build/InstallDev
  39. $(INSTALL_DIR) \
  40. $(1)/usr/lib \
  41. $(1)/usr/include/double-conversion
  42. $(CP) \
  43. $(PKG_INSTALL_DIR)/usr/include/* \
  44. $(1)/usr/include/
  45. $(INSTALL_DATA) \
  46. $(PKG_INSTALL_DIR)/usr/lib/lib*.so* \
  47. $(1)/usr/lib/
  48. endef
  49. define Package/libdouble-conversion/install
  50. $(INSTALL_DIR) \
  51. $(1)/usr/lib
  52. $(INSTALL_DATA) \
  53. $(PKG_INSTALL_DIR)/usr/lib/lib*.so* \
  54. $(1)/usr/lib/
  55. endef
  56. $(eval $(call BuildPackage,libdouble-conversion))
  57. $(eval $(call HostBuild))