1
0

Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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:=2.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_VERSION:=0d25506a2e7fb52928963313343e0237e890059e
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_URL:=https://github.com/google/double-conversion.git
  16. PKG_MD5SUM:=8dd6ac234054f9a6fe7f62ef1c9b5c20
  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))