5639
|
1 # This file is part of MXE. |
|
2 # See index.html for further information. |
|
3 |
|
4 PKG := libsodium |
|
5 $(PKG)_IGNORE := |
|
6 $(PKG)_VERSION := 1.0.18 |
|
7 $(PKG)_CHECKSUM := cd8a76b79aeb077e8d3eea478ea6241972593dfd |
|
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
|
9 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz |
|
10 $(PKG)_URL := https://github.com/jedisct1/$(PKG)/archive/$($(PKG)_VERSION).tar.gz |
|
11 $(PKG)_DEPS := |
|
12 |
|
13 define $(PKG)_UPDATE |
|
14 $(WGET) -q -O- 'https://github.com/jedisct1/libsodium/tags' | \ |
|
15 $(SED) -n 's|.*releases/tag/\([^"]*\).*|\1|p' | $(SORT) -V | \ |
|
16 tail -1 |
|
17 endef |
|
18 |
|
19 $(PKG)_EXTRA_CONFIGURE_OPTIONS := |
|
20 ifneq ($(filter mingw msvc,$(MXE_SYSTEM)),) |
|
21 $(PKG)_EXTRA_CONFIGURE_OPTIONS += CFLAGS="-O2 -g -fstack-protector" |
|
22 endif |
|
23 |
|
24 define $(PKG)_BUILD |
|
25 cd '$(1)' && ./autogen.sh \ |
|
26 cd '$(1)' && ./configure \ |
|
27 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
|
28 --prefix='$(HOST_PREFIX)' \ |
|
29 $($(PKG)_EXTRA_CONFIGURE_OPTIONS) \ |
|
30 $(ENABLE_SHARED_OR_STATIC) |
|
31 |
|
32 $(MAKE) -C '$(1)' -j '$(JOBS)' |
|
33 $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)' $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS) |
|
34 endef |