annotate src/mxml.mk @ 2353:99516e73b368

Move doc/index.html -> index.html
author Volker Grabsch <vog@notjusthosting.com>
date Thu, 29 Mar 2012 12:14:15 +0200
parents f48c5b085a38
children b5321bdec505
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: 2180
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.
1428
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
3
1429
0c01b9dc4ace cleanup package: mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1428
diff changeset
4 # Mini-XML
1428
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
5 PKG := mxml
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
2180
bdd96ff13570 update packages mxml pcre
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
7 $(PKG)_CHECKSUM := a3bdcab48307794c297e790435bcce7becb9edae
1429
0c01b9dc4ace cleanup package: mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1428
diff changeset
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
1499
9e587ca588dc remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents: 1434
diff changeset
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
1429
0c01b9dc4ace cleanup package: mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1428
diff changeset
10 $(PKG)_URL := http://ftp.easysw.com/pub/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
1432
31854009eb63 enable thread safety in package mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1431
diff changeset
11 $(PKG)_DEPS := gcc pthreads
1428
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
12
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
1430
08fa36065556 improved version recognition of package: mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1429
diff changeset
14 wget -q -O- 'http://ftp.easysw.com/pub/mxml/?C=M;O=D' | \
08fa36065556 improved version recognition of package: mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1429
diff changeset
15 $(SED) -n 's,.*<a href="\([0-9][^"]*\)/.*,\1,p' | \
1428
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
16 head -1
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
17 endef
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
18
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
19 define $(PKG)_BUILD
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
20 cd '$(1)' && ./configure \
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
21 --host='$(TARGET)' \
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
22 --disable-shared \
1432
31854009eb63 enable thread safety in package mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1431
diff changeset
23 --prefix='$(PREFIX)/$(TARGET)' \
31854009eb63 enable thread safety in package mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1431
diff changeset
24 --enable-threads
1428
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
25 $(MAKE) -C '$(1)' -j '$(JOBS)' libmxml.a
1431
54bd2521d8c3 improved build rules of package: mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1430
diff changeset
26 $(MAKE) -C '$(1)' -j 1 install-libmxml.a
54bd2521d8c3 improved build rules of package: mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1430
diff changeset
27 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
54bd2521d8c3 improved build rules of package: mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1430
diff changeset
28 $(INSTALL) -m644 '$(1)/mxml.h' '$(PREFIX)/$(TARGET)/include/'
54bd2521d8c3 improved build rules of package: mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1430
diff changeset
29 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig'
54bd2521d8c3 improved build rules of package: mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1430
diff changeset
30 $(INSTALL) -m644 '$(1)/mxml.pc' '$(PREFIX)/$(TARGET)/lib/pkgconfig/'
1434
5e1db3421f8e simple test program for package mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1432
diff changeset
31
5e1db3421f8e simple test program for package mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1432
diff changeset
32 '$(TARGET)-gcc' \
5e1db3421f8e simple test program for package mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1432
diff changeset
33 -W -Wall -Werror -ansi -pedantic \
5e1db3421f8e simple test program for package mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1432
diff changeset
34 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-mxml.exe' \
5e1db3421f8e simple test program for package mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1432
diff changeset
35 `'$(TARGET)-pkg-config' mxml --cflags --libs`
1428
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
36 endef