Mercurial > mxe-octave
annotate src/json-c.mk @ 2805:f1388c4ecf3b
package json-c: fix update macro
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Thu, 11 Oct 2012 16:59:27 +0200 |
parents | 010e74541aca |
children | 47558e958113 |
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 := | |
2661
3567da505594
json-c update to version 0.10, using github downloads.
Thomas Mayer <thomas@residuum.org>
parents:
2525
diff
changeset
|
6 $(PKG)_CHECKSUM := f90f643c8455da21d57b3e8866868a944a93c596 |
2230 | 7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
8 $(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
|
9 $(PKG)_URL := https://github.com/downloads/$(PKG)/$(PKG)/$($(PKG)_FILE) |
2230 | 10 $(PKG)_DEPS := gcc |
11 | |
12 define $(PKG)_UPDATE | |
2805
f1388c4ecf3b
package json-c: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2678
diff
changeset
|
13 $(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
|
14 $(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
|
15 head -1 |
2230 | 16 endef |
17 | |
18 define $(PKG)_BUILD | |
2661
3567da505594
json-c update to version 0.10, using github downloads.
Thomas Mayer <thomas@residuum.org>
parents:
2525
diff
changeset
|
19 cd '$(1)' && ./autogen.sh |
2230 | 20 cd '$(1)' && ./configure \ |
21 --host='$(TARGET)' \ | |
22 --prefix='$(PREFIX)/$(TARGET)' \ | |
23 --build="`config.guess`"\ | |
2661
3567da505594
json-c update to version 0.10, using github downloads.
Thomas Mayer <thomas@residuum.org>
parents:
2525
diff
changeset
|
24 --disable-shared |
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 |
2678
010e74541aca
Test application for json-c.
Thomas Mayer <thomas@residuum.org>
parents:
2661
diff
changeset
|
27 |
010e74541aca
Test application for json-c.
Thomas Mayer <thomas@residuum.org>
parents:
2661
diff
changeset
|
28 '$(TARGET)-gcc' \ |
010e74541aca
Test application for json-c.
Thomas Mayer <thomas@residuum.org>
parents:
2661
diff
changeset
|
29 -W -Wall -Werror -ansi -pedantic \ |
010e74541aca
Test application for json-c.
Thomas Mayer <thomas@residuum.org>
parents:
2661
diff
changeset
|
30 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-json-c.exe' \ |
010e74541aca
Test application for json-c.
Thomas Mayer <thomas@residuum.org>
parents:
2661
diff
changeset
|
31 `'$(TARGET)-pkg-config' json --cflags --libs` |
2230 | 32 endef |