annotate debian/rules @ 29998:0dacb57a3d3e

Filter list of missing source files so that it only contains nonexisting files. Thus those files can be symlinked directly without testing if they exist.
author diego
date Mon, 14 Dec 2009 12:03:02 +0000
parents ba2cb7c23fa2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
1 #!/usr/bin/make -f
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
2 # Made with the aid of debmake, by Christoph Lameter,
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
3 # based on the sample debian/rules file for GNU hello by Ian Jackson.
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
4 #export DH_VERBOSE=1
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
5 # This is the debhelper compatability version to use.
17263
3946ba73d26b Bump DH_COMPAT version.
diego
parents: 16998
diff changeset
6 export DH_COMPAT=4
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
7
3632
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
8 package := mplayer
4521
0737156ad1f0 Juergen Kreileder changes, fixing some lintian errors, adding correct manpath and adding
eyck
parents: 4059
diff changeset
9 prefix := $(shell pwd)/debian/$(package)
0737156ad1f0 Juergen Kreileder changes, fixing some lintian errors, adding correct manpath and adding
eyck
parents: 4059
diff changeset
10
3632
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
11 arch := $(shell dpkg --print-architecture)
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
12
29427
ba2cb7c23fa2 dpkg-buildpackage automatically sets CFLAGS and pals to -g -O2.
diego
parents: 29263
diff changeset
13 # See http://wiki.debian.org/Teams/Dpkg/DebianRules; #465282 and
ba2cb7c23fa2 dpkg-buildpackage automatically sets CFLAGS and pals to -g -O2.
diego
parents: 29263
diff changeset
14 # https://wiki.ubuntu.com/DistCompilerFlags
ba2cb7c23fa2 dpkg-buildpackage automatically sets CFLAGS and pals to -g -O2.
diego
parents: 29263
diff changeset
15 CLEAN_ENV=env -u CFLAGS -u CPPFLAGS -u LDFLAGS -u FFLAGS -u CXXFLAGS
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
16
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
17 configure: configure-stamp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
18 configure-stamp:
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
19 dh_testdir
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
20 # Add here commands to configure the package.
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
21 $(checkdir)
16998
1ca8dc8a7ef7 Do not build Debian package with runtime CPU detection by default.
gpoirier
parents: 16861
diff changeset
22 # If you plan to install the target .deb on a wide variety of machines,
1ca8dc8a7ef7 Do not build Debian package with runtime CPU detection by default.
gpoirier
parents: 16861
diff changeset
23 # you may want to add the "--enable-runtime-cpudetection" option to
1ca8dc8a7ef7 Do not build Debian package with runtime CPU detection by default.
gpoirier
parents: 16861
diff changeset
24 # the line below, but beware: the resulting binary will run slower
29427
ba2cb7c23fa2 dpkg-buildpackage automatically sets CFLAGS and pals to -g -O2.
diego
parents: 29263
diff changeset
25 $(CLEAN_ENV) \
17408
c7d4f538f7e1 Do not build the GUI by default in the Debian package to be more in line
diego
parents: 17344
diff changeset
26 ./configure --prefix=/usr --confdir=/etc/mplayer $(DEB_BUILD_OPTIONS)
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
27
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
28 touch configure-stamp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
29
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
30 build: configure-stamp build-stamp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
31 build-stamp:
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
32 dh_testdir
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
33
3632
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
34 # commands to compile the package.
29427
ba2cb7c23fa2 dpkg-buildpackage automatically sets CFLAGS and pals to -g -O2.
diego
parents: 29263
diff changeset
35 $(CLEAN_ENV) \
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 19035
diff changeset
36 ${MAKE}
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
37
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
38 touch build-stamp
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
39
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
40 clean:
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
41 dh_testdir
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
42 dh_testroot
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
43 rm -f build-stamp configure-stamp
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
44
3632
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
45 # commands to clean up after the build process.
1719
42c5b24221e7 no need for TVout/fbset/fb.modes.5
eyck
parents: 1705
diff changeset
46 -$(MAKE) distclean
19035
834cc3e275aa There is only one global config.mak file left.
diego
parents: 18781
diff changeset
47 rm -f help_mp.h config.h config.mak
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
48 dh_clean
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
49
3632
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
50 # Build architecture-independent files here.
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
51 binary-indep: build
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
52 # We have nothing to do by default.
845
29a3f57d5e1d spellcheck, start of integration with debian menu system, /etc/mplayer.conf
eyck
parents: 821
diff changeset
53
3632
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
54 # Build architecture-dependent files here.
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
55 binary-arch: build
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
56 dh_testdir
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
57 dh_testroot
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
58 dh_clean -k
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
59 dh_installdirs
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
60
3632
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
61 # commands to install the package into debian/<packagename>
7263
fe7213b0baee Fix package building by adding BINDIR.
diego
parents: 5814
diff changeset
62 $(MAKE) prefix=$(prefix)/usr BINDIR=$(prefix)/usr/bin CONFDIR=$(prefix)/etc/mplayer LIBDIR=$(prefix)/usr/lib DATADIR=$(prefix)/usr/share/mplayer MANDIR=$(prefix)/usr/share/man install
12727
1856b9bfdc09 freedesktop.org compliant menu support
diego
parents: 11407
diff changeset
63
4521
0737156ad1f0 Juergen Kreileder changes, fixing some lintian errors, adding correct manpath and adding
eyck
parents: 4059
diff changeset
64 dh_link usr/bin/mplayer usr/bin/gmplayer \
0737156ad1f0 Juergen Kreileder changes, fixing some lintian errors, adding correct manpath and adding
eyck
parents: 4059
diff changeset
65 usr/share/man/man1/mplayer.1.gz usr/share/man/man1/gmplayer.1.gz
0737156ad1f0 Juergen Kreileder changes, fixing some lintian errors, adding correct manpath and adding
eyck
parents: 4059
diff changeset
66
845
29a3f57d5e1d spellcheck, start of integration with debian menu system, /etc/mplayer.conf
eyck
parents: 821
diff changeset
67
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 19035
diff changeset
68 dh_installdebconf
18781
0cb447b69ddd CVS --> Subversion as noticed by Jacob Beacham beacham**@**uiuc**.**edu
diego
parents: 17408
diff changeset
69 dh_installdocs -X.svn -Xmplayer.1 DOCS/*
10915
230d73616bbc Remove generated files at cleaning, and install some more examples.
lumag
parents: 9986
diff changeset
70 dh_installexamples etc/example.conf etc/dvb-menu.conf etc/input.conf etc/menu.conf
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
71 dh_installmenu
13100
17e40e9b7654 mime handling support, patch by Konstantin G. Khlebnikov <c00nst@ezmail.ru>
diego
parents: 12784
diff changeset
72 dh_installmime
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
73 dh_installinfo
9986
4bdd248d372e Start fixing gabbucino changes that broke the package.
eyck
parents: 9705
diff changeset
74 dh_installchangelogs
4bdd248d372e Start fixing gabbucino changes that broke the package.
eyck
parents: 9705
diff changeset
75 #ChangeLog
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
76 dh_link
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
77 dh_strip
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
78 dh_compress
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
79 dh_fixperms
16861
0259420f1207 Run dh_makeshlibs to create proper shlibs files and avoid warnings.
diego
parents: 13667
diff changeset
80 dh_makeshlibs
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
81 dh_installdeb
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
82 dh_perl
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
83 dh_shlibdeps
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
84 dh_gencontrol
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
85 dh_md5sums
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
86 dh_builddeb
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
87
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
88
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
89
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
90 #binary-arch: checkroot build
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
91 # $(checkdir)
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
92 # -rm -rf debian/tmp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
93 # install -d debian/tmp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
94 # cd debian/tmp && install -d `cat ../dirs`
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
95
845
29a3f57d5e1d spellcheck, start of integration with debian menu system, /etc/mplayer.conf
eyck
parents: 821
diff changeset
96
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
97 # Must have debmake installed for this to work. Otherwise please copy
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
98 # /usr/bin/debstd into the debian directory and change debstd to debian/debstd
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 19035
diff changeset
99 # debstd
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
100 # dpkg-gencontrol -isp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
101 # chown -R root.root debian/tmp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
102 # chmod -R go=rX debian/tmp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
103 # dpkg --build debian/tmp ..
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
104
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
105 binary: binary-indep binary-arch
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
106
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
107 .PHONY: binary binary-arch binary-indep clean checkroot