File: rules

package info (click to toggle)
xine-ui 0.99.9-1.3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid, stretch
  • size: 9,236 kB
  • ctags: 6,150
  • sloc: ansic: 72,130; sh: 7,115; makefile: 674; perl: 18; sed: 16; xml: 9
file content (82 lines) | stat: -rwxr-xr-x 2,206 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
#!/usr/bin/make -f

# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
  $(error cross compiling is not supported by xine)
endif

config.status:
	dh_testdir
	sh ./configure \
		--prefix=/usr --mandir=\$${prefix}/share/man \
		--with-aalib --enable-vdr-keys \
		--build $(DEB_HOST_GNU_TYPE) || \
		(echo "=== config.log: ==="; cat config.log; false)

build: build-arch build-indep
build-indep:
build-arch: build-stamp
build-stamp: config.status
	dh_testdir
	$(MAKE)
	touch build-stamp

update_config_files:
	-test -r /usr/share/misc/config.sub && \
           cp -f /usr/share/misc/config.sub config.sub
	-test -r /usr/share/misc/config.guess && \
           cp -f /usr/share/misc/config.guess config.guess

clean:
	dh_testdir
	dh_testroot
	[ ! -f Makefile ] || $(MAKE) distclean
	dh_clean build-stamp debian/gxine.postinst \
		po/*.gmo po/stamp-po \
		misc/xine-bugreport misc/xine-check \
		src/xitk/xine-toolkit/po/*.gmo \
		src/xitk/xine-toolkit/po/stamp-po \
		$(basename $(shell find doc -name \*.?.in))

install: build-stamp
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
	mv debian/tmp/usr/share/doc/xitk/README \
	   debian/tmp/usr/share/doc/xine-ui/README.xitk

debian/xine-ui.postinst: debian/xine-ui.postinst.in debian/rules
	sed -e s^@XINE_LIST@^`pkg-config --variable=xine_list libxine`^g <$< >$@

binary-indep:
# no arch-indep packages

# Build architecture-dependent files here.
binary-arch: build-arch install debian/xine-ui.postinst
	dh_testdir
	dh_testroot
	dh_install
	dh_installdocs README doc/README*
	dh_installmenu
	dh_installmime
	dh_installchangelogs -k ChangeLog
	dh_link
	dh_strip
	dh_compress -X README.
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_xine ffmpeg x console # xine-ui (ffmpeg x) xine-console (console)
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch

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