Mercurial > mxe-octave
annotate src/gsoap.mk @ 668:b37283cb0a26
use '$(TARGET)-ar' rather that 'ar' in package gsoap (by Tony Theodore)
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Tue, 26 Jan 2010 18:19:19 +0100 |
parents | 13689d3ddac5 |
children | 867c778bcf84 |
rev | line source |
---|---|
662 | 1 # This file is part of mingw-cross-env. |
2 # See doc/index.html or doc/README for further information. | |
3 | |
4 # gSOAP | |
5 PKG := gsoap | |
6 $(PKG)_IGNORE := | |
7 $(PKG)_VERSION := 2.7.15 | |
8 $(PKG)_CHECKSUM := 9c93d71103ec70074fa8db43d0fe1d3a1fff8d55 | |
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)) |
662 | 10 $(PKG)_FILE := gsoap_$($(PKG)_VERSION).tar.gz |
11 $(PKG)_WEBSITE := http://gsoap2.sourceforge.net/ | |
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
|
12 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/gsoap2/gSOAP/$($(PKG)_VERSION) stable/$($(PKG)_FILE) |
662 | 13 $(PKG)_DEPS := gcc openssl |
14 | |
15 define $(PKG)_UPDATE | |
665
8b5864900f70
implemented version recognition for package gsoap
Volker Grabsch <vog@notjusthosting.com>
parents:
664
diff
changeset
|
16 $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/gsoap2/files/gSOAP/) | \ |
8b5864900f70
implemented version recognition for package gsoap
Volker Grabsch <vog@notjusthosting.com>
parents:
664
diff
changeset
|
17 $(SED) -n 's,.*gsoap_\([0-9][^>]*\)\.tar.*,\1,p' | \ |
8b5864900f70
implemented version recognition for package gsoap
Volker Grabsch <vog@notjusthosting.com>
parents:
664
diff
changeset
|
18 tail -1 |
662 | 19 endef |
20 | |
21 define $(PKG)_BUILD | |
22 | |
23 # gsoap-1-link-dom.patch | |
24 # The code in dom.c(pp) is needed for some applications. | |
25 # Patch adds to the libs for easy linking in mingw-cross-env. | |
26 # Rename dom.cpp to dom_cpp.cpp to prevent collision between | |
27 # dom.c and dom.cpp at dom.o. | |
28 | |
29 # gsoap-2-autogen.patch | |
30 # Need to process changes to Makefile.am. | |
31 # aclocal | |
32 # automake --add-missing | |
33 # autoconf | |
34 | |
667
13689d3ddac5
remove the need for flex/bison in package gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
665
diff
changeset
|
35 # gsoap-3-lex-yacc.patch |
13689d3ddac5
remove the need for flex/bison in package gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
665
diff
changeset
|
36 # Tarball does not supply lex- and yacc-generated sources. |
13689d3ddac5
remove the need for flex/bison in package gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
665
diff
changeset
|
37 # This patch supplies them because mingw-cross-env does not |
13689d3ddac5
remove the need for flex/bison in package gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
665
diff
changeset
|
38 # require yacc or flex. |
13689d3ddac5
remove the need for flex/bison in package gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
665
diff
changeset
|
39 # These files must survive "make clean". |
13689d3ddac5
remove the need for flex/bison in package gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
665
diff
changeset
|
40 |
662 | 41 # Native build to get tools wsdl2h and soapcpp2 |
42 cd '$(1)' && ./configure | |
43 | |
44 # Parallel bulds can fail | |
45 $(MAKE) -C '$(1)'/gsoap -j 1 | |
46 | |
47 # Install the native tools manually | |
48 $(INSTALL) -m755 '$(1)'/gsoap/wsdl/wsdl2h '$(PREFIX)/bin/$(TARGET)-wsdl2h' | |
49 $(INSTALL) -m755 '$(1)'/gsoap/src/soapcpp2 '$(PREFIX)/bin/$(TARGET)-soapcpp2' | |
50 | |
51 $(MAKE) -C '$(1)' -j '$(JOBS)' clean | |
52 | |
53 # Build for mingw. Static by default. | |
54 # Prevent undefined reference to _rpl_malloc. | |
55 # 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
|
56 cd '$(1)' && ac_cv_func_malloc_0_nonnull=yes ./configure \ |
662 | 57 --prefix='$(PREFIX)/$(TARGET)' \ |
58 --host='$(TARGET)' | |
663
21e0d95330cf
small cleanups for package gsoap
Volker Grabsch <vog@notjusthosting.com>
parents:
662
diff
changeset
|
59 |
662 | 60 # Building for mingw requires native soapcpp2 |
61 ln -s '$(PREFIX)/bin/$(TARGET)-soapcpp2' '$(1)'/gsoap/src/soapcpp2 | |
62 | |
63 # 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
|
64 $(MAKE) -C '$(1)' -j 1 AR='$(TARGET)-ar' |
662 | 65 |
66 $(MAKE) -C '$(1)' -j 1 install | |
67 # Apparently there is a tradition of compiling gsoap source files into applications. | |
68 # Since we linked dom.cpp and dom.c into the libraries, this should not be necessary. | |
69 # But we bend to tradition and install these sources into mingw-cross-env. | |
70 $(INSTALL) -m644 '$(1)/gsoap/'*.c '$(1)/gsoap/'*.cpp '$(PREFIX)/$(TARGET)/share/gsoap' | |
71 endef |