diff options
author | Markus Rathgeb <rathgeb.markus@googlemail.com> | 2009-09-30 16:44:04 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2009-09-30 17:05:58 +0200 |
commit | ed691b2cff44c47d8178ed8db81f43adafc882b6 (patch) | |
tree | c61a010654309ae9bbaa4126079868b7e3aee916 /rules/sparsehash.make | |
parent | b8b043ab271be0f027d403da3bd3cb124c7ed715 (diff) | |
download | ptxdist-ed691b2cff44c47d8178ed8db81f43adafc882b6.tar.gz ptxdist-ed691b2cff44c47d8178ed8db81f43adafc882b6.tar.xz |
New package: sparsehash - efficient hash map
Signed-off-by: Markus Rathgeb <rathgeb.markus@googlemail.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/sparsehash.make')
-rw-r--r-- | rules/sparsehash.make | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/rules/sparsehash.make b/rules/sparsehash.make new file mode 100644 index 000000000..673b09045 --- /dev/null +++ b/rules/sparsehash.make @@ -0,0 +1,56 @@ +# Copyright (C) 2009 by Markus Rathgeb <rathgeb.markus@googlemail.com> + + +PACKAGES-$(PTXCONF_SPARSEHASH) += sparsehash + +# +# Paths and names +# +SPARSEHASH_NAME := sparsehash +SPARSEHASH_VERSION := 1.5.2 +SPARSEHASH := $(SPARSEHASH_NAME)-$(SPARSEHASH_VERSION) +SPARSEHASH_SUFFIX := tar.gz +SPARSEHASH_URL := http://google-sparsehash.googlecode.com/files/$(SPARSEHASH).$(SPARSEHASH_SUFFIX) +SPARSEHASH_SOURCE := $(SRCDIR)/$(SPARSEHASH).$(SPARSEHASH_SUFFIX) +SPARSEHASH_DIR := $(BUILDDIR)/$(SPARSEHASH) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(SPARSEHASH_SOURCE): + @$(call targetinfo) + @$(call get, SPARSEHASH) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +SPARSEHASH_PATH := PATH=$(CROSS_PATH) +SPARSEHASH_ENV := $(CROSS_ENV) + +# +# autoconf +# +SPARSEHASH_AUTOCONF := \ + $(CROSS_AUTOCONF_USR) \ + --disable-dependency-tracking + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/sparsehash.targetinstall: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +sparsehash_clean: + rm -rf $(STATEDIR)/sparsehash.* + rm -rf $(PKGDIR)/sparsehash_* + rm -rf $(SPARSEHASH_DIR) + +# vim: syntax=make |