Mercurial > mxe-octave
annotate src/gsoap.mk @ 665:8b5864900f70
implemented version recognition for package gsoap
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sat, 23 Jan 2010 22:24:00 +0100 |
parents | 40b94e85013a |
children | 13689d3ddac5 |
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 | |
35 # Native build to get tools wsdl2h and soapcpp2 | |
36 cd '$(1)' && ./configure | |
37 | |
38 # Parallel bulds can fail | |
39 $(MAKE) -C '$(1)'/gsoap -j 1 | |
40 | |
41 # Install the native tools manually | |
42 $(INSTALL) -m755 '$(1)'/gsoap/wsdl/wsdl2h '$(PREFIX)/bin/$(TARGET)-wsdl2h' | |
43 $(INSTALL) -m755 '$(1)'/gsoap/src/soapcpp2 '$(PREFIX)/bin/$(TARGET)-soapcpp2' | |
44 | |
45 $(MAKE) -C '$(1)' -j '$(JOBS)' clean | |
46 | |
47 # Build for mingw. Static by default. | |
48 # Prevent undefined reference to _rpl_malloc. | |
49 # 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
|
50 cd '$(1)' && ac_cv_func_malloc_0_nonnull=yes ./configure \ |
662 | 51 --prefix='$(PREFIX)/$(TARGET)' \ |
52 --host='$(TARGET)' | |
663
21e0d95330cf
small cleanups for package gsoap
Volker Grabsch <vog@notjusthosting.com>
parents:
662
diff
changeset
|
53 |
662 | 54 # Building for mingw requires native soapcpp2 |
55 ln -s '$(PREFIX)/bin/$(TARGET)-soapcpp2' '$(1)'/gsoap/src/soapcpp2 | |
56 | |
57 # Parallel bulds can fail | |
58 $(MAKE) -C '$(1)' -j 1 | |
59 | |
60 $(MAKE) -C '$(1)' -j 1 install | |
61 # Apparently there is a tradition of compiling gsoap source files into applications. | |
62 # Since we linked dom.cpp and dom.c into the libraries, this should not be necessary. | |
63 # But we bend to tradition and install these sources into mingw-cross-env. | |
64 $(INSTALL) -m644 '$(1)/gsoap/'*.c '$(1)/gsoap/'*.cpp '$(PREFIX)/$(TARGET)/share/gsoap' | |
65 endef |