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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
662
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
1 # This file is part of mingw-cross-env.
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
2 # See doc/index.html or doc/README for further information.
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
3
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
4 # gSOAP
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
5 PKG := gsoap
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
6 $(PKG)_IGNORE :=
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
7 $(PKG)_VERSION := 2.7.15
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
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
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
10 $(PKG)_FILE := gsoap_$($(PKG)_VERSION).tar.gz
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
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
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
13 $(PKG)_DEPS := gcc openssl
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
14
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
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
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
19 endef
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
20
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
21 define $(PKG)_BUILD
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
22
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
23 # gsoap-1-link-dom.patch
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
24 # The code in dom.c(pp) is needed for some applications.
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
25 # Patch adds to the libs for easy linking in mingw-cross-env.
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
26 # Rename dom.cpp to dom_cpp.cpp to prevent collision between
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
27 # dom.c and dom.cpp at dom.o.
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
28
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
29 # gsoap-2-autogen.patch
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
30 # Need to process changes to Makefile.am.
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
31 # aclocal
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
32 # automake --add-missing
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
33 # autoconf
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
34
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
35 # Native build to get tools wsdl2h and soapcpp2
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
36 cd '$(1)' && ./configure
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
37
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
38 # Parallel bulds can fail
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
39 $(MAKE) -C '$(1)'/gsoap -j 1
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
40
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
41 # Install the native tools manually
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
42 $(INSTALL) -m755 '$(1)'/gsoap/wsdl/wsdl2h '$(PREFIX)/bin/$(TARGET)-wsdl2h'
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
43 $(INSTALL) -m755 '$(1)'/gsoap/src/soapcpp2 '$(PREFIX)/bin/$(TARGET)-soapcpp2'
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
44
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
45 $(MAKE) -C '$(1)' -j '$(JOBS)' clean
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
46
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
47 # Build for mingw. Static by default.
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
48 # Prevent undefined reference to _rpl_malloc.
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
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
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
51 --prefix='$(PREFIX)/$(TARGET)' \
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
52 --host='$(TARGET)'
663
21e0d95330cf small cleanups for package gsoap
Volker Grabsch <vog@notjusthosting.com>
parents: 662
diff changeset
53
662
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
54 # Building for mingw requires native soapcpp2
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
55 ln -s '$(PREFIX)/bin/$(TARGET)-soapcpp2' '$(1)'/gsoap/src/soapcpp2
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
56
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
57 # Parallel bulds can fail
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
58 $(MAKE) -C '$(1)' -j 1
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
59
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
60 $(MAKE) -C '$(1)' -j 1 install
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
61 # Apparently there is a tradition of compiling gsoap source files into applications.
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
62 # Since we linked dom.cpp and dom.c into the libraries, this should not be necessary.
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
63 # But we bend to tradition and install these sources into mingw-cross-env.
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
64 $(INSTALL) -m644 '$(1)/gsoap/'*.c '$(1)/gsoap/'*.cpp '$(PREFIX)/$(TARGET)/share/gsoap'
9073c795e712 new package: gsoap
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
65 endef