OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # |
| 2 | # Copyright (C) 2010 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:=sparsehash |
| 11 | PKG_VERSION:=1.6 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PKG_SOURCE:=sparsehash-$(PKG_VERSION).tar.gz |
| 15 | PKG_SOURCE_URL:=http://google-sparsehash.googlecode.com/files/ |
| 16 | PKG_MD5SUM:=054fc9626730cd866ea15fe26b9462c6 |
| 17 | PKG_BUILD_DIR:=$(BUILD_DIR)/sparsehash-$(PKG_VERSION) |
| 18 | |
| 19 | include $(INCLUDE_DIR)/package.mk |
| 20 | |
| 21 | PKG_INSTALL:=1 |
| 22 | |
| 23 | define Package/sparsehash |
| 24 | SECTION:=libs |
| 25 | CATEGORY:=Libraries |
| 26 | TITLE:=Sparsehash |
| 27 | BUILDONLY:=1 |
| 28 | URL:=http://code.google.com/p/google-sparsehash/ |
| 29 | endef |
| 30 | |
| 31 | define Package/sparsehash/description |
| 32 | An extremely memory-efficient hash_map implementation. 2 bits/entry overhead! The SparseHash library contains several hash-map implementations, including implementations that optimize for space or speed. |
| 33 | These hashtable implementations are similar in API to SGI's hash_map class and the tr1 unordered_map class, but with different performance characteristics. It's easy to replace hash_map or unordered_map by sparse_hash_map or dense_hash_map in C++ code. |
| 34 | endef |
| 35 | |
| 36 | define Build/InstallDev |
| 37 | $(INSTALL_DIR) \ |
| 38 | $(1)/usr/include/google |
| 39 | |
| 40 | $(CP) \ |
| 41 | $(PKG_INSTALL_DIR)/usr/include/google/* \ |
| 42 | $(1)/usr/include/google/ |
| 43 | endef |
| 44 | |
| 45 | $(eval $(call BuildPackage,sparsehash)) |
| 46 |
