Makefile (1774B)
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 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=libdouble-conversion 11 PKG_VERSION:=2.0 12 PKG_RELEASE:=1 13 14 PKG_SOURCE_PROTO:=git 15 PKG_SOURCE_VERSION:=0d25506a2e7fb52928963313343e0237e890059e 16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz 17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 18 PKG_SOURCE_URL:=https://github.com/google/double-conversion.git 19 PKG_MD5SUM:=8dd6ac234054f9a6fe7f62ef1c9b5c20 20 PKG_LICENSE_FILES:=COPYING LICENSE 21 22 include $(INCLUDE_DIR)/package.mk 23 include $(INCLUDE_DIR)/cmake.mk 24 25 define Package/libdouble-conversion 26 SECTION:=libs 27 CATEGORY:=Libraries 28 TITLE:=Efficient binary-decimal and decimal-binary conversion routines for IEEE doubles 29 URL:=https://github.com/google/double-conversion 30 DEPENDS:=+libstdcpp 31 endef 32 33 define Package/libdouble-conversion/description 34 double-conversion provides binary-decimal and decimal-binary routines for IEEE doubles. 35 36 The library consists of efficient conversion routines that have been extracted 37 from the V8 JavaScript engine. The code has been refactored and improved so that 38 it can be used more easily in other projects. 39 endef 40 41 CMAKE_OPTIONS += \ 42 -DBUILD_SHARED_LIBS=ON \ 43 -DBUILD_TESTING=OFF 44 45 define Build/InstallDev 46 $(INSTALL_DIR) \ 47 $(1)/usr/lib \ 48 $(1)/usr/include/double-conversion 49 50 $(CP) \ 51 $(PKG_INSTALL_DIR)/usr/include/* \ 52 $(1)/usr/include/ 53 54 $(INSTALL_DATA) \ 55 $(PKG_INSTALL_DIR)/usr/lib/lib*.so* \ 56 $(1)/usr/lib/ 57 endef 58 59 define Package/libdouble-conversion/install 60 $(INSTALL_DIR) \ 61 $(1)/usr/lib 62 63 $(INSTALL_DATA) \ 64 $(PKG_INSTALL_DIR)/usr/lib/lib*.so* \ 65 $(1)/usr/lib/ 66 endef 67 68 $(eval $(call BuildPackage,libdouble-conversion))