Mercurial > mplayer.hg
annotate debian/rules @ 19194:5949a654e2d4
marks some read-only char* inside structs as const, patch by Stefan Huehner, stefan At huehner-org
author | reynaldo |
---|---|
date | Thu, 27 Jul 2006 17:35:06 +0000 |
parents | 834cc3e275aa |
children | 0f1b5b68af32 |
rev | line source |
---|---|
18 | 1 #!/usr/bin/make -f |
2 # Made with the aid of debmake, by Christoph Lameter, | |
3 # based on the sample debian/rules file for GNU hello by Ian Jackson. | |
1397 | 4 #export DH_VERBOSE=1 |
5 # This is the debhelper compatability version to use. | |
17263 | 6 export DH_COMPAT=4 |
18 | 7 |
3632 | 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 | 11 arch := $(shell dpkg --print-architecture) |
12 | |
18 | 13 |
1397 | 14 configure: configure-stamp |
15 configure-stamp: | |
16 dh_testdir | |
17 # Add here commands to configure the package. | |
18 | 18 $(checkdir) |
16998
1ca8dc8a7ef7
Do not build Debian package with runtime CPU detection by default.
gpoirier
parents:
16861
diff
changeset
|
19 # 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
|
20 # 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
|
21 # the line below, but beware: the resulting binary will run slower |
17408
c7d4f538f7e1
Do not build the GUI by default in the Debian package to be more in line
diego
parents:
17344
diff
changeset
|
22 ./configure --prefix=/usr --confdir=/etc/mplayer $(DEB_BUILD_OPTIONS) |
1397 | 23 |
24 touch configure-stamp | |
25 | |
26 build: configure-stamp build-stamp | |
27 build-stamp: | |
28 dh_testdir | |
29 | |
3632 | 30 # commands to compile the package. |
31 ${MAKE} | |
1397 | 32 |
33 touch build-stamp | |
18 | 34 |
35 clean: | |
1397 | 36 dh_testdir |
37 dh_testroot | |
38 rm -f build-stamp configure-stamp | |
18 | 39 |
3632 | 40 # commands to clean up after the build process. |
1719 | 41 -$(MAKE) distclean |
19035 | 42 rm -f help_mp.h config.h config.mak |
1397 | 43 dh_clean |
18 | 44 |
3632 | 45 # Build architecture-independent files here. |
46 binary-indep: build | |
47 # 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
|
48 |
3632 | 49 # Build architecture-dependent files here. |
50 binary-arch: build | |
1397 | 51 dh_testdir |
52 dh_testroot | |
53 dh_clean -k | |
54 dh_installdirs | |
55 | |
3632 | 56 # commands to install the package into debian/<packagename> |
7263 | 57 $(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 | 58 |
4521
0737156ad1f0
Juergen Kreileder changes, fixing some lintian errors, adding correct manpath and adding
eyck
parents:
4059
diff
changeset
|
59 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
|
60 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
|
61 |
845
29a3f57d5e1d
spellcheck, start of integration with debian menu system, /etc/mplayer.conf
eyck
parents:
821
diff
changeset
|
62 |
1397 | 63 dh_installdebconf |
18781
0cb447b69ddd
CVS --> Subversion as noticed by Jacob Beacham beacham**@**uiuc**.**edu
diego
parents:
17408
diff
changeset
|
64 dh_installdocs -X.svn -Xmplayer.1 DOCS/* |
10915
230d73616bbc
Remove generated files at cleaning, and install some more examples.
lumag
parents:
9986
diff
changeset
|
65 dh_installexamples etc/example.conf etc/dvb-menu.conf etc/input.conf etc/menu.conf |
1397 | 66 dh_installmenu |
13100
17e40e9b7654
mime handling support, patch by Konstantin G. Khlebnikov <c00nst@ezmail.ru>
diego
parents:
12784
diff
changeset
|
67 dh_installmime |
1397 | 68 dh_installinfo |
9986
4bdd248d372e
Start fixing gabbucino changes that broke the package.
eyck
parents:
9705
diff
changeset
|
69 dh_installchangelogs |
4bdd248d372e
Start fixing gabbucino changes that broke the package.
eyck
parents:
9705
diff
changeset
|
70 #ChangeLog |
1397 | 71 dh_link |
72 dh_strip | |
73 dh_compress | |
74 dh_fixperms | |
16861
0259420f1207
Run dh_makeshlibs to create proper shlibs files and avoid warnings.
diego
parents:
13667
diff
changeset
|
75 dh_makeshlibs |
1397 | 76 dh_installdeb |
77 dh_perl | |
78 dh_shlibdeps | |
79 dh_gencontrol | |
80 dh_md5sums | |
81 dh_builddeb | |
82 | |
83 | |
84 | |
85 #binary-arch: checkroot build | |
86 # $(checkdir) | |
87 # -rm -rf debian/tmp | |
88 # install -d debian/tmp | |
89 # cd debian/tmp && install -d `cat ../dirs` | |
90 | |
845
29a3f57d5e1d
spellcheck, start of integration with debian menu system, /etc/mplayer.conf
eyck
parents:
821
diff
changeset
|
91 |
18 | 92 # Must have debmake installed for this to work. Otherwise please copy |
93 # /usr/bin/debstd into the debian directory and change debstd to debian/debstd | |
1397 | 94 # debstd |
95 # dpkg-gencontrol -isp | |
96 # chown -R root.root debian/tmp | |
97 # chmod -R go=rX debian/tmp | |
98 # dpkg --build debian/tmp .. | |
18 | 99 |
100 binary: binary-indep binary-arch | |
101 | |
102 .PHONY: binary binary-arch binary-indep clean checkroot |