annotate src/json-c.mk @ 2525:4d0f3a9da57e

all packages: use $(WGET) portability variable
author Tony Theodore <tonyt@logyst.com>
date Wed, 09 May 2012 01:16:05 +1000
parents b5321bdec505
children 3567da505594
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
3
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
4 PKG := json-c
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
6 $(PKG)_CHECKSUM := daaf5eb960fa98e137abc5012f569b83c79be90f
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
9 $(PKG)_URL := http://oss.metaparadigm.com/$(PKG)/$($(PKG)_FILE)
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
10 $(PKG)_DEPS := gcc
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
11
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
13 $(WGET) -q -O- 'http://oss.metaparadigm.com/json-c/?C=M;O=D' | \
2307
5e23910a7f46 package json-c: add update macro
Tony Theodore <tonyt@logyst.com>
parents: 2289
diff changeset
14 $(SED) -n 's,.*json-c-\([0-9][^>]*\)\.tar.*,\1,p' | \
5e23910a7f46 package json-c: add update macro
Tony Theodore <tonyt@logyst.com>
parents: 2289
diff changeset
15 head -1
2230
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
16 endef
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
17
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
18 define $(PKG)_BUILD
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
19 cd '$(1)' && ./configure \
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
20 --host='$(TARGET)' \
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
21 --prefix='$(PREFIX)/$(TARGET)' \
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
22 --build="`config.guess`"\
2289
125d60dc0659 Fix annoying TABs and missing newlines at EOF
Volker Grabsch <vog@notjusthosting.com>
parents: 2230
diff changeset
23 CFLAGS=-Wno-error
2230
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
24 $(MAKE) -C '$(1)' -j '$(JOBS)' install
fc01ad137722 new package json-c
Thomas Mayer <thomas@residuum.org>
parents:
diff changeset
25 endef