Mercurial > mxe-octave
annotate src/libsodium.mk @ 6511:8f473adec6db
* src/freetds.mk: update to v1.3.14
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Tue, 08 Nov 2022 09:38:30 -0500 |
parents | 4b8764444acb |
children | 93f6f5d3d653 |
rev | line source |
---|---|
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 | |
6510
4b8764444acb
Create common github call define and start using it
John Donoghue <john.donoghue@ieee.org>
parents:
5639
diff
changeset
|
14 $(call GITHUB_PKG_UPDATE,jedisct1,libsodium,) |
5639 | 15 endef |
16 | |
17 $(PKG)_EXTRA_CONFIGURE_OPTIONS := | |
18 ifneq ($(filter mingw msvc,$(MXE_SYSTEM)),) | |
19 $(PKG)_EXTRA_CONFIGURE_OPTIONS += CFLAGS="-O2 -g -fstack-protector" | |
20 endif | |
21 | |
22 define $(PKG)_BUILD | |
23 cd '$(1)' && ./autogen.sh \ | |
24 cd '$(1)' && ./configure \ | |
25 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ | |
26 --prefix='$(HOST_PREFIX)' \ | |
27 $($(PKG)_EXTRA_CONFIGURE_OPTIONS) \ | |
28 $(ENABLE_SHARED_OR_STATIC) | |
29 | |
30 $(MAKE) -C '$(1)' -j '$(JOBS)' | |
31 $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)' $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS) | |
32 endef |