Root/sparsehash/Makefile

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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=sparsehash
11PKG_VERSION:=1.6
12PKG_RELEASE:=1
13
14PKG_SOURCE:=sparsehash-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://google-sparsehash.googlecode.com/files/
16PKG_MD5SUM:=054fc9626730cd866ea15fe26b9462c6
17PKG_BUILD_DIR:=$(BUILD_DIR)/sparsehash-$(PKG_VERSION)
18
19include $(INCLUDE_DIR)/package.mk
20
21PKG_INSTALL:=1
22
23define Package/sparsehash
24  SECTION:=libs
25  CATEGORY:=Libraries
26  TITLE:=Sparsehash
27  BUILDONLY:=1
28  URL:=http://code.google.com/p/google-sparsehash/
29endef
30
31define 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.
34endef
35
36define 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/
43endef
44
45$(eval $(call BuildPackage,sparsehash))
46

Archive Download this file



interactive