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
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.
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
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
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
13 ifeq ($(arch),powerpc)
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
14 arch-conf += --disable-mp1e
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
15 endif
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
16
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
17
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
18 configure: configure-stamp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
19 configure-stamp:
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
20 dh_testdir
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
21 # Add here commands to configure the package.
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
22 $(checkdir)
8404
8df33450a374 updating some descriptions, changelog, etc
gabucino
parents: 7796
diff changeset
23 ./configure --prefix=/usr --confdir=/etc/mplayer --enable-runtime-cpudetection --enable-gui $(DEB_BUILD_OPTIONS)
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
24
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
25 touch configure-stamp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
26
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
27 build: configure-stamp build-stamp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
28 build-stamp:
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
29 dh_testdir
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
30
3632
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
31 # commands to compile the package.
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
32 ${MAKE}
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
33
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
34 touch build-stamp
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
35
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
36 clean:
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
37 dh_testdir
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
38 dh_testroot
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
39 rm -f build-stamp configure-stamp
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
40
3632
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
41 # commands to clean up after the build process.
1719
42c5b24221e7 no need for TVout/fbset/fb.modes.5
eyck
parents: 1705
diff changeset
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
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
44 dh_clean
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
45
3632
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
46 # Build architecture-independent files here.
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
47 binary-indep: build
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
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
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
50 # Build architecture-dependent files here.
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
51 binary-arch: build
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
52 dh_testdir
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
53 dh_testroot
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
54 dh_clean -k
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
55 dh_installdirs
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
56
3632
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
57 # commands to install the package into debian/<packagename>
7263
fe7213b0baee Fix package building by adding BINDIR.
diego
parents: 5814
diff changeset
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
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
63 dh_installdebconf
9705
67e69e1aa4a0 some hints, sent by Hilmar Preusse
gabucino
parents: 8404
diff changeset
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
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
66 dh_installmenu
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
67 # dh_installmime
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
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
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
71 dh_link
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
72 dh_strip
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
73 dh_compress
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
74 dh_fixperms
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
75 # dh_makeshlibs
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
76 dh_installdeb
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
77 dh_perl
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
78 dh_shlibdeps
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
79 dh_gencontrol
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
80 dh_md5sums
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
81 dh_builddeb
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
82
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
83
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
84
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
85 #binary-arch: checkroot build
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
86 # $(checkdir)
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
87 # -rm -rf debian/tmp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
88 # install -d debian/tmp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
89 # cd debian/tmp && install -d `cat ../dirs`
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
90
845
29a3f57d5e1d spellcheck, start of integration with debian menu system, /etc/mplayer.conf
eyck
parents: 821
diff changeset
91
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
92 # Must have debmake installed for this to work. Otherwise please copy
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
93 # /usr/bin/debstd into the debian directory and change debstd to debian/debstd
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
94 # debstd
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
95 # dpkg-gencontrol -isp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
96 # chown -R root.root debian/tmp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
97 # chmod -R go=rX debian/tmp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
98 # dpkg --build debian/tmp ..
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
99
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
100 binary: binary-indep binary-arch
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
101
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
102 .PHONY: binary binary-arch binary-indep clean checkroot