Mercurial > mxe-octave
annotate src/xerces.mk @ 3031:951da75fd09c
improve handling of cross tool prefix
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 09 Jun 2013 09:48:08 -0400 |
parents | b6c7244a2f66 |
children | 5ef49fb3299d |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
1454
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. |
551 | 3 |
4 PKG := xerces | |
5 $(PKG)_IGNORE := | |
924
75f1899e6022
update package xerces (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
769
diff
changeset
|
6 $(PKG)_CHECKSUM := 177ec838c5119df57ec77eddec9a29f7e754c8b2 |
551 | 7 $(PKG)_SUBDIR := xerces-c-$($(PKG)_VERSION) |
8 $(PKG)_FILE := xerces-c-$($(PKG)_VERSION).tar.gz | |
9 $(PKG)_URL := http://apache.linux-mirror.org/xerces/c/$(word 1,$(subst ., ,$($(PKG)_VERSION)))/sources/$($(PKG)_FILE) | |
10 $(PKG)_URL_2 := http://www.apache.org/dist/xerces/c/$(word 1,$(subst ., ,$($(PKG)_VERSION)))/sources/$($(PKG)_FILE) | |
11 $(PKG)_DEPS := gcc libiconv curl | |
12 | |
13 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
14 $(WGET) -q -O- 'http://www.apache.org/dist/xerces/c/3/sources/?C=M;O=D' | \ |
925
b16546bc4b07
improved version recognition of package xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
924
diff
changeset
|
15 $(SED) -n 's,.*<a href="xerces-c-\([0-9][^"]*\)\.tar.*,\1,p' | \ |
567
22af4af31e80
avoid rc (release candidate) versions of package xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
553
diff
changeset
|
16 grep -v rc | \ |
551 | 17 head -1 |
18 endef | |
19 | |
20 define $(PKG)_BUILD | |
1181
c807edd4158c
bugfix for package xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
1139
diff
changeset
|
21 cd '$(1)' && CONFIG_SHELL='$(SHELL)' ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
22 $(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
|
23 $(ENABLE_SHARED_OR_STATIC) \ |
1081
5a29ddfd25e8
increase portability of package xerces by disabling SSE2
Volker Grabsch <vog@notjusthosting.com>
parents:
1080
diff
changeset
|
24 --disable-sse2 \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
25 --prefix='$(HOST_PREFIX)' \ |
551 | 26 --enable-libtool-lock \ |
27 --disable-pretty-make \ | |
935
9993be51f18d
disable the use of the buggy Pthreads-w32 library in packages freetds, guile, libmikmod, libshout, libxml2, sqlite, tiff, vorbis and xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
925
diff
changeset
|
28 --disable-threads \ |
551 | 29 --enable-network \ |
30 --enable-netaccessor-curl \ | |
31 --disable-netaccessor-socket \ | |
32 --disable-netaccessor-cfurl \ | |
33 --disable-netaccessor-winsock \ | |
34 --enable-transcoder-iconv \ | |
35 --disable-transcoder-gnuiconv \ | |
36 --disable-transcoder-icu \ | |
37 --disable-transcoder-macosunicodeconverter \ | |
38 --disable-transcoder-windows \ | |
39 --enable-msgloader-inmemory \ | |
40 --disable-msgloader-iconv \ | |
41 --disable-msgloader-icu \ | |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
42 --with-curl='$(HOST_PREFIX)' \ |
551 | 43 --without-icu \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
44 LIBS="`$(MXE_PKG_CONFIG) --libs libcurl`" |
551 | 45 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
46 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= | |
1077
1d5c719ec98a
test program for package xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
935
diff
changeset
|
47 |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
48 '$(MXE_CXX)' \ |
1078
7c2212494395
bugfix: compile the test program of package xerces with stricter compiler flags
Volker Grabsch <vog@notjusthosting.com>
parents:
1077
diff
changeset
|
49 -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
|
50 '$(2).cpp' -o '$(HOST_BINDIR)/test-xerces.exe' \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
51 `'$(MXE_PKG_CONFIG)' xerces-c --cflags --libs` |
551 | 52 endef |