File: rules

package info (click to toggle)
lirc 0.9.4c-9
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 8,264 kB
  • ctags: 5,536
  • sloc: ansic: 26,459; cpp: 9,138; sh: 5,492; python: 2,996; makefile: 873; xml: 63
file content (59 lines) | stat: -rwxr-xr-x 1,608 bytes parent folder | download
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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS      = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND     = -Wl,--as-needed

%:
	dh $@ --with autoreconf,python3,systemd --parallel

override_dh_autoreconf:
	dh_autoreconf $(CURDIR)/autogen.sh

override_dh_auto_configure:
ifeq ($(DEB_BUILD_ARCH_OS), linux)
	dh_auto_configure -- HAVE_UINPUT=1
else
	dh_auto_configure
endif

override_dh_shlibdeps:
	dh_shlibdeps -l $(CURDIR)/debian/tmp/usr/lib/*/lirc/plugins

override_dh_auto_install:
	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp \
            pythondir='$$(libdir)/python3/dist-packages' \
	    install
	py3clean debian/tmp
	find debian/tmp -name *.la -delete
ifeq ($(DEB_BUILD_ARCH_OS), linux)
	mkdir -p debian/tmp/usr/lib/tmpfiles.d
	echo "d /var/run/lirc  0755  root  root  10d" \
	    > debian/tmp/usr/lib/tmpfiles.d/lirc.conf
endif
	# Temporary postinstall 0.9.4 script.
	cp debian/lirc-old2new debian/tmp/usr/share/lirc
	# Don't overwrite existing config files.
	for f in lircd.conf lircmd.conf irexec.lircrc lirc_options.conf; do \
	    mv debian/tmp/etc/lirc/$$f debian/tmp/etc/lirc/$$f.dist; \
	done

override_dh_systemd_enable:
	dh_systemd_enable --name=lircd

override_dh_install:
	dh_install --fail-missing

override_dh_installinit:
	dh_installinit --package=lirc --name=lircd
	dh_installinit --package=lirc --name=lircmd
	dh_installinit

override_dh_python3:
	# dh_python3 fails to create deps and to compile.
	dh_python3 /usr/lib/*/python3/dist-packages/lirc/

override_dh_fixperms-arch:
	dh_fixperms
	chmod 755 debian/lirc/usr/share/lirc/contrib/irman2lirc