File: rules

package info (click to toggle)
roarplaylistd 0.1.9-4
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 844 kB
  • ctags: 1,151
  • sloc: ansic: 9,489; sh: 695; perl: 500; makefile: 84
file content (31 lines) | stat: -rwxr-xr-x 858 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DEB_VERSION := $(shell dpkg-parsechangelog|egrep '^Version:'|cut -f 2 -d ' ')

DEB_CONFIGURE_EXTRA_FLAGS := \
	--prefix /usr \
	--no-slp \
	--distribution-version-string "Debian-$(DEB_VERSION)"

%:
	dh $@

override_dh_auto_clean:
	[ ! -f Makefile.conf ] || $(MAKE) distclean

override_dh_auto_configure:
	./configure $(DEB_CONFIGURE_EXTRA_FLAGS)

override_dh_auto_install:
	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
	cp $(CURDIR)/codec-helper/rpld-codec-helper-gstreamer \
		$(CURDIR)/debian/tmp/usr/bin/rpld-codec-helper
	mv -f $(CURDIR)/debian/tmp/usr/bin/rpld \
		$(CURDIR)/debian/tmp/usr/bin/roarplaylistd
	mv -f $(CURDIR)/debian/tmp/usr/share/man/man1/rpld.1 \
		$(CURDIR)/debian/tmp/usr/share/man/man1/roarplaylistd.1

override_dh_strip:
	dh_strip --dbg-package=roarplaylistd-dbg