~fginther/libgrip/libgrip-0.3.5-precise

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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/utils.mk

# Run autoreconf if this is a native (daily) build
do_autoreconf = $(if $(wildcard autogen.sh),1)
ifeq ("$(do_autoreconf)","1")
include /usr/share/cdbs/1/rules/autoreconf.mk
endif

DEB_PYTHON_SYSTEM=dh_python2

DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,-O1 -Wl,--as-needed"

DEB_CONFIGURE_EXTRA_FLAGS += --disable-gtk-doc

common-binary-post-install-arch::
	find debian/tmp/usr/lib -name \*.la -exec rm {} \;
	find debian/tmp/usr/lib -name \*.a -exec rm {} \;
	find debian/tmp/usr/lib -name \*.pyc -exec rm {} \;
	find debian/tmp/usr/lib -name \*.pyo -exec rm {} \;

binary-predeb/gir%::
	dh_girepository -p$(cdbs_curpkg)

binary-predeb/python-grip::
	dh_python2 -ppython-grip

common-binary-predeb-arch:: list-missing