aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
blob: de71b0a0a271f56677db5411e168ae336a510578 (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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/gnome.mk
include /usr/share/cdbs/1/rules/autoreconf.mk

DEB_SRCDIR = .
DEB_BUILDDIR = $(DEB_SRCDIR)/build

LDFLAGS += -Wl,-z,defs -Wl,--as-needed

DEB_DH_MAKESHLIBS_ARGS_libindicator1 += -V 'libindicator1 (>= 0.3.18)'
DEB_DH_MAKESHLIBS_ARGS_libindicator3 += -V 'libindicator3-1 (>= 0.3.18)'

configure/libindicator3-1:: stamp-configure-gtk3
stamp-configure-gtk3:
	: # configure for GTK+ 3.0
	set -e; \
	rm -rf build-gtk3; \
	mkdir build-gtk3; \
	cd build-gtk3; \
	$(DEB_CONFIGURE_SCRIPT_ENV) ../configure --with-gtk=3 \
		$(filter-out --srcdir=%, $(DEB_CONFIGURE_NORMAL_ARGS) $(DEB_CONFIGURE_EXTRA_FLAGS)); \
	cd ..;
	touch stamp-configure-gtk3

build/libindicator3-1:: stamp-build-gtk3
stamp-build-gtk3: stamp-configure-gtk3
	: # build for GTK+ 3.0
	$(MAKE) -C build-gtk3;
	touch stamp-build-gtk3

common-install-prehook-arch:: stamp-build-gtk3
	: # install for GTK+ 3.0
	$(MAKE) -C build-gtk3 DESTDIR=$(CURDIR)/debian/tmp install

clean::
	rm -f stamp-*-gtk3
	rm -rf build-gtk3