File: rules

package info (click to toggle)
moc 1%3A2.5.0~alpha3%2Bsvn20080629-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,832 kB
  • ctags: 2,829
  • sloc: ansic: 28,929; sh: 4,988; cpp: 523; makefile: 229
file content (91 lines) | stat: -rwxr-xr-x 2,208 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
#!/usr/bin/make -f
#
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/quilt/quilt.make

export DH_OPTIONS=
export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

CFLAGS += -Wall

#ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
#	CFLAGS += -O0
#else
#	CFLAGS += -O2
#endif


configure-stamp: debian/stamp-patched
	dh_testdir
	#ln -s /usr/share/misc/config.sub config.sub
	#ln -s /usr/share/misc/config.guess config.guess
	./autogen.sh
	./configure \
	--host=$(DEB_HOST_GNU_TYPE) \
	--build=$(DEB_BUILD_GNU_TYPE) \
	--prefix=/usr \
	--mandir=\$${prefix}/share/man
	touch configure-stamp


build-arch-stamp: configure-stamp
	dh_testdir
	$(MAKE) CFLAGS="$(CFLAGS)" \
	libavformat_CFLAGS=`pkg-config --cflags libavformat` \
	libavformat_LIBS=`pkg-config --libs libavformat`
	touch build-arch-stamp


build-arch: DH_OPTIONS=-a
build-arch: build-arch-stamp

install-arch: build-arch-stamp
	rm -f config.log
	dh_testdir
	dh_testroot
	dh_clean -k
	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
	dh_installdirs
	install -p -m 0644 -o root -g root -D debian/lintian-overrides.moc \
	debian/tmp/usr/share/lintian/overrides/moc
	dh_install
	dh_installdocs -Xkeymap.example -Xconfig.example AUTHORS README THANKS TODO
	dh_installexamples config.example keymap.example
	dh_installmenu
	dh_installman
	dh_installchangelogs NEWS
	dh_strip
	dh_link
	dh_compress
	dh_fixperms

binary-arch: DH_options=-a
binary-arch: install-arch
	dh_installdeb
	dh_shlibdeps -- --warnings=0
	dh_gencontrol
	dh_md5sums
	dh_builddeb


binary: binary-arch

binary-indep:

build:
	@echo "*** Nothing to do for build target ***"

clean: unpatch
	dh_testdir
	dh_testroot
	[ ! -f Makefile ] || $(MAKE) distclean
	-rm -f *-stamp
	#-rm -f config.sub config.guess config.status config.cache config.log
	-rm -rf ABOUT-NLS Makefile.in aclocal.m4 autom4te.cache config.guess config.log
	-rm -rf config.h.in config.rpath config.sub configure depcomp install-sh missing
	dh_clean

.PHONY: configure build-arch build-indep build install-arch install-indep binary-arch binary-indep binary clean patch stampdir prepare unpack