summaryrefslogtreecommitdiffstats
path: root/src/sparsehash.mk
diff options
context:
space:
mode:
authorPavel Vatagin <pavelvat@gmail.com>2016-02-07 14:25:17 (GMT)
committerPavel Vatagin <pavelvat@gmail.com>2016-02-07 14:25:17 (GMT)
commitd83968e04daff483423ddedc812b83e5e2e4e06f (patch)
tree5a74bc37a3deaf417cbc491f5380c231c5310e61 /src/sparsehash.mk
parentb45184e1a26273258d1c901b5e1d9ee274e96243 (diff)
downloadmxe-d83968e04daff483423ddedc812b83e5e2e4e06f.zip
mxe-d83968e04daff483423ddedc812b83e5e2e4e06f.tar.gz
mxe-d83968e04daff483423ddedc812b83e5e2e4e06f.tar.bz2
add package sparsehash
Diffstat (limited to 'src/sparsehash.mk')
-rw-r--r--src/sparsehash.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/sparsehash.mk b/src/sparsehash.mk
new file mode 100644
index 0000000..d33f312
--- /dev/null
+++ b/src/sparsehash.mk
@@ -0,0 +1,26 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := sparsehash
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 2.0.3
+$(PKG)_CHECKSUM := 05e986a5c7327796dad742182b2d10805a8d4f511ad090da0490f146c1ff7a8c
+$(PKG)_SUBDIR := $(PKG)-$(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := https://github.com/$(PKG)/$(PKG)/archive/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ $(call MXE_GET_GITHUB_TAGS, sparsehash/sparsehash, sparsehash-)
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ $(MXE_CONFIGURE_OPTS)
+
+ $(MAKE) -C '$(1)' -j '$(JOBS)'
+ $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_DOCS)
+
+ $(INSTALL) '$(1)/hashtable_test.exe' '$(PREFIX)/$(TARGET)/bin/test-sparsehash.exe'
+ $(TARGET)-strip '$(PREFIX)/$(TARGET)/bin/test-sparsehash.exe'
+endef