File: rules

package info (click to toggle)
rplay 3.3.2-8
  • links: PTS
  • area: main
  • in suites: sarge, woody
  • size: 3,136 kB
  • ctags: 3,519
  • sloc: ansic: 42,159; makefile: 1,242; perl: 742; tcl: 345; sh: 312; java: 220
file content (89 lines) | stat: -rwxr-xr-x 1,959 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
87
88
89
#!/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.

SHELL=/bin/bash

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

build: build-stamp
build-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: 
	dh_testdir
	dh_testroot
	-rm -f build-stamp

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

	-rm -f changelog 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 -s contrib/mailsound/mailsound $(i)/usr/bin
	mkdir -p $(i)/usr/lib/perl5
	install -m 664 perl/{RPlay.pm,rplay.ph,RPTP.pm} $(i)/usr/lib/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

	cp ChangeLog changelog

	dh_movefiles
	dh_installinit -prplay-server --init-script=rplay -- defaults 99 10

binary: binary-indep binary-arch

binary-indep: build install

binary-arch: build install
	dh_testdir
	dh_testroot
#	dh_installdebconf
	dh_installdocs
	dh_installexamples
	dh_installmenu
#	dh_installlogrotate
#	dh_installemacsen
#	dh_installpam
#	dh_installmime
#	dh_installinit
#	dh_installcron
	dh_installman
	dh_installinfo
	dh_undocumented
	dh_installchangelogs
	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