File: rules

package info (click to toggle)
kino 0.75-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,896 kB
  • ctags: 3,400
  • sloc: cpp: 26,587; sh: 6,028; ansic: 4,878; makefile: 310; perl: 125
file content (98 lines) | stat: -rwxr-xr-x 2,838 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
90
91
92
93
94
95
96
97
98
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# This file is public domain software, originally written by Joey Hess. 

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

# This is the debhelper compatibility version to use.
export DH_COMPAT=4

include /usr/share/dpatch/dpatch.make

build: build-stamp
build-stamp: patch-stamp
	dh_testdir
	# Make sure we use the latest autotools helpers.
	if test -f config.sub; then \
		 mv config.sub config.sub.debsave; \
	fi
	if test -f config.guess; then \
		 mv config.guess config.guess.debsave; \
	fi
	ln -sf /usr/share/misc/config.sub .
	ln -sf /usr/share/misc/config.guess .

	./configure --prefix=/usr --mandir=/usr/share/man \
		--with-hotplug-script-dir=/etc/hotplug/usb \
		--with-hotplug-usermap-dir=/etc/hotplug/usb \
		--with-quicktime --with-avcodec
	$(MAKE)
	touch build-stamp

clean: clean1st unpatch
clean1st:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	-$(MAKE) distclean
	if test -L config.sub -a -e config.sub.debsave; then \
		rm config.sub && mv config.sub.debsave config.sub; \
	fi
	if test -L config.guess -a -e config.guess.debsave; then \
		rm config.guess && mv config.guess.debsave config.guess; \
	fi
	rm -f debian/shlibs.local
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	$(MAKE) DESTDIR="$(CURDIR)/debian/kino/" install
	
	mv -f "$(CURDIR)/debian/kino/etc/hotplug/usb/usb.usermap" \
	      "$(CURDIR)/debian/kino/etc/hotplug/usb/kino.usermap"
	
	# Work around KDE bug--it ignores /usr/share/applications/k*.desktop.
	test ! -e \
	      "$(CURDIR)/debian/kino/usr/share/applications/kino.desktop" || \
	mv -f "$(CURDIR)/debian/kino/usr/share/applications/kino.desktop" \
	      "$(CURDIR)/debian/kino/usr/share/applications/Kino.desktop"
	
	# Icon in menu policy-compliant 32x32 format. Used to be distributed
	# upstream, but was replaced by larger versions later on.
	mv -f debian/kino.xpm "$(CURDIR)/debian/kino/usr/share/pixmaps"

# Build architecture-independent files here.
binary-indep: build install

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installmenu
	dh_installman
	dh_installchangelogs ChangeLog
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	# Depend on a version of libquicktime that links with libdv4. (But take care not to
	# lower a versioned dependency by mistake.)
	if dpkg --compare-versions \
		"`dpkg-shlibdeps -O debian/kino/usr/bin/kino | tr ',' '\n' | sed -ne 's/libquicktime1 (>= \(.*\))/\1/p'`" \
		lt \
		0.9.2release-3; then \
		echo "libquicktime 1 libquicktime1 (>= 0.9.2release-3)" > debian/shlibs.local; \
	fi
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install patch unpatch clean1st