File: rules

package info (click to toggle)
totem 0.100-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,724 kB
  • ctags: 1,913
  • sloc: ansic: 20,808; sh: 11,725; xml: 3,001; makefile: 379
file content (126 lines) | stat: -rwxr-xr-x 2,690 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/usr/bin/make -f
#-*- makefile -*-

#export DH_VERBOSE=1
export DH_OPTIONS

# Include dpatch stuff.
include /usr/share/dpatch/dpatch.make
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk

p_dir = $(CURDIR)/debian
p_xine = totem-xine
p_gstreamer = totem-gstreamer
build_xine = debian/totem-xine
build_gstreamer = debian/totem-gstreamer

CFLAGS = -g

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
  CFLAGS += -O0
else
  CFLAGS += -O2
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
  INSTALL_PROGRAM += -s
endif


build :

build-xine: build-xine-stamp
build-xine-stamp: patch
	dh_testdir
	if test -f build-gstreamer-stamp; then \
	  $(MAKE) distclean; \
	  rm -f build-gstreamer-stamp; \
	fi
	./configure --prefix=/usr --sysconfdir=/etc --mandir=\$${prefix}/share/man --libexecdir=\$${prefix}/lib/totem
	$(MAKE)
	touch build-xine-stamp

build-gstreamer: build-gstreamer-stamp
build-gstreamer-stamp: patch
	dh_testdir
	if test -f build-xine-stamp; then \
	  $(MAKE) distclean; \
	  rm -f build-xine-stamp; \
	fi
	./configure --prefix=/usr --sysconfdir=/etc --mandir=\$${prefix}/share/man --libexecdir=\$${prefix}/lib/totem --enable-gstreamer 
	$(MAKE)
	touch build-gstreamer-stamp

clean::	unpatch
	dh_testdir
	dh_testroot
	-$(MAKE) distclean
	-rm -f $(stamps_to_clean)
	-rm -f $(files_to_clean)
	-rm -rf $(dirs_to_clean)
	-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
	dh_clean

install:
	dh_testdir
	dh_testroot
	dh_clean -k
	$(MAKE) -f debian/rules install-xine
	$(MAKE) -f debian/rules install-gstreamer

install-xine: DH_OPTIONS=-p$(p_xine)
install-xine: build-xine
	dh_installdirs
	$(MAKE) install DESTDIR=$(CURDIR)/$(build_xine)

	dh_install

install-gstreamer: DH_OPTIONS=-p$(p_gstreamer)
install-gstreamer: build-gstreamer
	dh_installdirs
	$(MAKE) install DESTDIR=$(CURDIR)/$(build_gstreamer)
	dh_install

# Build architecture-independent files here.
binary-indep: DH_OPTIONS=-i
binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installchangelogs
	dh_scrollkeeper
	dh_compress
	dh_link
	dh_fixperms
	dh_strip
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# Build architecture-dependent files here.
binary-arch: DH_OPTIONS=-a
binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installdocs NEWS README TODO
	dh_installmenu
	dh_installman
	dh_installchangelogs
	dh_gconf
	dh_desktop
	dh_compress
	dh_link
	dh_fixperms
	dh_strip
	dh_perl
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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