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.

60 lines
1.7 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.5
  10. PKG_RELEASE:=3
  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:=a63ecb93182134ba4293fd5f22d6e08ca417caafa244afaa751cbfddf6415b13
  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. CMAKE_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/host-build.mk
  22. include $(INCLUDE_DIR)/cmake.mk
  23. define Package/libdouble-conversion
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=Efficient binary-decimal and decimal-binary conversion routines for IEEE doubles
  27. URL:=https://github.com/google/double-conversion
  28. DEPENDS:=+libstdcpp
  29. endef
  30. define Package/libdouble-conversion/description
  31. double-conversion provides binary-decimal and decimal-binary routines for IEEE doubles.
  32. The library consists of efficient conversion routines that have been extracted
  33. from the V8 JavaScript engine. The code has been refactored and improved so that
  34. it can be used more easily in other projects.
  35. endef
  36. CMAKE_OPTIONS += \
  37. -DBUILD_SHARED_LIBS=ON \
  38. -DBUILD_TESTING=OFF
  39. TARGET_CXXFLAGS += -ffunction-sections -fdata-sections -fno-rtti -flto
  40. TARGET_LDFLAGS += -Wl,--gc-sections
  41. define Package/libdouble-conversion/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,libdouble-conversion))
  46. $(eval $(call HostBuild))