annotate src/mxml.mk @ 3013:bcc26ffe9a0f

use variable for --host and --build configure arguments
author John W. Eaton <jwe@octave.org>
date Sun, 02 Jun 2013 12:40:32 -0400
parents 100e618349f7
children b6c7244a2f66
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
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
4 PKG := mxml
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
2180
bdd96ff13570 update packages mxml pcre
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
6 $(PKG)_CHECKSUM := a3bdcab48307794c297e790435bcce7becb9edae
1429
0c01b9dc4ace cleanup package: mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1428
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
1499
9e587ca588dc remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents: 1434
diff changeset
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
1429
0c01b9dc4ace cleanup package: mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1428
diff changeset
9 $(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
10 $(PKG)_DEPS := gcc pthreads
1428
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
11
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
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://ftp.easysw.com/pub/mxml/?C=M;O=D' | \
1430
08fa36065556 improved version recognition of package: mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1429
diff changeset
14 $(SED) -n 's,.*<a href="\([0-9][^"]*\)/.*,\1,p' | \
1428
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
15 head -1
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
16 endef
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
17
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
18 define $(PKG)_BUILD
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
19 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
20 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
21 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
22 --prefix='$(HOST_PREFIX)' \
1432
31854009eb63 enable thread safety in package mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1431
diff changeset
23 --enable-threads
1428
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
24 $(MAKE) -C '$(1)' -j '$(JOBS)' libmxml.a
1431
54bd2521d8c3 improved build rules of package: mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1430
diff changeset
25 $(MAKE) -C '$(1)' -j 1 install-libmxml.a
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
26 $(INSTALL) -d '$(HOST_PREFIX)/include'
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
27 $(INSTALL) -m644 '$(1)/mxml.h' '$(HOST_PREFIX)/include/'
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
28 $(INSTALL) -d '$(HOST_PREFIX)/lib/pkgconfig'
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
29 $(INSTALL) -m644 '$(1)/mxml.pc' '$(HOST_PREFIX)/lib/pkgconfig/'
1434
5e1db3421f8e simple test program for package mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1432
diff changeset
30
5e1db3421f8e simple test program for package mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1432
diff changeset
31 '$(TARGET)-gcc' \
5e1db3421f8e simple test program for package mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1432
diff changeset
32 -W -Wall -Werror -ansi -pedantic \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
33 '$(2).c' -o '$(HOST_PREFIX)/bin/test-mxml.exe' \
1434
5e1db3421f8e simple test program for package mxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1432
diff changeset
34 `'$(TARGET)-pkg-config' mxml --cflags --libs`
1428
d5631b1eec78 new package: mxml
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
35 endef