File: rules

package info (click to toggle)
gsoap 2.8.139-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 37,472 kB
  • sloc: cpp: 73,267; ansic: 55,631; xml: 23,854; sh: 4,539; yacc: 2,872; lex: 1,157; makefile: 1,040
file content (135 lines) | stat: -rwxr-xr-x 4,510 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

# Add -D_GNU_SOURCE to CPPFLAGS to make strtod_l available on hurd-any
export DEB_CPPFLAGS_MAINT_APPEND = -D_GNU_SOURCE

version = 2.8.139

%:
	dh $@

override_dh_auto_configure-arch:
	find gsoap/samples/autotest/databinding/examples -name '*.xml' \
		-exec chmod a-x {} ';'

ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
	mkdir build-native
	cd build-native && ../configure
	$(MAKE) -C build-native

	dh_auto_configure -- \
		--with-soapcpp2=$(CURDIR)/build-native/gsoap/src/soapcpp2 \
		--with-wsdl2h=$(CURDIR)/build-native/gsoap/wsdl/wsdl2h \
		--enable-ipv6 \
		--enable-samples
else
	dh_auto_configure -- \
		--enable-ipv6 \
		--enable-samples
endif

override_dh_auto_build-arch:
	# Add /usr/share/gsoap to soapcpp2's default import path
	dh_auto_build -- SOAPCPP2_IMPORTPATH='-DSOAPCPP2_IMPORT_PATH="\"/usr/share/gsoap/import:/usr/share/gsoap\""'

override_dh_auto_clean-arch:
	dh_auto_clean
	rm -rf build-native

override_dh_auto_install-arch:
	dh_auto_install
	rm debian/tmp/usr/lib/*/*.la
	rm debian/tmp/usr/share/gsoap/custom/*.o
	rm debian/tmp/usr/share/gsoap/plugin/*.o
	install -p -m 644 debian/WS-README debian/tmp/usr/share/gsoap/WS

override_dh_autoreconf-indep:

override_dh_auto_configure-indep:
	chmod a-x gsoap/doc/fonts/*

override_dh_auto_build-indep:
	for f in gsoap/doc/*/Doxyfile ; do \
	  ( cd `dirname $$f` ; doxygen Doxyfile ) ; \
	done

override_dh_auto_clean-indep:
	rm -rf gsoap/doc/*/html
	rm -f gsoap/doc/*/doxygen_sqlite3.db

override_dh_auto_install-indep:

override_dh_installdocs-indep:
	dh_installdocs -X Doxyfile -X README.txt \
		-X doxygen_footer.html -X doxygen_header.html \
		-X guide/index.md -X guide/stdsoap2.h -X soapdoc2.html \
		-X gsoap/doc/GeniviaLogo2_trans_noslogan.png \
		-X gsoap/doc/genivia_content.css \
		-X genivia_tabs.css \
		-X gsoap/doc/index.html \
		-X doxygen_sqlite3.db

override_dh_compress-indep:
	dh_compress -X fonts

get-orig-source:
	if [ -r gsoap_$(version).orig.tar.gz ] ; then \
	  echo "gsoap_$(version).orig.tar.gz already exists." ; \
	else \
	  if [ -d "gsoap-2.8" ]; then \
	    echo "Please remove existing directory 'gsoap-2.8'" ; \
	    exit 1 ; \
	  fi ; \
	  if [ -d "gsoap-$(version)" ]; then \
	    echo "Please remove existing directory 'gsoap-$(version)'" ; \
	    exit 1 ; \
	  fi ; \
	  if [ -r gsoap_$(version).zip ]; then \
	    echo "Using existing ZIP archive gsoap_$(version).zip" ; \
	    echo "Delete the file and rerun if you want to redownload" ; \
	  else \
	    echo "Fetching upstream ZIP archive" ; \
	    wget https://downloads.sourceforge.net/gsoap2/gsoap_$(version).zip ; \
	  fi ; \
	  echo "Unpacking and renaming folder" ; \
	  unzip gsoap_$(version).zip ; \
	  mv gsoap-2.8 gsoap-$(version) ; \
	  echo "Deleting precompiled binaries" ; \
	  rm -rf gsoap-$(version)/gsoap/bin ; \
	  rm gsoap-$(version)/gsoap/samples/rest/person \
	     gsoap-$(version)/gsoap/samples/wcf/Basic/TransportSecurity/calculator \
	     gsoap-$(version)/gsoap/VisualStudio2005/wsdl2h/wsdl2h/soapcpp2.exe ; \
	  echo "Deleting pre-generated doxygen documentaion" ; \
	  rm -rf gsoap-$(version)/gsoap/doc/*/html ; \
	  echo "Deleting code with only non-free licenses" ; \
	  rm -rf gsoap-$(version)/gsoap/extras \
		 gsoap-$(version)/gsoap/mod_gsoap \
		 gsoap-$(version)/gsoap/Symbian \
		 gsoap-$(version)/gsoap/doc/apache \
		 gsoap-$(version)/gsoap/doc/wininet \
		 gsoap-$(version)/gsoap/doc/isapi ; \
	  echo "Deleting xsd and wsdl files" ; \
	  rm gsoap-$(version)/gsoap/WS/*.xsd \
	     gsoap-$(version)/gsoap/WS/*.wsdl \
	     gsoap-$(version)/gsoap/samples/autotest/*.xsd \
	     gsoap-$(version)/gsoap/samples/autotest/*.wsdl \
	     gsoap-$(version)/gsoap/uddi2/*.xsd \
	     gsoap-$(version)/gsoap/uddi2/*.wsdl ; \
	  echo "Deleting pre-generated files" ; \
	  rm gsoap-$(version)/gsoap/samples/webserver/optC.c \
	     gsoap-$(version)/gsoap/samples/webserver/optH.h \
	     gsoap-$(version)/gsoap/samples/webserver/optStub.h ; \
	  rm gsoap-$(version)/gsoap/VisualStudio2005/wsdl2h/wsdl2h/wsdlC.cpp \
	     gsoap-$(version)/gsoap/VisualStudio2005/wsdl2h/wsdl2h/wsdlH.h \
	     gsoap-$(version)/gsoap/VisualStudio2005/wsdl2h/wsdl2h/wsdlStub.h ; \
	  echo "Deleting .DS_Store files" ; \
	  find gsoap-$(version) -name .DS_Store -exec rm {} ';' ; \
	  echo "Repacking" ; \
	  tar -z -c -f gsoap_$(version).orig.tar.gz gsoap-$(version) ; \
	  echo "Cleaning up" ; \
	  rm -rf gsoap-$(version) ; \
	  echo "Done" ; \
	fi