Mercurial > mxe-octave
annotate src/libsodium.mk @ 7251:e3bf1ceb1511 default tip @
Mesa 3D: Fix building for Linux without libdrm.
* src/mesa-1-libdrm.patch: Add new patch.
* dist-files.mk: Add new file to list.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Wed, 12 Jun 2024 20:54:42 +0200 |
parents | 93f6f5d3d653 |
children |
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 := | |
6879
93f6f5d3d653
* src/libsodium.mk: update to v1.0.19
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
6 $(PKG)_VERSION := 1.0.19 |
93f6f5d3d653
* src/libsodium.mk: update to v1.0.19
John Donoghue <john.donoghue@ieee.org>
parents:
6510
diff
changeset
|
7 $(PKG)_CHECKSUM := d7b35afe5ae7995e3ef22605093cfadd5ce41afa |
5639 | 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 |