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.

69 lines
1.8 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.1
  10. PKG_RELEASE:=1
  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:=c49a6b3fa9c917f827b156c8e0799ece88ae50440487a99fc2f284cfd357a5b9
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/double-conversion-$(PKG_VERSION)
  15. PKG_MAINTAINER:=
  16. PKG_LICENSE:=BSD-3c
  17. PKG_LICENSE_FILES:=COPYING LICENSE
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/libdouble-conversion
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=Efficient binary-decimal and decimal-binary conversion routines for IEEE doubles
  24. URL:=https://github.com/google/double-conversion
  25. DEPENDS:=+libstdcpp
  26. endef
  27. define Package/libdouble-conversion/description
  28. double-conversion provides binary-decimal and decimal-binary routines for IEEE doubles.
  29. The library consists of efficient conversion routines that have been extracted
  30. from the V8 JavaScript engine. The code has been refactored and improved so that
  31. it can be used more easily in other projects.
  32. endef
  33. CMAKE_OPTIONS += \
  34. -DBUILD_SHARED_LIBS=ON \
  35. -DBUILD_TESTING=OFF
  36. define Build/InstallDev
  37. $(INSTALL_DIR) \
  38. $(1)/usr/lib \
  39. $(1)/usr/include/double-conversion
  40. $(CP) \
  41. $(PKG_INSTALL_DIR)/usr/include/* \
  42. $(1)/usr/include/
  43. $(INSTALL_DATA) \
  44. $(PKG_INSTALL_DIR)/usr/lib/lib*.so* \
  45. $(1)/usr/lib/
  46. endef
  47. define Package/libdouble-conversion/install
  48. $(INSTALL_DIR) \
  49. $(1)/usr/lib
  50. $(INSTALL_DATA) \
  51. $(PKG_INSTALL_DIR)/usr/lib/lib*.so* \
  52. $(1)/usr/lib/
  53. endef
  54. $(eval $(call BuildPackage,libdouble-conversion))