Adding new library libsodium.

This commit is contained in:
rezahousseini 2015-11-23 14:03:05 +01:00 committed by Tony Theodore
parent bdb7e57d89
commit ce796c1b3f
2 changed files with 30 additions and 0 deletions

View File

@ -1810,6 +1810,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
<td class="package">libsndfile</td>
<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>

26
src/libsodium.mk Normal file
View File

@ -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