File: rules

package info (click to toggle)
libical3 3.0.20-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,068 kB
  • sloc: ansic: 37,740; xml: 6,726; cpp: 6,414; python: 2,551; perl: 1,613; java: 1,415; yacc: 1,136; sh: 520; lex: 133; makefile: 46; php: 10
file content (47 lines) | stat: -rwxr-xr-x 1,474 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/architecture.mk

%:
	dh $@ --with gir --buildsystem=cmake --no-parallel

CONFIGURE_FLAGS = \
	-DGOBJECT_INTROSPECTION=true \
	-DICAL_GLIB_VAPI=true \
	-DICAL_BUILD_DOCS=$(if $(filter libical-doc,$(shell dh_listpackages)),ON,OFF)

override_dh_auto_configure:
ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
	dh_auto_configure -- $(CONFIGURE_FLAGS)
else
	dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c \
		dh_auto_configure --reload-all-buildenv-variables -- -DICAL_BUILD_DOCS=OFF
	dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c \
		dh_auto_build --reload-all-buildenv-variables
	dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c \
		dh_auto_install --reload-all-buildenv-variables --destdir=debian/nativetmp
	dh_auto_configure -- \
		$(CONFIGURE_FLAGS) \
		-DIMPORT_ICAL_GLIB_SRC_GENERATOR=$(CURDIR)/debian/nativetmp/usr/lib/$(DEB_BUILD_MULTIARCH)/cmake/LibIcal/IcalGlibSrcGenerator.cmake \
		-DVAPIGEN=/usr/bin/$(DEB_HOST_GNU_TYPE)-vapigen \
		-DVALAC=/usr/bin/$(DEB_HOST_GNU_TYPE)-valac
endif

override_dh_missing:
	dh_missing --list-missing

ifneq (,$(filter $(DEB_HOST_ARCH), kfreebsd-amd64 kfreebsd-i386))
override_dh_auto_test:
	: # the tests hang on the buildds, don't run them
	: -dh_auto_test
endif

ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
execute_after_dh_auto_clean:
	dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_clean

execute_after_debian_clean:
	rm -Rf debian/nativetmp
endif