Mercurial > mxe-octave
annotate src/json-c.mk @ 5893:53a6c7df43f8
Mesa 3D: Update to version 21.1.8.
* src/mesa.mk: Update version and checksum.
* src/mesa-2-uninitialized.patch: Remove file.
* dist-files.mk: Remove file from list.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 16 Sep 2021 22:37:45 +0200 |
parents | 13be64f9f16d |
children | aeed56e485d5 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2307
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
2230 | 3 |
4 PKG := json-c | |
5 $(PKG)_IGNORE := | |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
6 $(PKG)_VERSION := 0.10 |
2661
3567da505594
json-c update to version 0.10, using github downloads.
Thomas Mayer <thomas@residuum.org>
parents:
2525
diff
changeset
|
7 $(PKG)_CHECKSUM := f90f643c8455da21d57b3e8866868a944a93c596 |
2230 | 8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz | |
2661
3567da505594
json-c update to version 0.10, using github downloads.
Thomas Mayer <thomas@residuum.org>
parents:
2525
diff
changeset
|
10 $(PKG)_URL := https://github.com/downloads/$(PKG)/$(PKG)/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_DEPS := |
2230 | 12 |
13 define $(PKG)_UPDATE | |
2805
f1388c4ecf3b
package json-c: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2678
diff
changeset
|
14 $(WGET) -q -O- 'https://github.com/json-c/json-c/downloads' | \ |
f1388c4ecf3b
package json-c: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2678
diff
changeset
|
15 $(SED) -n 's,.*href="/downloads/json-c/json-c/json-c-\([0-9.]*\).tar.gz.*,\1,p' | \ |
2307
5e23910a7f46
package json-c: add update macro
Tony Theodore <tonyt@logyst.com>
parents:
2289
diff
changeset
|
16 head -1 |
2230 | 17 endef |
18 | |
19 define $(PKG)_BUILD | |
2661
3567da505594
json-c update to version 0.10, using github downloads.
Thomas Mayer <thomas@residuum.org>
parents:
2525
diff
changeset
|
20 cd '$(1)' && ./autogen.sh |
2230 | 21 cd '$(1)' && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
23 --prefix='$(HOST_PREFIX)' \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2805
diff
changeset
|
24 $(ENABLE_SHARED_OR_STATIC) |
2289
125d60dc0659
Fix annoying TABs and missing newlines at EOF
Volker Grabsch <vog@notjusthosting.com>
parents:
2230
diff
changeset
|
25 CFLAGS=-Wno-error |
2230 | 26 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
27 |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
28 '$(MXE_CC)' \ |
2678
010e74541aca
Test application for json-c.
Thomas Mayer <thomas@residuum.org>
parents:
2661
diff
changeset
|
29 -W -Wall -Werror -ansi -pedantic \ |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
30 '$(2).c' -o '$(HOST_BINDIR)/test-json-c.exe' \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
31 `'$(MXE_PKG_CONFIG)' json --cflags --libs` |
2230 | 32 endef |