annotate debian/rules @ 4000:587906e031fa

let people pass options to ./configure while building package. use DEB_BUILD_OPTIONS variable for that.
author eyck
date Sat, 05 Jan 2002 19:35:01 +0000
parents 8d60da7c4ac6
children a77ce64a7066
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
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
9 prefix := debian/$(package)
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
10 arch := $(shell dpkg --print-architecture)
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
11
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
12 ifeq ($(arch),powerpc)
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
13 arch-conf += --disable-mp1e
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
14 endif
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
15
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)
4000
587906e031fa let people pass options to ./configure while building package.
eyck
parents: 3989
diff changeset
22 ./configure --prefix=/usr --enable-gui $(DEB_BUILD_OPTIONS)
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
23
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
24 touch configure-stamp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
25
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
26 build: configure-stamp build-stamp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
27 build-stamp:
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
28 dh_testdir
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
29
3632
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
30 # commands to compile the package.
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
31 ${MAKE}
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
32
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
33 touch build-stamp
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
34
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
35 clean:
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
36 dh_testdir
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
37 dh_testroot
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
38 rm -f build-stamp configure-stamp
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
39
3632
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
40 # commands to clean up after the build process.
1719
42c5b24221e7 no need for TVout/fbset/fb.modes.5
eyck
parents: 1705
diff changeset
41 -$(MAKE) distclean
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
42 dh_clean
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
43
3632
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
44 # Build architecture-independent files here.
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
45 binary-indep: build
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
46 # 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
47
3632
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
48 # Build architecture-dependent files here.
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
49 binary-arch: build
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
50 dh_testdir
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
51 dh_testroot
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
52 dh_clean -k
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
53 dh_installdirs
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
54
3632
06911836febd Adam Di Carlo changes. see debian/changelog
eyck
parents: 2760
diff changeset
55 # commands to install the package into debian/<packagename>
3989
8d60da7c4ac6 CONFDIR in etc
eyck
parents: 3974
diff changeset
56 $(MAKE) prefix=$(prefix)/usr CONFDIR=$(prefix)/etc/mplayer DATADIR=$(prefix)/usr/share/mplayer install
2759
ce39b5cc7e16 add gui, this way we can finally add usable entry to menus. ( Sveg Hartge
eyck
parents: 1862
diff changeset
57 dh_link usr/bin/mplayer usr/bin/gmplayer
845
29a3f57d5e1d spellcheck, start of integration with debian menu system, /etc/mplayer.conf
eyck
parents: 821
diff changeset
58
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
59 dh_installdebconf
1634
3249bbc48bf9 Changes to debian packaging based on patches by Josip Rodin (joy debian org)
eyck
parents: 1397
diff changeset
60 dh_installdocs DOCS/*
1733
220f86ac8c15 examples and started cleanup of rules by andre.dahlqvist@telia.com
eyck
parents: 1721
diff changeset
61 dh_installexamples etc/example.conf
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
62 dh_installmenu
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
63 # dh_installmime
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
64 dh_installinfo
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
65 dh_installchangelogs
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
66 dh_link
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
67 dh_strip
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
68 dh_compress
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
69 dh_fixperms
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
70 # dh_makeshlibs
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
71 dh_installdeb
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
72 dh_perl
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
73 dh_shlibdeps
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
74 dh_gencontrol
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
75 dh_md5sums
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
76 dh_builddeb
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
77
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
78
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
79
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
80 #binary-arch: checkroot build
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
81 # $(checkdir)
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
82 # -rm -rf debian/tmp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
83 # install -d debian/tmp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
84 # cd debian/tmp && install -d `cat ../dirs`
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
85
845
29a3f57d5e1d spellcheck, start of integration with debian menu system, /etc/mplayer.conf
eyck
parents: 821
diff changeset
86
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
87 # Must have debmake installed for this to work. Otherwise please copy
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
88 # /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
89 # debstd
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
90 # dpkg-gencontrol -isp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
91 # chown -R root.root debian/tmp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
92 # chmod -R go=rX debian/tmp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
93 # dpkg --build debian/tmp ..
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
94
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
95 binary: binary-indep binary-arch
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
96
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
97 .PHONY: binary binary-arch binary-indep clean checkroot