Mercurial > mxe-octave
annotate src/gsoap.mk @ 7207:9ed6500e56d3 default tip @
maint: Merge release to default.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 17 May 2024 20:16:41 +0200 |
parents | cf43b12ddd21 |
children |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2249
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. |
662 | 3 |
4 PKG := gsoap | |
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.8.11 |
2822 | 7 $(PKG)_CHECKSUM := b1c17d501361939c6d419eeb2aa26e7fd2b586fe |
664
40b94e85013a
bugfix: don't hardcode the version number in the download URL, etc. of package gsoap
Volker Grabsch <vog@notjusthosting.com>
parents:
663
diff
changeset
|
8 $(PKG)_SUBDIR := gsoap-$(call SHORT_PKG_VERSION,$(PKG)) |
847
c8ec26fa314d
upgrade package gsoap to 2.7.16
Mark Brand <mabrand@mabrand.nl>
parents:
714
diff
changeset
|
9 $(PKG)_FILE := gsoap_$($(PKG)_VERSION).zip |
5752
cf43b12ddd21
* src/gsoap.mk: fix update rule
John Donoghue <john.donoghue@ieee.org>
parents:
4384
diff
changeset
|
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/gsoap2/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_DEPS := gnutls libgcrypt libntlm |
662 | 12 |
13 define $(PKG)_UPDATE | |
5752
cf43b12ddd21
* src/gsoap.mk: fix update rule
John Donoghue <john.donoghue@ieee.org>
parents:
4384
diff
changeset
|
14 $(WGET) -q -O- 'http://sourceforge.net/projects/gsoap2/files' | \ |
1466
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1176
diff
changeset
|
15 $(SED) -n 's,.*gsoap_\([0-9][^>]*\)\.zip.*,\1,p' | \ |
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1176
diff
changeset
|
16 head -1 |
662 | 17 endef |
18 | |
19 define $(PKG)_BUILD | |
2702 | 20 # avoid reconfiguration |
21 cd '$(1)' && touch configure config.h.in | |
22 | |
662 | 23 # Native build to get tools wsdl2h and soapcpp2 |
1169
9ca7f1fa7c9b
improvements for package gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
1165
diff
changeset
|
24 cd '$(1)' && ./configure |
662 | 25 |
2175
2bbf834b331d
package gsoap: workaround for parallel building
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
26 # Work around parallel build problem |
2bbf834b331d
package gsoap: workaround for parallel building
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
27 $(MAKE) -C '$(1)'/gsoap/src -j '$(JOBS)' soapcpp2_yacc.h |
2bbf834b331d
package gsoap: workaround for parallel building
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
28 $(MAKE) -C '$(1)'/gsoap -j '$(JOBS)' |
662 | 29 |
30 # Install the native tools manually | |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
31 $(INSTALL) -m755 '$(1)'/gsoap/wsdl/wsdl2h '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)wsdl2h' |
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
32 $(INSTALL) -m755 '$(1)'/gsoap/src/soapcpp2 '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)soapcpp2' |
662 | 33 |
34 $(MAKE) -C '$(1)' -j '$(JOBS)' clean | |
35 | |
1953 | 36 # fix hard-coded gnutls dependencies |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
37 $(SED) -i "s/-lgnutls/`'$(MXE_PKG_CONFIG)' --libs-only-l gnutls`/g;" '$(1)/configure' |
1836
621a6afbfbee
wine fix for package gsoap
Martin Lambers <marlam@marlam.de>
parents:
1754
diff
changeset
|
38 |
662 | 39 # Build for mingw. Static by default. |
40 # Prevent undefined reference to _rpl_malloc. | |
41 # http://groups.google.com/group/ikarus-users/browse_thread/thread/fd1d101eac32633f | |
663
21e0d95330cf
small cleanups for package gsoap
Volker Grabsch <vog@notjusthosting.com>
parents:
662
diff
changeset
|
42 cd '$(1)' && ac_cv_func_malloc_0_nonnull=yes ./configure \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
3006
diff
changeset
|
43 --prefix='$(HOST_PREFIX)' \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
44 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2080
dd2ac0a72169
package gsoap: upgrade to v2.8.4 with fix
Mark Brand <mabrand@mabrand.nl>
parents:
2079
diff
changeset
|
45 --enable-gnutls \ |
dd2ac0a72169
package gsoap: upgrade to v2.8.4 with fix
Mark Brand <mabrand@mabrand.nl>
parents:
2079
diff
changeset
|
46 CPPFLAGS='-DWITH_NTLM' |
663
21e0d95330cf
small cleanups for package gsoap
Volker Grabsch <vog@notjusthosting.com>
parents:
662
diff
changeset
|
47 |
662 | 48 # Building for mingw requires native soapcpp2 |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
49 $(LN_SF) '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)soapcpp2' '$(1)/gsoap/src/soapcpp2' |
662 | 50 |
2175
2bbf834b331d
package gsoap: workaround for parallel building
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
51 # Work around parallel build problem |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
52 $(MAKE) -C '$(1)'/gsoap/src -j '$(JOBS)' soapcpp2_yacc.h AR='$(MXE_AR)' |
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
53 $(MAKE) -C '$(1)' -j '$(JOBS)' AR='$(MXE_AR)' |
662 | 54 |
2175
2bbf834b331d
package gsoap: workaround for parallel building
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
55 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
662 | 56 # Apparently there is a tradition of compiling gsoap source files into applications. |
57 # Since we linked dom.cpp and dom.c into the libraries, this should not be necessary. | |
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2249
diff
changeset
|
58 # But we bend to tradition and install these sources into MXE. |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
3006
diff
changeset
|
59 $(INSTALL) -m644 '$(1)/gsoap/'*.c '$(1)/gsoap/'*.cpp '$(HOST_PREFIX)/share/gsoap' |
662 | 60 endef |