2 # debian/rules for the VideoLAN Client - uses debhelper.
4 # based on Joey Hess's one.
6 # Uncomment this to turn on verbose mode.
13 CONFIG_FLAGS = --enable-release --prefix=/usr
43 --disable-basic-skins \
55 # These ones are currently shipped with VLC
56 CONFIG_FLAGS += --enable-ffmpeg --with-ffmpeg-tree=extras/ffmpeg
57 CONFIG_FLAGS += --enable-faad --with-faad-tree=extras/faad2
59 # Glide and svgalib are only for x86
60 ifeq ($(shell dpkg-architecture -qDEB_BUILD_GNU_CPU),i386)
61 CONFIG_FLAGS += --enable-glide
62 CONFIG_FLAGS += --enable-svgalib
65 # Remove --without-dvdcss in non-totalitarian countries
66 CONFIG_FLAGS += --enable-dvd --without-dvdcss
69 VIDDIR = usr/share/vlc
70 PIXDIR = usr/share/pixmaps
71 GNOMEDIR = usr/share/gnome/apps/Multimedia
77 configure: configure-stamp
86 touch `find . -name Makefile.in`
88 # Check that we have an ffmpeg tree in here (can be a symlink)
90 if test ! '(' -d CVS -o -d .svn ')'; then \
92 && CC=$(CC) ./configure --enable-pp --enable-gpl --enable-zlib --disable-debug \
97 # Check that we have an faad2 tree in here (can be a symlink)
99 if test ! '(' -d CVS -o -d .svn ')'; then \
101 && touch `find . -name configure.in` \
102 && touch `find . -name aclocal.m4` \
103 && touch `find . -name configure` \
104 && touch `find . -name config.h.in` \
105 && touch `find . -name Makefile.in` \
106 && ./configure --disable-shared \
112 ./configure --mandir=$${prefix}/share/man \
113 --infodir=$${prefix}/share/info $(CONFIG_FLAGS)
115 touch configure-stamp
117 build: configure-stamp build-stamp
121 # Build only VLC, with the non-PIC libs
122 $(MAKE) include/vlc_symbols.h
123 cd modules && AM_MAKEFLAGS='plugin=no pic=no' $(MAKE)
126 ifneq ($(shell dpkg-architecture -qDEB_BUILD_GNU_CPU),i386)
127 # Hackety hackety hack
128 if test ! '(' -d CVS -o -d .svn ')'; then \
129 cd extras/ffmpeg/libavcodec \
131 && rm -f Makefile.pic \
132 && sed 's/^CFLAGS *=/&-fPIC -DPIC /' <Makefile >Makefile.pic \
133 && $(MAKE) -f Makefile.pic \
134 && rm -f Makefile.pic; \
137 # HACKETY HACKETY HACK
138 if test ! '(' -d CVS -o -d .svn ')'; then \
139 cd extras/faad2/libfaad \
141 && $(MAKE) AM_CFLAGS=-fPIC; \
145 # Build all the rest, with the PIC libs
146 AM_MAKEFLAGS='builtin=no' $(MAKE)
153 rm -f configure-stamp build-stamp
155 # Check that we have an ffmpeg tree in here (can be a symlink)
156 test -d extras/ffmpeg
157 -if test ! '(' -d CVS -o -d .svn ')'; then \
158 cd extras/ffmpeg && $(MAKE) distclean; \
160 # Check that we have an faad2 tree in here (can be a symlink)
162 -if test ! '(' -d CVS -o -d .svn ')'; then \
163 cd extras/faad2 && $(MAKE) distclean; \
167 rm -f src/misc/modules_builtin.h
168 rm -f mozilla/vlcintf.xpt mozilla/vlcintf.h
170 # Remove spurious autotools stuff
171 rm -f config.log confdefs.h
183 DESTDIR=`pwd`/debian/vlc/ $(MAKE) install prefix=/usr
186 mv debian/vlc/$(VIDDIR)/vlc48x48.png debian/vlc/$(PIXDIR)/vlc.png
187 mv debian/vlc/$(VIDDIR)/vlc32x32.xpm debian/vlc/$(VIDDIR)/vlc.xpm
188 cp debian/gvlc.desktop debian/gvlc/$(GNOMEDIR)
189 cp debian/gnome-vlc.desktop debian/gnome-vlc/$(GNOMEDIR)
191 #cp doc/fortunes.txt debian/vlc/usr/share/games/fortunes/vlc
192 #strfile doc/fortunes.txt debian/vlc/usr/share/games/fortunes/vlc.dat
194 # Package: libvlc0-dev
195 mv debian/vlc/usr/bin/vlc-config debian/libvlc0-dev/usr/bin/
196 mv debian/vlc/usr/lib/*.a debian/libvlc0-dev/usr/lib/
197 mv debian/vlc/usr/lib/vlc/*.a debian/libvlc0-dev/usr/lib/vlc/
198 mv debian/vlc/usr/include/vlc/*.h debian/libvlc0-dev/usr/include/vlc/
199 rm -Rf debian/vlc/usr/include
200 ln -s vlc debian/libvlc0-dev/usr/share/doc/libvlc0-dev
203 mv debian/vlc/usr/bin/gnome-vlc debian/gnome-vlc/usr/bin/
204 ln -s vlc debian/gnome-vlc/usr/share/doc/gnome-vlc
205 mv debian/vlc/usr/lib/vlc/misc/libgnome_main_plugin.so \
206 debian/gnome-vlc/usr/lib/vlc/gui/
207 mv debian/vlc/usr/lib/vlc/gui/libgnome_plugin.so \
208 debian/gnome-vlc/usr/lib/vlc/gui/
209 ln -s vlc.1.gz debian/gnome-vlc/usr/share/man/man1/gnome-vlc.1.gz
210 mv debian/vlc/$(VIDDIR)/gnome-vlc32x32.xpm debian/gnome-vlc/$(VIDDIR)/gnome-vlc.xpm
211 mv debian/vlc/$(VIDDIR)/gnome-vlc48x48.png debian/gnome-vlc/$(PIXDIR)/gnome-vlc.png
214 mkdir -p debian/vlc-gnome/usr/share/doc/
215 ln -s vlc debian/vlc-gnome/usr/share/doc/vlc-gnome
218 mv debian/vlc/usr/bin/gvlc debian/gvlc/usr/bin/
219 ln -s vlc debian/gvlc/usr/share/doc/gvlc
220 mv debian/vlc/usr/lib/vlc/misc/libgtk_main_plugin.so \
221 debian/gvlc/usr/lib/vlc/gui/
222 mv debian/vlc/usr/lib/vlc/gui/libgtk_plugin.so \
223 debian/gvlc/usr/lib/vlc/gui/
224 #mv debian/vlc/usr/lib/vlc/gui/libfamiliar_plugin.so \
225 # debian/gvlc/usr/lib/vlc/gui/
226 ln -s vlc.1.gz debian/gvlc/usr/share/man/man1/gvlc.1.gz
227 mv debian/vlc/$(VIDDIR)/gvlc32x32.xpm debian/gvlc/$(VIDDIR)/gvlc.xpm
228 mv debian/vlc/$(VIDDIR)/gvlc48x48.png debian/gvlc/$(PIXDIR)/gvlc.png
231 mkdir -p debian/vlc-gtk/usr/share/doc/
232 ln -s vlc debian/vlc-gtk/usr/share/doc/vlc-gtk
234 # Package: vlc-plugin-esd
235 ln -s vlc debian/vlc-plugin-esd/usr/share/doc/vlc-plugin-esd
236 mv debian/vlc/usr/lib/vlc/audio_output/libesd_plugin.so \
237 debian/vlc-plugin-esd/usr/lib/vlc/audio_output/
240 mkdir -p debian/vlc-esd/usr/share/doc/
241 ln -s vlc debian/vlc-esd/usr/share/doc/vlc-esd
243 # Package: vlc-plugin-alsa
244 ln -s vlc debian/vlc-plugin-alsa/usr/share/doc/vlc-plugin-alsa
245 mv debian/vlc/usr/lib/vlc/audio_output/libalsa_plugin.so \
246 debian/vlc-plugin-alsa/usr/lib/vlc/audio_output/
249 mkdir -p debian/vlc-alsa/usr/share/doc/
250 ln -s vlc debian/vlc-alsa/usr/share/doc/vlc-alsa
252 # Package: vlc-plugin-sdl
253 ln -s vlc debian/vlc-plugin-sdl/usr/share/doc/vlc-plugin-sdl
254 mv debian/vlc/usr/lib/vlc/audio_output/libaout_sdl_plugin.so \
255 debian/vlc-plugin-sdl/usr/lib/vlc/audio_output/
256 mv debian/vlc/usr/lib/vlc/video_output/libvout_sdl_plugin.so \
257 debian/vlc-plugin-sdl/usr/lib/vlc/video_output/
260 mkdir -p debian/vlc-sdl/usr/share/doc/
261 ln -s vlc debian/vlc-sdl/usr/share/doc/vlc-sdl
263 # Package: vlc-plugin-ggi
264 ln -s vlc debian/vlc-plugin-ggi/usr/share/doc/vlc-plugin-ggi
265 mv debian/vlc/usr/lib/vlc/video_output/libggi_plugin.so \
266 debian/vlc-plugin-ggi/usr/lib/vlc/video_output/
269 mkdir -p debian/vlc-ggi/usr/share/doc/
270 ln -s vlc debian/vlc-ggi/usr/share/doc/vlc-ggi
272 # Package: vlc-plugin-glide
273 ifeq ($(shell dpkg-architecture -qDEB_BUILD_GNU_CPU),i386)
274 ln -s vlc debian/vlc-plugin-glide/usr/share/doc/vlc-plugin-glide
275 mv debian/vlc/usr/lib/vlc/video_output/libglide_plugin.so \
276 debian/vlc-plugin-glide/usr/lib/vlc/video_output/
279 mkdir -p debian/vlc-glide/usr/share/doc/
280 ln -s vlc debian/vlc-glide/usr/share/doc/vlc-glide
284 mv debian/vlc/usr/bin/qvlc debian/qvlc/usr/bin/
285 ln -s vlc debian/qvlc/usr/share/doc/qvlc
286 mv debian/vlc/usr/lib/vlc/gui/libqt_plugin.so \
287 debian/qvlc/usr/lib/vlc/gui/
288 ln -s vlc.1.gz debian/qvlc/usr/share/man/man1/qvlc.1.gz
289 mv debian/vlc/$(VIDDIR)/qvlc32x32.xpm debian/qvlc/$(VIDDIR)/qvlc.xpm
290 mv debian/vlc/$(VIDDIR)/qvlc48x48.png debian/qvlc/$(PIXDIR)/qvlc.png
293 mkdir -p debian/vlc-qt/usr/share/doc/
294 ln -s vlc debian/vlc-qt/usr/share/doc/vlc-qt
296 # Package: vlc-plugin-arts
297 ln -s vlc debian/vlc-plugin-arts/usr/share/doc/vlc-plugin-arts
298 mv debian/vlc/usr/lib/vlc/audio_output/libarts_plugin.so \
299 debian/vlc-plugin-arts/usr/lib/vlc/audio_output/
301 # Package: mozilla-plugin-vlc
302 ln -s vlc debian/mozilla-plugin-vlc/usr/share/doc/mozilla-plugin-vlc
303 mv debian/vlc/usr/lib/mozilla debian/mozilla-plugin-vlc/usr/lib
305 mkdir -p debian/mozilla-plugin-vlc/usr/lib/mozilla-firefox/plugins/
306 ln -s ../../mozilla/plugins/libvlcplugin.so debian/mozilla-plugin-vlc/usr/lib/mozilla-firefox/plugins/
307 mkdir -p debian/mozilla-plugin-vlc/usr/lib/mozilla-firefox/components/
308 ln -s ../../mozilla/components/vlcintf.xpt debian/mozilla-plugin-vlc/usr/lib/mozilla-firefox/components/
311 mv debian/vlc/usr/bin/kvlc debian/kvlc/usr/bin/
312 ln -s vlc debian/kvlc/usr/share/doc/kvlc
313 mv debian/vlc/usr/lib/vlc/gui/libkde_plugin.so \
314 debian/kvlc/usr/lib/vlc/gui/
315 mv debian/vlc/usr/share/vlc/ui.rc \
316 debian/kvlc/usr/share/vlc
317 ln -s vlc.1.gz debian/kvlc/usr/share/man/man1/kvlc.1.gz
318 mv debian/vlc/$(VIDDIR)/kvlc32x32.xpm debian/kvlc/$(VIDDIR)/kvlc.xpm
319 mv debian/vlc/$(VIDDIR)/kvlc48x48.png debian/kvlc/$(PIXDIR)/kvlc.png
321 # Package: vlc-plugin-svgalib
322 ifeq ($(shell dpkg-architecture -qDEB_BUILD_GNU_CPU),i386)
323 ln -s vlc debian/vlc-plugin-svgalib/usr/share/doc/vlc-plugin-svgalib
324 mv debian/vlc/usr/lib/vlc/video_output/libsvgalib_plugin.so \
325 debian/vlc-plugin-svgalib/usr/lib/vlc/video_output
329 mv debian/vlc/usr/bin/wxvlc debian/wxvlc/usr/bin/
330 mv debian/vlc/usr/bin/svlc debian/wxvlc/usr/bin/
331 ln -s vlc debian/wxvlc/usr/share/doc/wxvlc
332 mv debian/vlc/usr/lib/vlc/gui/libwxwindows_plugin.so \
333 debian/wxvlc/usr/lib/vlc/gui/
334 mv debian/vlc/usr/lib/vlc/gui/libskins_plugin.so \
335 debian/wxvlc/usr/lib/vlc/gui/
336 mv debian/vlc/usr/share/vlc/skins \
337 debian/wxvlc/usr/share/vlc/
338 ln -s vlc.1.gz debian/wxvlc/usr/share/man/man1/wxvlc.1.gz
339 ln -s vlc.1.gz debian/wxvlc/usr/share/man/man1/svlc.1.gz
342 rm -f debian/vlc/$(VIDDIR)/*.png
344 #gzip -9 < doc/vlc.1 >| debian/vlc/usr/share/man/man1/vlc.1.gz
346 # Build architecture-independent files here.
347 binary-indep: build install
348 # We have nothing to do by default.
350 # Build architecture-dependent files here.
351 binary-arch: build install
356 dh_installdocs -p vlc
360 dh_installman doc/vlc.1 -p vlc
361 dh_installman doc/vlc-config.1 -p libvlc0-dev
362 dh_installchangelogs ChangeLog -p vlc
363 for x in doc/ChangeLog-* ; do cp "doc/ChangeLog-$${x#*-}" "debian/vlc/usr/share/doc/vlc/changelog$${x#*-}" ; done
376 binary: binary-indep binary-arch
377 .PHONY: build clean binary-indep binary-arch binary install