diff options
author | rezahousseini <reza.housseini@gmx.ch> | 2015-11-23 13:03:05 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-12-05 13:31:02 (GMT) |
commit | ce796c1b3f439cd988b0ac8dfdba61457ca5a7b5 (patch) | |
tree | 1a8be883f7bfac9142ffb6fad240eed1c4c66dce | |
parent | bdb7e57d89472039172837381fc533d762d31423 (diff) | |
download | mxe-ce796c1b3f439cd988b0ac8dfdba61457ca5a7b5.zip mxe-ce796c1b3f439cd988b0ac8dfdba61457ca5a7b5.tar.gz mxe-ce796c1b3f439cd988b0ac8dfdba61457ca5a7b5.tar.bz2 |
Adding new library libsodium.
-rw-r--r-- | index.html | 4 | ||||
-rw-r--r-- | src/libsodium.mk | 26 |
2 files changed, 30 insertions, 0 deletions
@@ -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 |