Mercurial > mxe-octave
annotate src/gsoap.mk @ 2349:f48c5b085a38
Move $(PKG)_VERSION and $(PKG)_WEBSITE from src/*.mk into doc/index.html
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 29 Mar 2012 11:07:07 +0200 |
parents | f653602a0500 |
children | 99516e73b368 |
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. |
714
29f1ba4559ae
point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents:
709
diff
changeset
|
2 # See doc/index.html for further information. |
662 | 3 |
4 # gSOAP | |
5 PKG := gsoap | |
6 $(PKG)_IGNORE := | |
2249 | 7 $(PKG)_CHECKSUM := 011b507e667d7bb76e30fc8a31055e8cf323311d |
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 |
949 | 10 $(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
|
11 $(PKG)_DEPS := gcc gnutls libgcrypt libntlm |
662 | 12 |
13 define $(PKG)_UPDATE | |
1466
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1176
diff
changeset
|
14 wget -q -O- 'http://sourceforge.net/projects/gsoap2/files/gSOAP/' | \ |
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 | |
20 # Native build to get tools wsdl2h and soapcpp2 | |
1169
9ca7f1fa7c9b
improvements for package gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
1165
diff
changeset
|
21 cd '$(1)' && ./configure |
662 | 22 |
2175
2bbf834b331d
package gsoap: workaround for parallel building
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
23 # Work around parallel build problem |
2bbf834b331d
package gsoap: workaround for parallel building
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
24 $(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
|
25 $(MAKE) -C '$(1)'/gsoap -j '$(JOBS)' |
662 | 26 |
27 # Install the native tools manually | |
28 $(INSTALL) -m755 '$(1)'/gsoap/wsdl/wsdl2h '$(PREFIX)/bin/$(TARGET)-wsdl2h' | |
29 $(INSTALL) -m755 '$(1)'/gsoap/src/soapcpp2 '$(PREFIX)/bin/$(TARGET)-soapcpp2' | |
30 | |
31 $(MAKE) -C '$(1)' -j '$(JOBS)' clean | |
32 | |
1953 | 33 # fix hard-coded gnutls dependencies |
2055
c26efa95224d
packages curl gsoap vmime: gnutls 3 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
2039
diff
changeset
|
34 $(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
|
35 |
662 | 36 # Build for mingw. Static by default. |
37 # Prevent undefined reference to _rpl_malloc. | |
38 # 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
|
39 cd '$(1)' && ac_cv_func_malloc_0_nonnull=yes ./configure \ |
686
0964ad16d896
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
681
diff
changeset
|
40 --prefix='$(PREFIX)/$(TARGET)' \ |
1169
9ca7f1fa7c9b
improvements for package gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
1165
diff
changeset
|
41 --host='$(TARGET)' \ |
2153
e4c83fa61a5b
replaced $(BUILD) with a more direct and less brittle construct
Volker Grabsch <vog@notjusthosting.com>
parents:
2148
diff
changeset
|
42 --build="`config.guess`" \ |
2080
dd2ac0a72169
package gsoap: upgrade to v2.8.4 with fix
Mark Brand <mabrand@mabrand.nl>
parents:
2079
diff
changeset
|
43 --enable-gnutls \ |
dd2ac0a72169
package gsoap: upgrade to v2.8.4 with fix
Mark Brand <mabrand@mabrand.nl>
parents:
2079
diff
changeset
|
44 CPPFLAGS='-DWITH_NTLM' |
663
21e0d95330cf
small cleanups for package gsoap
Volker Grabsch <vog@notjusthosting.com>
parents:
662
diff
changeset
|
45 |
662 | 46 # Building for mingw requires native soapcpp2 |
1946
c6831f324cc3
improved coding style regarding creation of symlinks
Volker Grabsch <vog@notjusthosting.com>
parents:
1902
diff
changeset
|
47 ln -sf '$(PREFIX)/bin/$(TARGET)-soapcpp2' '$(1)/gsoap/src/soapcpp2' |
662 | 48 |
2175
2bbf834b331d
package gsoap: workaround for parallel building
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
49 # Work around parallel build problem |
2bbf834b331d
package gsoap: workaround for parallel building
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
50 $(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
|
51 $(MAKE) -C '$(1)' -j '$(JOBS)' AR='$(TARGET)-ar' |
662 | 52 |
2175
2bbf834b331d
package gsoap: workaround for parallel building
Mark Brand <mabrand@mabrand.nl>
parents:
2174
diff
changeset
|
53 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
662 | 54 # Apparently there is a tradition of compiling gsoap source files into applications. |
55 # 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
|
56 # But we bend to tradition and install these sources into MXE. |
662 | 57 $(INSTALL) -m644 '$(1)/gsoap/'*.c '$(1)/gsoap/'*.cpp '$(PREFIX)/$(TARGET)/share/gsoap' |
58 endef |