Mercurial > mxe-octave
annotate src/gsoap.mk @ 1754:cc3dcfeeecdb
update package gsoap
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Mon, 18 Apr 2011 09:45:03 +0200 |
parents | 5957a725ef3b |
children | 621a6afbfbee |
rev | line source |
---|---|
662 | 1 # This file is part of mingw-cross-env. |
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 := | |
1754 | 7 $(PKG)_VERSION := 2.8.2 |
8 $(PKG)_CHECKSUM := 199b7d4cf0b6a5bf81a2198e39f03c092ffc05a7 | |
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
|
9 $(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
|
10 $(PKG)_FILE := gsoap_$($(PKG)_VERSION).zip |
662 | 11 $(PKG)_WEBSITE := http://gsoap2.sourceforge.net/ |
949 | 12 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/gsoap2/gSOAP/$($(PKG)_FILE) |
1602
5957a725ef3b
remove dependency openssl from package gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
1549
diff
changeset
|
13 $(PKG)_DEPS := gcc gnutls |
662 | 14 |
15 define $(PKG)_UPDATE | |
1466
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1176
diff
changeset
|
16 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
|
17 $(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
|
18 head -1 |
662 | 19 endef |
20 | |
21 define $(PKG)_BUILD | |
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 |
25 # Parallel bulds can fail | |
26 $(MAKE) -C '$(1)'/gsoap -j 1 | |
27 | |
28 # Install the native tools manually | |
29 $(INSTALL) -m755 '$(1)'/gsoap/wsdl/wsdl2h '$(PREFIX)/bin/$(TARGET)-wsdl2h' | |
30 $(INSTALL) -m755 '$(1)'/gsoap/src/soapcpp2 '$(PREFIX)/bin/$(TARGET)-soapcpp2' | |
31 | |
32 $(MAKE) -C '$(1)' -j '$(JOBS)' clean | |
33 | |
34 # Build for mingw. Static by default. | |
35 # Prevent undefined reference to _rpl_malloc. | |
36 # 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
|
37 cd '$(1)' && ac_cv_func_malloc_0_nonnull=yes ./configure \ |
686
0964ad16d896
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
681
diff
changeset
|
38 --prefix='$(PREFIX)/$(TARGET)' \ |
1169
9ca7f1fa7c9b
improvements for package gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
1165
diff
changeset
|
39 --host='$(TARGET)' \ |
9ca7f1fa7c9b
improvements for package gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
1165
diff
changeset
|
40 --enable-gnutls |
663
21e0d95330cf
small cleanups for package gsoap
Volker Grabsch <vog@notjusthosting.com>
parents:
662
diff
changeset
|
41 |
662 | 42 # Building for mingw requires native soapcpp2 |
43 ln -s '$(PREFIX)/bin/$(TARGET)-soapcpp2' '$(1)'/gsoap/src/soapcpp2 | |
44 | |
45 # Parallel bulds can fail | |
668
b37283cb0a26
use '$(TARGET)-ar' rather that 'ar' in package gsoap (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
667
diff
changeset
|
46 $(MAKE) -C '$(1)' -j 1 AR='$(TARGET)-ar' |
662 | 47 |
48 $(MAKE) -C '$(1)' -j 1 install | |
49 # Apparently there is a tradition of compiling gsoap source files into applications. | |
50 # Since we linked dom.cpp and dom.c into the libraries, this should not be necessary. | |
51 # But we bend to tradition and install these sources into mingw-cross-env. | |
52 $(INSTALL) -m644 '$(1)/gsoap/'*.c '$(1)/gsoap/'*.cpp '$(PREFIX)/$(TARGET)/share/gsoap' | |
53 endef |