Mercurial > mxe-octave
annotate src/gsoap.mk @ 3012:100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
BUILD_TOOLS_PREFIX variables in top-level Makefile.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 10:31:04 -0400 |
parents | dabfd7db980c |
children | bcc26ffe9a0f |
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 := | |
2822 | 6 $(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
|
7 $(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
|
8 $(PKG)_FILE := gsoap_$($(PKG)_VERSION).zip |
949 | 9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/gsoap2/gSOAP/$($(PKG)_FILE) |
2080
dd2ac0a72169
package gsoap: upgrade to v2.8.4 with fix
Mark Brand <mabrand@mabrand.nl>
parents:
2079
diff
changeset
|
10 $(PKG)_DEPS := gcc gnutls libgcrypt libntlm |
662 | 11 |
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://sourceforge.net/projects/gsoap2/files/gSOAP/' | \ |
1466
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1176
diff
changeset
|
14 $(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
|
15 head -1 |
662 | 16 endef |
17 | |
18 define $(PKG)_BUILD | |
2702 | 19 # avoid reconfiguration |
20 cd '$(1)' && touch configure config.h.in | |
21 | |
662 | 22 # Native build to get tools wsdl2h and soapcpp2 |
1169
9ca7f1fa7c9b
improvements for package gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
1165
diff
changeset
|
23 cd '$(1)' && ./configure |
662 | 24 |
2175
2bbf834b331d
package gsoap: workaround for parallel building
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
25 # Work around parallel build problem |
2bbf834b331d
package gsoap: workaround for parallel building
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
26 $(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
|
27 $(MAKE) -C '$(1)'/gsoap -j '$(JOBS)' |
662 | 28 |
29 # Install the native tools manually | |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
3006
diff
changeset
|
30 $(INSTALL) -m755 '$(1)'/gsoap/wsdl/wsdl2h '$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-wsdl2h' |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
3006
diff
changeset
|
31 $(INSTALL) -m755 '$(1)'/gsoap/src/soapcpp2 '$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-soapcpp2' |
662 | 32 |
33 $(MAKE) -C '$(1)' -j '$(JOBS)' clean | |
34 | |
1953 | 35 # fix hard-coded gnutls dependencies |
2055
c26efa95224d
packages curl gsoap vmime: gnutls 3 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
2039
diff
changeset
|
36 $(SED) -i "s/-lgnutls/`'$(TARGET)-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
|
37 |
662 | 38 # Build for mingw. Static by default. |
39 # Prevent undefined reference to _rpl_malloc. | |
40 # 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
|
41 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
|
42 --prefix='$(HOST_PREFIX)' \ |
1169
9ca7f1fa7c9b
improvements for package gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
1165
diff
changeset
|
43 --host='$(TARGET)' \ |
2153
e4c83fa61a5b
replaced $(BUILD) with a more direct and less brittle construct
Volker Grabsch <vog@notjusthosting.com>
parents:
2148
diff
changeset
|
44 --build="`config.guess`" \ |
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 |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
3006
diff
changeset
|
49 $(LN_SF) '$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-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 |
2bbf834b331d
package gsoap: workaround for parallel building
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
52 $(MAKE) -C '$(1)'/gsoap/src -j '$(JOBS)' soapcpp2_yacc.h AR='$(TARGET)-ar' |
2bbf834b331d
package gsoap: workaround for parallel building
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
53 $(MAKE) -C '$(1)' -j '$(JOBS)' AR='$(TARGET)-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 |