mirror of https://git.wownero.com/dsc/mxe.git
Adding new library libsodium.
This commit is contained in:
parent
bdb7e57d89
commit
ce796c1b3f
|
@ -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>
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue