Mercurial > mplayer.hg
annotate debian/rules @ 11375:3544f1823f6b
mencoder lavc audio encoding support
author | ranma |
---|---|
date | Mon, 03 Nov 2003 16:35:40 +0000 |
parents | 230d73616bbc |
children | 38ef94bea3b8 |
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. | |
3974
90e7917f945f
Clean up - no longer needed comments, commented out older version of solutions.
eyck
parents:
3971
diff
changeset
|
6 export DH_COMPAT=3 |
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 | |
13 ifeq ($(arch),powerpc) | |
14 arch-conf += --disable-mp1e | |
15 endif | |
16 | |
18 | 17 |
1397 | 18 configure: configure-stamp |
19 configure-stamp: | |
20 dh_testdir | |
21 # Add here commands to configure the package. | |
18 | 22 $(checkdir) |
8404 | 23 ./configure --prefix=/usr --confdir=/etc/mplayer --enable-runtime-cpudetection --enable-gui $(DEB_BUILD_OPTIONS) |
1397 | 24 |
25 touch configure-stamp | |
26 | |
27 build: configure-stamp build-stamp | |
28 build-stamp: | |
29 dh_testdir | |
30 | |
3632 | 31 # commands to compile the package. |
32 ${MAKE} | |
1397 | 33 |
34 touch build-stamp | |
18 | 35 |
36 clean: | |
1397 | 37 dh_testdir |
38 dh_testroot | |
39 rm -f build-stamp configure-stamp | |
18 | 40 |
3632 | 41 # commands to clean up after the build process. |
1719 | 42 -$(MAKE) distclean |
10915
230d73616bbc
Remove generated files at cleaning, and install some more examples.
lumag
parents:
9986
diff
changeset
|
43 rm -f help_mp.h config.h config.mak libao2/config.mak libvo/config.mak Gui/config.mak |
1397 | 44 dh_clean |
18 | 45 |
3632 | 46 # Build architecture-independent files here. |
47 binary-indep: build | |
48 # 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
|
49 |
3632 | 50 # Build architecture-dependent files here. |
51 binary-arch: build | |
1397 | 52 dh_testdir |
53 dh_testroot | |
54 dh_clean -k | |
55 dh_installdirs | |
56 | |
3632 | 57 # commands to install the package into debian/<packagename> |
7263 | 58 $(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 |
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 |
9705 | 64 dh_installdocs --exclude=CVS --exclude=mplayer.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 |
67 # dh_installmime | |
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 | |
75 # dh_makeshlibs | |
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 |