File: rules

package info (click to toggle)
kino 1.3.4-2.2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 29,692 kB
  • ctags: 27,935
  • sloc: ansic: 323,805; cpp: 35,797; sh: 14,924; asm: 3,727; makefile: 1,504; perl: 440; xml: 15
file content (79 lines) | stat: -rwxr-xr-x 1,988 bytes parent folder | download | duplicates (3)
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
#!/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

include /usr/share/quilt/quilt.make

DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
ifeq ($(DEB_HOST_ARCH_OS),)
  DEB_HOST_ARCH_OS := $(subst -gnu,,$(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM))
  ifeq ($(DEB_HOST_ARCH_OS),gnu)
      DEB_HOST_ARCH_OS := hurd
  endif
endif

build: build-stamp
build-stamp: patch
	dh_testdir
	# autoreconf
	./configure --prefix=/usr --mandir=/usr/share/man \
		--enable-hotplug-script-dir=/etc/hotplug/usb \
		--enable-hotplug-usermap-dir=/etc/hotplug/usb \
		--enable-quicktime --with-avcodec --without-dv1394 \
		--disable-local-ffmpeg
	$(MAKE)
	cd po; intltool-update --verbose -p
	touch build-stamp

clean: clean1st unpatch
clean1st:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	[ ! -f Makefile ] || $(MAKE) distclean
	rm -f debian/shlibs.local config.log
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	$(MAKE) DESTDIR="$(CURDIR)/debian/kino/" install
	rm -r $(CURDIR)/debian/kino/usr/etc
	rm `find $(CURDIR)/debian/kino -name '*.la'`
	# install icon
	dh_install debian/kino.xpm usr/share/pixmaps
	mv $(CURDIR)/debian/kino/usr/share/kino/help $(CURDIR)/debian/kino/usr/share/doc/kino/

# 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_installudev
	dh_link
	dh_strip
	dh_compress -Xkino.xml
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
ifeq (linux,$(DEB_HOST_ARCH_OS))
	dh_gencontrol -pkino -- -Vudev-hotplug="udev | hotplug"
else
	dh_gencontrol -pkino
endif
	dh_md5sums
	dh_builddeb

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