aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
blob: 4581c337f4794ea07c607895437d89f523377ad8 (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_libindicator4 += -V 'libindicator4 (>= 0.3.90)'
DEB_DH_MAKESHLIBS_ARGS_libindicator3_4 += -V 'libindicator3-4 (>= 0.3.90)'

configure/libindicator4:: stamp-configure-gtk2
stamp-configure-gtk2:
	: # configure for GTK+ 2.0
	set -e; \
	rm -rf build-gtk2; \
	mkdir build-gtk2; \
	cd build-gtk2; \
	$(DEB_CONFIGURE_SCRIPT_ENV) ../configure --with-gtk=2 \
		$(filter-out --srcdir=%, $(DEB_CONFIGURE_NORMAL_ARGS) $(DEB_CONFIGURE_EXTRA_FLAGS)); \
	cd ..;
	touch stamp-configure-gtk2

build/libindicator4:: stamp-build-gtk2
stamp-build-gtk2: stamp-configure-gtk2
	: # build for GTK+ 2.0
	$(MAKE) -C build-gtk2;
	touch stamp-build-gtk2

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

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