blob: 5534dfa06e88ad44f060e17e3d11c83c6dbcd1b5 (
plain)
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
|
#!/usr/bin/make -f
FLAVORS = gtk2 gtk3
CONFIGURE_FLAGS_gtk2 = --with-gtk=2
CONFIGURE_FLAGS_gtk3 = --with-gtk=3
CONFIGURE_COMMON_FLAGS += --disable-scrollkeeper --enable-gtk-doc --enable-introspection --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
INSTALL_COMMON_FLAGS = --fail-missing
LDFLAGS += -Wl,-z,defs -Wl,--as-needed
%:
dh $@ --with autoreconf,gir
override_dh_autoreconf:
NOCONFIGURE=1 dh_autoreconf ./autogen.sh
override_dh_auto_configure: $(FLAVORS:%=doconfigure-%)
doconfigure-%:
DH_VERBOSE=1 dh_auto_configure --builddirectory=builddir/$* -- $(CONFIGURE_FLAGS_$*) $(CONFIGURE_COMMON_FLAGS)
override_dh_auto_build: $(FLAVORS:%=dobuild-%)
dobuild-%:
dh_auto_build --builddirectory=builddir/$*
override_dh_auto_install: $(FLAVORS:%=doinstall-%)
doinstall-%:
dh_auto_install --builddirectory=builddir/$* --destdir=debian/tmp/$*
override_dh_auto_test: $(FLAVORS:%=dotest-%)
dotest-%:
ifeq ($(DEB_HOST_ARCH),ppc64el)
: # ignore the test results on $(DEB_HOST_ARCH)
-VERBOSE=1 xvfb-run -a dh_auto_test --builddirectory=builddir/$*
else
VERBOSE=1 xvfb-run -a dh_auto_test --builddirectory=builddir/$*
endif
override_dh_install:
find debian/tmp -name \*.la -delete
# Remove gtk2 copies of dbusmenu-tools (we use the gtk3 build)
rm -f debian/tmp/gtk2/usr/lib/x86_64-linux-gnu/dbusmenu-testapp
rm -f debian/tmp/gtk2/usr/lib/x86_64-linux-gnu/dbusmenu-dumper
rm -f debian/tmp/gtk2/usr/lib/x86_64-linux-gnu/dbusmenu-bench
dh_install $(INSTALL_COMMON_FLAGS) -plibdbusmenu-gtk4 --sourcedir=debian/tmp/gtk2
dh_install $(INSTALL_COMMON_FLAGS) -plibdbusmenu-gtk-dev --sourcedir=debian/tmp/gtk2
dh_install $(INSTALL_COMMON_FLAGS) -plibdbusmenu-gtk-doc --sourcedir=debian/tmp/gtk2
dh_install $(INSTALL_COMMON_FLAGS) -pgir1.2-dbusmenu-gtk-0.4 --sourcedir=debian/tmp/gtk2
dh_install $(INSTALL_COMMON_FLAGS) -pgir1.2-dbusmenu-glib-0.4 --sourcedir=debian/tmp/gtk3
dh_install $(INSTALL_COMMON_FLAGS) -pgir1.2-dbusmenu-gtk3-0.4 --sourcedir=debian/tmp/gtk3
dh_install $(INSTALL_COMMON_FLAGS) -plibdbusmenu-glib4 --sourcedir=debian/tmp/gtk3
dh_install $(INSTALL_COMMON_FLAGS) -plibdbusmenu-glib-dev --sourcedir=debian/tmp/gtk3
dh_install $(INSTALL_COMMON_FLAGS) -plibdbusmenu-glib-doc --sourcedir=debian/tmp/gtk3
dh_install $(INSTALL_COMMON_FLAGS) -plibdbusmenu-gtk3-4 --sourcedir=debian/tmp/gtk3
dh_install $(INSTALL_COMMON_FLAGS) -plibdbusmenu-gtk3-dev --sourcedir=debian/tmp/gtk3
dh_install $(INSTALL_COMMON_FLAGS) -plibdbusmenu-jsonloader4 --sourcedir=debian/tmp/gtk3
dh_install $(INSTALL_COMMON_FLAGS) -plibdbusmenu-jsonloader-dev --sourcedir=debian/tmp/gtk3
dh_install $(INSTALL_COMMON_FLAGS) -plibdbusmenu-tools --sourcedir=debian/tmp/gtk3
override_dh_shlibdeps:
dh_shlibdeps -plibdbusmenu-gtk4 -- -xlibgtk2.0-0
dh_shlibdeps -plibdbusmenu-gtk3-4 -- -xlibgtk-3-0
|