File: rules

package info (click to toggle)
rplay 3.3.2-12
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,200 kB
  • ctags: 3,492
  • sloc: ansic: 42,124; sh: 2,883; makefile: 1,234; perl: 742; tcl: 345; java: 220
file content (86 lines) | stat: -rwxr-xr-x 1,859 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.

include /usr/share/dpatch/dpatch.make

SHELL=/bin/bash

i = $(shell pwd)/debian/tmp
b = $(shell pwd)/debian/build

build: build-stamp
build-stamp: patch-stamp
	dh_testdir

	./configure --prefix=/usr --sysconfdir=/etc/rplay --without-x \
		--enable-rplayd-user=nobody --enable-rplayd-group=audio

	$(MAKE) CFLAGS="-O2 -D_REENTRANT"

	(cd contrib/mailsound; $(MAKE) CFLAGS="-O2 -g")

	touch build-stamp

clean: unpatch
	dh_testdir
	dh_testroot

	rm -f build-stamp

	[ ! -f Makefile ] || $(MAKE) distclean

	rm -f contrib/mailsound/mailsound{,.o} \
		gsm/Makefile rx/{config.*,Makefile}

	dh_clean

install:
install: build
	dh_testdir
	dh_testroot
	dh_clean -k

	$(MAKE) install prefix=$(i)/usr \
		infodir=$(i)/usr/share/info \
		mandir=$(i)/usr/share/man

	install contrib/mailsound/mailsound $(i)/usr/bin
	mkdir -p $(i)/usr/share/perl5
	install -m 664 perl/{RPlay.pm,rplay.ph,RPTP.pm} $(i)/usr/share/perl5
	install perl/Mailsound $(i)/usr/bin
	install -m 644 contrib/mailsound/mailsound.1 $(i)/usr/share/man/man1
	install -m 644 perl/Mailsound.1 $(i)/usr/share/man/man1
	install -d $(i)/etc/rplay
	install -m 644 etc/rplay.{conf,helpers,hosts,servers} $(i)/etc/rplay

	dh_movefiles

binary: binary-indep binary-arch

binary-indep: build install

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installexamples
	dh_installmenu
	dh_installinit		-prplay-server --init-script=rplay -- defaults 99 10
	dh_installman
	dh_installinfo
	dh_installchangelogs	ChangeLog
	dh_strip
	dh_link
	dh_compress
	dh_fixperms
	dh_makeshlibs
	dh_installdeb
	dh_perl
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install