Mercurial > mxe-octave
annotate src/mxml.mk @ 3561:ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 08 Mar 2014 17:40:00 -0500 |
parents | 13be64f9f16d |
children | d95b8b84cea7 |
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 | 3 |
4 PKG := mxml | |
5 $(PKG)_IGNORE := | |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
6 $(PKG)_VERSION := 2.7 |
2180 | 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) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_DEPS := pthreads |
1428 | 12 |
13 define $(PKG)_UPDATE | |
3561
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
14 $(WGET) -q -O- 'http://www.msweet.org/downloads.php?L+Z3' | \ |
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
15 $(SED) -n 's,.*<a href="files.*mxml-\([0-9\.]*\)\.tar.*,\1,p' | \ |
1428 | 16 head -1 |
17 endef | |
18 | |
19 define $(PKG)_BUILD | |
20 cd '$(1)' && ./configure \ | |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
21 $(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
|
22 $(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
|
23 --prefix='$(HOST_PREFIX)' \ |
1432
31854009eb63
enable thread safety in package mxml
Volker Grabsch <vog@notjusthosting.com>
parents:
1431
diff
changeset
|
24 --enable-threads |
1428 | 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 |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
27 $(INSTALL) -d '$(HOST_INCDIR)' |
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
28 $(INSTALL) -m644 '$(1)/mxml.h' '$(HOST_INCDIR)' |
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
29 $(INSTALL) -d '$(HOST_LIBDIR)/pkgconfig' |
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
30 $(INSTALL) -m644 '$(1)/mxml.pc' '$(HOST_LIBDIR)/pkgconfig' |
1434
5e1db3421f8e
simple test program for package mxml
Volker Grabsch <vog@notjusthosting.com>
parents:
1432
diff
changeset
|
31 |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
32 '$(MXE_CC)' \ |
1434
5e1db3421f8e
simple test program for package mxml
Volker Grabsch <vog@notjusthosting.com>
parents:
1432
diff
changeset
|
33 -W -Wall -Werror -ansi -pedantic \ |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
34 '$(2).c' -o '$(HOST_BINDIR)/test-mxml.exe' \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
35 `'$(MXE_PKG_CONFIG)' mxml --cflags --libs` |
1428 | 36 endef |