blob: 2de5998eca9a962e384f8960d909a4d957e36927 (
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
|
#!/usr/bin/make -f
FLAVORS = gtk2 gtk3
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
COMMON_CONFIGURE_FLAGS = --disable-silent-rules
CONFIGURE_FLAGS_gtk2 = --with-gtk=2
CONFIGURE_FLAGS_gtk3 = --with-gtk=3
LDFLAGS += -Wl,-z,defs -Wl,--as-needed
export G_MESSAGES_DEBUG = all
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
%:
dh $@ --with autoreconf
override_dh_autoreconf:
NOCONFIGURE=1 dh_autoreconf ./autogen.sh
override_dh_auto_configure: $(FLAVORS:%=doconfigure-%)
doconfigure-%:
DH_VERBOSE=1 dh_auto_configure --builddirectory=builddir/$* -- $(COMMON_CONFIGURE_FLAGS) $(CONFIGURE_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_install:
find debian/tmp -name \*.la -delete
find debian/tmp -name libdummy-indicator\* -delete
rm -f debian/tmp/gtk2/usr/share/libayatana-indicator/80indicator-debugging
rm -f debian/tmp/gtk2/usr/lib/systemd/user/ayatana-indicators-pre.target
dh_install -plibayatana-indicator7 --fail-missing --sourcedir=debian/tmp/gtk2
dh_install -plibayatana-indicator-dev --fail-missing --sourcedir=debian/tmp/gtk2
dh_install -plibayatana-indicator-tools --fail-missing --sourcedir=debian/tmp/gtk2
dh_install -plibayatana-indicator3-7 --fail-missing --sourcedir=debian/tmp/gtk3
dh_install -plibayatana-indicator3-dev --fail-missing --sourcedir=debian/tmp/gtk3
dh_install -plibayatana-indicator3-tools --fail-missing --sourcedir=debian/tmp/gtk3
dh_install -payatana-indicator-common --fail-missing --sourcedir=debian/tmp/gtk3
override_dh_makeshlibs:
dh_makeshlibs -plibayatana-indicator7 -V 'libayatana-indicator7 (>= 0.6.0)'
dh_makeshlibs -plibayatana-indicator3-7 -V 'libayatana-indicator3-7 (>= 0.6.0)'
override_dh_auto_clean:
dh_auto_clean
rm -Rf builddir/
rm -Rf build-aux/
|