File: rules

package info (click to toggle)
lcd4linux 0.11.0~svn1203-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 3,064 kB
  • ctags: 3,519
  • sloc: ansic: 36,586; sh: 4,479; makefile: 209; python: 83; perl: 33
file content (45 lines) | stat: -rwxr-xr-x 1,175 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

override_dh_auto_configure:
	ln -s . m4
	dh_autoreconf
	dh_auto_configure -- \
		--prefix=/usr \
		--mandir=\$${prefix}/share/man \
		--infodir=\$${prefix}/share/info \
		--bindir=/usr/sbin \
		--disable-rpath \
		--with-python
# Enable raw parallel port I/O
#		--with-outb

override_dh_installman:
	dh_installman debian/lcd4linux.8

override_dh_install:
	dh_install
	sed -e "1c lcd4linux debian sample config" \
		-e "2d" \
		-e "3a This is a dummy config file using the NULL driver." \
		-e "3a Please amend this file as required by your specific LCD device." \
		-e "s@#Display 'NULL'@Display 'NULL'@" \
		-e "s@Display 'ACool'@#Display 'ACool'@" \
		-e "s@Layout 'TestLayer'@#Layout 'TestLayer'@" \
		-e "s@#Layout 'Default'@Layout 'Default'@" \
		lcd4linux.conf.sample > debian/lcd4linux/etc/lcd4linux.conf
	chmod 600 debian/lcd4linux/etc/lcd4linux.conf

override_dh_fixperms:
	dh_fixperms -X debian/lcd4linux/etc/lcd4linux.conf

%:
	dh $@ --with autotools_dev --with systemd

get-orig-source:
	debian/get-svn-source.sh