2010-02-09 14:00:06 +02:00
#
# Copyright (C) 2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := sparsehash
PKG_VERSION := 1.6
PKG_RELEASE := 1
PKG_SOURCE := sparsehash-$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := http://google-sparsehash.googlecode.com/files/
PKG_MD5SUM := 054fc9626730cd866ea15fe26b9462c6
PKG_BUILD_DIR := $( BUILD_DIR) /sparsehash-$( PKG_VERSION)
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / s p a r s e h a s h
SECTION:= libs
CATEGORY:= Libraries
TITLE:= Sparsehash
URL:= http://code.google.com/p/google-sparsehash/
DEPENDS:=
e n d e f
d e f i n e P a c k a g e / s p a r s e h a s h / d e s c r i p t i o n
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.
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.
e n d e f
#
# TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL
#
# CONFIGURE_ARGS += \
# --with-sdl-exec-prefix=$(STAGING_DIR)
#
# CONFIGURE_VARS += \
# LIBS="-lSDL -ldirect -ldirectfb -lfusion"
d e f i n e B u i l d / C o m p i l e
rm -rf $( PKG_INSTALL_DIR)
$( MAKE) -C $( PKG_BUILD_DIR) \
DESTDIR = " $( PKG_INSTALL_DIR) " \
all install
e n d e f
2010-02-14 15:05:23 +02:00
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include/google $( 1) /usr/lib
$( CP) \
$( PKG_INSTALL_DIR) /usr/include/google/* \
$( 1) /usr/include/google/
2010-02-09 14:00:06 +02:00
# $(CP) \
# $(PKG_INSTALL_DIR)/usr/lib/libSDL_image*.{a,so*} \
# $(1)/usr/lib/
2010-02-14 15:05:23 +02:00
e n d e f
2010-02-09 14:00:06 +02:00
d e f i n e P a c k a g e / s p a r s e h a s h / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/include/google/ $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/share/doc/sparsehash-$( PKG_VERSION) / $( 1) /usr/doc/
e n d e f
$( eval $ ( call BuildPackage ,sparsehash ) )