annotate debian-build/rules @ 11446:b00d054eb9ae

qprd
author michael
date Wed, 12 Nov 2003 12:41:39 +0000
parents 33f43b0f24f7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9364
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
1 #!/usr/bin/make -f
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
2 # Made with the aid of debmake, by Christoph Lameter,
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
3 # based on the sample debian/rules file for GNU hello by Ian Jackson.
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
4 #export DH_VERBOSE=1
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
5 # This is the debhelper compatability version to use.
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
6 export DH_COMPAT=3
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
7
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
8 package := mplayer
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
9 prefix := $(shell pwd)/debian/$(package)
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
10
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
11 arch := $(shell dpkg --print-architecture)
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
12
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
13 ifeq ($(arch),powerpc)
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
14 arch-conf += --disable-mp1e
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
15 endif
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
16
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
17 COMMON_CONFIG = --prefix=/usr \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
18 --confdir=/etc/mplayer \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
19 --enable-runtime-cpudetection \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
20 --enable-termcap \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
21 --disable-iconv \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
22 --disable-setlocale \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
23 --disable-lirc \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
24 --disable-tv-v4l \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
25 --disable-tv-bsdbt848 \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
26 --enable-rtc \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
27 --disable-dvdnav \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
28 --disable-dvdread \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
29 --enable-mpdvdkit \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
30 --disable-css \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
31 --disable-cdparanoia \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
32 --disable-freetype \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
33 --disable-gif \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
34 --disable-png \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
35 --disable-jpeg \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
36 --disable-liblzo \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
37 --enable-win32 \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
38 --disable-xanim \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
39 --disable-xvid \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
40 --disable-divx4linux \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
41 --disable-libfame \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
42 --enable-vorbis \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
43 --disable-faad \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
44 --disable-libdv \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
45 --disable-mad \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
46 --disable-sdl \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
47 --disable-aa \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
48 --disable-ggi \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
49 --disable-directx \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
50 --disable-dvb \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
51 --disable-dxr2 \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
52 --disable-dxr3 \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
53 --disable-directfb \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
54 --disable-zr \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
55 --disable-real \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
56 --disable-arts \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
57 --disable-esd \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
58 --disable-alsa \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
59 --disable-mencoder
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
60
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
61 VARIANTS = nongui-nonx-oss gui-x-oss
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
62
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
63 CONFIG_nongui-nonx-oss = --disable-gui \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
64 --disable-gl \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
65 --disable-dga \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
66 --enable-vesa \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
67 --enable-svga \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
68 --enable-mga \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
69 --disable-xmga \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
70 --disable-xv \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
71 --disable-vm \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
72 --disable-xinerama \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
73 --disable-x11 \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
74 --enable-fbdev
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
75
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
76 CONFIG_gui-x-oss = --enable-gui \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
77 --enable-gl \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
78 --enable-dga \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
79 --enable-vesa \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
80 --disable-svga \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
81 --enable-mga \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
82 --enable-xmga \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
83 --enable-xv \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
84 --enable-vm \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
85 --enable-xinerama \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
86 --enable-x11 \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
87 --enable-fbdev
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
88
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
89 configure: configure-stamp
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
90 configure-stamp: $(foreach v,$(VARIANTS),configure-stamp-$(v))
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
91
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
92 configure-stamp-%:
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
93 dh_testdir
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
94 # Add here commands to configure the package.
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
95 $(checkdir)
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
96 ./configure $(COMMON_CONIG) $(CONFIG_$(*)) $(DEB_BUILD_OPTIONS)
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
97 touch $@
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
98
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
99 build: build-stamp
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
100 build-stamp:
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
101 dh_testdir
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
102
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
103 # commands to compile the package.
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
104 ${MAKE}
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
105
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
106 touch build-stamp
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
107
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
108 clean:
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
109 dh_testdir
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
110 dh_testroot
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
111 rm -f build-stamp configure-stamp
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
112
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
113 # commands to clean up after the build process.
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
114 -$(MAKE) distclean
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
115 dh_clean
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
116
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
117 # Build architecture-independent files here.
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
118 binary-indep: build
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
119 # We have nothing to do by default.
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
120
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
121 # Build architecture-dependent files here.
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
122 binary-arch: build
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
123 dh_testdir
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
124 dh_testroot
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
125 dh_clean -k
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
126 dh_installdirs
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
127
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
128 # commands to install the package into debian/<packagename>
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
129 $(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
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
130 dh_link usr/bin/mplayer usr/bin/gmplayer \
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
131 usr/share/man/man1/mplayer.1.gz usr/share/man/man1/gmplayer.1.gz
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
132
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
133
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
134 dh_installdebconf
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
135 dh_installdocs --exclude=CVS DOCS/*
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
136 dh_installexamples etc/example.conf
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
137 dh_installmenu
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
138 # dh_installmime
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
139 dh_installinfo
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
140 dh_installchangelogs
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
141 dh_link
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
142 dh_strip
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
143 dh_compress
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
144 dh_fixperms
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
145 # dh_makeshlibs
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
146 dh_installdeb
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
147 dh_perl
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
148 dh_shlibdeps
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
149 dh_gencontrol
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
150 dh_md5sums
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
151 dh_builddeb
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
152
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
153
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
154
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
155 #binary-arch: checkroot build
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
156 # $(checkdir)
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
157 # -rm -rf debian/tmp
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
158 # install -d debian/tmp
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
159 # cd debian/tmp && install -d `cat ../dirs`
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
160
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
161
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
162 # Must have debmake installed for this to work. Otherwise please copy
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
163 # /usr/bin/debstd into the debian directory and change debstd to debian/debstd
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
164 # debstd
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
165 # dpkg-gencontrol -isp
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
166 # chown -R root.root debian/tmp
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
167 # chmod -R go=rX debian/tmp
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
168 # dpkg --build debian/tmp ..
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
169
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
170 binary: binary-indep binary-arch
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
171
33f43b0f24f7 Adding debian-build directory by request of Deriush Pietrzak
attila
parents:
diff changeset
172 .PHONY: binary binary-arch binary-indep clean checkroot