Mercurial > mxe-octave
annotate src/json-c.mk @ 7207:9ed6500e56d3 default tip @
maint: Merge release to default.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 17 May 2024 20:16:41 +0200 |
parents | aeed56e485d5 |
children |
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 := | |
6057
aeed56e485d5
json-c: update to v0.13.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
6 $(PKG)_VERSION := 0.13.1 |
aeed56e485d5
json-c: update to v0.13.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
7 $(PKG)_CHECKSUM := a339bae346e58d1737a7909794f432b097dd31cf |
2230 | 8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
6057
aeed56e485d5
json-c: update to v0.13.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION)-nodoc.tar.gz |
aeed56e485d5
json-c: update to v0.13.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
10 $(PKG)_URL := https://$(PKG)_releases.s3.amazonaws.com/releases/$($(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 | |
6057
aeed56e485d5
json-c: update to v0.13.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
14 $(WGET) -q -O- 'https://json-c_releases.s3.amazonaws.com' | \ |
aeed56e485d5
json-c: update to v0.13.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
15 $(SED) -r 's,<Key>,\n<Key>,g' | \ |
aeed56e485d5
json-c: update to v0.13.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
16 $(SED) -n 's,.*releases/json-c-\([0-9.]*\).tar.gz.*,\1,p' | \ |
aeed56e485d5
json-c: update to v0.13.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
17 $(SORT) -V | \ |
aeed56e485d5
json-c: update to v0.13.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
18 tail -1 |
2230 | 19 endef |
20 | |
21 define $(PKG)_BUILD | |
2661
3567da505594
json-c update to version 0.10, using github downloads.
Thomas Mayer <thomas@residuum.org>
parents:
2525
diff
changeset
|
22 cd '$(1)' && ./autogen.sh |
2230 | 23 cd '$(1)' && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
24 $(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
|
25 --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
|
26 $(ENABLE_SHARED_OR_STATIC) |
2289
125d60dc0659
Fix annoying TABs and missing newlines at EOF
Volker Grabsch <vog@notjusthosting.com>
parents:
2230
diff
changeset
|
27 CFLAGS=-Wno-error |
6057
aeed56e485d5
json-c: update to v0.13.1
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
28 $(MAKE) -C '$(1)' -j '$(JOBS)' install DEST='$(3)' |
2230 | 29 endef |