summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2016-02-11 19:15:38 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2016-02-11 19:15:38 (GMT)
commit9b9ae7084e0f24468e09c1d04d1b1df56a19ddb2 (patch)
tree9a3e42b3fd995f5dfff242c305512bdfc68d6141
parent0c1c90900432efc46885e34debee6ec46fa5e5a6 (diff)
parentd83968e04daff483423ddedc812b83e5e2e4e06f (diff)
downloadmxe-9b9ae7084e0f24468e09c1d04d1b1df56a19ddb2.zip
mxe-9b9ae7084e0f24468e09c1d04d1b1df56a19ddb2.tar.gz
mxe-9b9ae7084e0f24468e09c1d04d1b1df56a19ddb2.tar.bz2
Merge pull request #1214 from pavelvat/sparsehash
add package sparsehash
-rw-r--r--index.html4
-rw-r--r--src/sparsehash.mk26
2 files changed, 30 insertions, 0 deletions
diff --git a/index.html b/index.html
index 9579f19..3d9856d 100644
--- a/index.html
+++ b/index.html
@@ -2478,6 +2478,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
<td class="website"><a href="http://sox.sourceforge.net/">SoX</a></td>
</tr>
<tr>
+ <td class="package">sparsehash</td>
+ <td class="website"><a href="https://github.com/sparsehash/sparsehash">sparsehash</a></td>
+ </tr>
+ <tr>
<td class="package">speex</td>
<td class="website"><a href="http://www.speex.org/">Speex</a></td>
</tr>
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