summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrezahousseini <reza.housseini@gmx.ch>2015-11-23 13:03:05 (GMT)
committerTony Theodore <tonyt@logyst.com>2015-12-05 13:31:02 (GMT)
commitce796c1b3f439cd988b0ac8dfdba61457ca5a7b5 (patch)
tree1a8be883f7bfac9142ffb6fad240eed1c4c66dce
parentbdb7e57d89472039172837381fc533d762d31423 (diff)
downloadmxe-ce796c1b3f439cd988b0ac8dfdba61457ca5a7b5.zip
mxe-ce796c1b3f439cd988b0ac8dfdba61457ca5a7b5.tar.gz
mxe-ce796c1b3f439cd988b0ac8dfdba61457ca5a7b5.tar.bz2
Adding new library libsodium.
-rw-r--r--index.html4
-rw-r--r--src/libsodium.mk26
2 files changed, 30 insertions, 0 deletions
diff --git a/index.html b/index.html
index 22f0aa3..b4958c9 100644
--- a/index.html
+++ b/index.html
@@ -1811,6 +1811,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
<td class="website"><a href="http://www.mega-nerd.com/libsndfile/">libsndfile</a></td>
</tr>
<tr>
+ <td class="package">libsodium</td>
+ <td class="website"><a href="https://download.libsodium.org/doc/">libsodium</a></td>
+ </tr>
+ <tr>
<td class="package">libssh2</td>
<td class="website"><a href="http://www.libssh2.org">libssh2</a></td>
</tr>
diff --git a/src/libsodium.mk b/src/libsodium.mk
new file mode 100644
index 0000000..f99b4d8
--- /dev/null
+++ b/src/libsodium.mk
@@ -0,0 +1,26 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := libsodium
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 1.0.6
+$(PKG)_CHECKSUM := 940d03ea7d2caa7940e24564bf6d9f66d6edd1df1e0111ff8e3655f3b864fb59
+$(PKG)_SUBDIR := libsodium-$($(PKG)_VERSION)
+$(PKG)_FILE := libsodium-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := https://download.libsodium.org/libsodium/releases/$($(PKG)_FILE)
+$(PKG)_URL_2 := https://github.com/jedisct1/libsodium/releases/download/$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'https://download.libsodium.org/libsodium/releases/' | \
+ $(SED) -n 's,.*libsodium-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ grep -v mingw | \
+ tail -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && CHOST='$(TARGET)' ./configure \
+ $(MXE_CONFIGURE_OPTS) \
+ --prefix='$(PREFIX)/$(TARGET)'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install -j '1'
+endef