X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=debian%2Frules;h=7f1b3682c161e6f27f1770a9690260fe1b650d7d;hb=ba6992cc80e8fddfb44a238fb830823d378fe461;hp=1a9456367ea11e7ce0c0dfebf15698fb9b95210c;hpb=a4132b19325417be5f3783a89801859867be27e7;p=vlc diff --git a/debian/rules b/debian/rules index 1a9456367e..7f1b3682c1 100755 --- a/debian/rules +++ b/debian/rules @@ -1,13 +1,11 @@ #!/usr/bin/make -f # debian/rules for the VideoLAN Client - uses debhelper. +# $Id$ # based on Joey Hess's one. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -# This is the debhelper compatability version to use. -export DH_COMPAT=3 - # # Compilation options # @@ -16,8 +14,8 @@ CONFIG_FLAGS = --enable-release --prefix=/usr CONFIG_FLAGS += \ --enable-gnome \ --enable-gtk \ - --enable-familiar \ - --enable-fb \ + --disable-familiar \ + --disable-fb \ --enable-ggi \ --enable-sdl \ --enable-esd \ @@ -35,7 +33,7 @@ CONFIG_FLAGS += \ --enable-mp4 \ --enable-dvb \ --enable-dv \ - --enable-satellite \ + --disable-satellite \ --enable-ogg \ --enable-vorbis \ --enable-wxwindows \ @@ -43,17 +41,22 @@ CONFIG_FLAGS += \ --enable-flac \ --enable-skins \ --disable-basic-skins \ - --disable-freetype \ - --disable-mkv \ + --enable-freetype \ + --enable-mkv \ --enable-v4l \ + --enable-pvr \ + --enable-speex \ + --enable-caca \ + --enable-livedotcom \ + --enable-libmpeg2 \ + --enable-dts \ $(NULL) # These ones are currently shipped with VLC CONFIG_FLAGS += --enable-ffmpeg --with-ffmpeg-tree=extras/ffmpeg -CONFIG_FLAGS += --enable-faad --with-faad-tree=extras/faad -CONFIG_FLAGS += --enable-libmpeg2 --with-libmpeg2-tree=extras/mpeg2dec +CONFIG_FLAGS += --enable-faad --with-faad-tree=extras/faad2 -# Glide is only for x86 +# Glide and svgalib are only for x86 ifeq ($(shell dpkg-architecture -qDEB_BUILD_GNU_CPU),i386) CONFIG_FLAGS += --enable-glide CONFIG_FLAGS += --enable-svgalib @@ -76,25 +79,25 @@ configure-stamp: dh_testdir # Touch stuff - touch configure.ac \ - && touch aclocal.m4 \ - && touch configure \ - && touch config.h.in \ - && touch `find . -name Makefile.in` + touch configure.ac + touch aclocal.m4 + touch configure + touch config.h.in + touch `find . -name Makefile.in` # Check that we have an ffmpeg tree in here (can be a symlink) test -d extras/ffmpeg if test ! -d CVS; then \ cd extras/ffmpeg \ - && ./configure \ + && CC=$(CC) ./configure --enable-pp --enable-zlib --disable-debug \ && cd libavcodec \ && $(MAKE); \ fi - # Check that we have an faad tree in here (can be a symlink) - test -d extras/faad + # Check that we have an faad2 tree in here (can be a symlink) + test -d extras/faad2 if test ! -d CVS; then \ - cd extras/faad \ + cd extras/faad2 \ && touch `find . -name configure.in` \ && touch `find . -name aclocal.m4` \ && touch `find . -name configure` \ @@ -105,21 +108,6 @@ configure-stamp: && $(MAKE); \ fi - # Check that we have an mpeg2dec tree in here (can be a symlink) - test -d extras/mpeg2dec - if test ! -d CVS; then \ - cd extras/mpeg2dec \ - && touch configure.in \ - && touch aclocal.m4 \ - && touch acinclude.m4 \ - && touch configure \ - && touch `find . -name config.h.in` \ - && touch `find . -name Makefile.in` \ - && ./configure --disable-shared \ - && cd libmpeg2 \ - && $(MAKE); \ - fi - # Configure VLC ./configure --mandir=$${prefix}/share/man \ --infodir=$${prefix}/share/info $(CONFIG_FLAGS) @@ -132,7 +120,7 @@ build-stamp: # Build only VLC, with the non-PIC libs $(MAKE) include/vlc_symbols.h - cd modules && $(MAKE) + cd modules && AM_MAKEFLAGS='plugin=no pic=no' $(MAKE) $(MAKE) vlc ifneq ($(shell dpkg-architecture -qDEB_BUILD_GNU_CPU),i386) @@ -148,21 +136,14 @@ ifneq ($(shell dpkg-architecture -qDEB_BUILD_GNU_CPU),i386) # HACKETY HACKETY HACK if test ! -d CVS; then \ - cd extras/faad/libfaad \ + cd extras/faad2/libfaad \ && $(MAKE) clean \ && $(MAKE) AM_CFLAGS=-fPIC; \ fi - - # HACK ME PLENTY MORE!!! - if test ! -d CVS; then \ - cd extras/mpeg2dec/libmpeg2 \ - && $(MAKE) clean \ - && $(MAKE) LIBMPEG2_CFLAGS=-fPIC; \ - fi endif # Build all the rest, with the PIC libs - $(MAKE) + AM_MAKEFLAGS='builtin=no' $(MAKE) touch build-stamp @@ -174,12 +155,13 @@ clean: # Check that we have an ffmpeg tree in here (can be a symlink) test -d extras/ffmpeg -if test ! -d CVS; then cd extras/ffmpeg && $(MAKE) distclean; fi - # Check that we have an faad tree in here (can be a symlink) - test -d extras/faad - -if test ! -d CVS; then cd extras/faad && $(MAKE) distclean; fi - # Check that we have an mpeg2dec tree in here (can be a symlink) - test -d extras/mpeg2dec - -if test ! -d CVS; then cd extras/mpeg2dec && $(MAKE) distclean; fi + # Check that we have an faad2 tree in here (can be a symlink) + test -d extras/faad2 + -if test ! -d CVS; then cd extras/faad2 && $(MAKE) distclean; fi + + # Removed ugly cruft + rm -f src/misc/modules_builtin.h + rm -f mozilla/vlcintf.xpt mozilla/vlcintf.h # Remove spurious autotools stuff rm -f config.log confdefs.h @@ -202,8 +184,8 @@ install: build cp debian/gvlc.desktop debian/gvlc/$(GNOMEDIR) cp debian/gnome-vlc.desktop debian/gnome-vlc/$(GNOMEDIR) - cp doc/fortunes.txt debian/vlc/usr/share/games/fortunes/vlc - strfile doc/fortunes.txt debian/vlc/usr/share/games/fortunes/vlc.dat + #cp doc/fortunes.txt debian/vlc/usr/share/games/fortunes/vlc + #strfile doc/fortunes.txt debian/vlc/usr/share/games/fortunes/vlc.dat # Package: libvlc0-dev mv debian/vlc/usr/bin/vlc-config debian/libvlc0-dev/usr/bin/ @@ -235,8 +217,8 @@ install: build debian/gvlc/usr/lib/vlc/gui/ mv debian/vlc/usr/lib/vlc/gui/libgtk_plugin.so \ debian/gvlc/usr/lib/vlc/gui/ - mv debian/vlc/usr/lib/vlc/gui/libfamiliar_plugin.so \ - debian/gvlc/usr/lib/vlc/gui/ + #mv debian/vlc/usr/lib/vlc/gui/libfamiliar_plugin.so \ + # debian/gvlc/usr/lib/vlc/gui/ ln -s vlc.1.gz debian/gvlc/usr/share/man/man1/gvlc.1.gz mv debian/vlc/$(VIDDIR)/gvlc32x32.xpm debian/gvlc/$(VIDDIR)/gvlc.xpm mv debian/vlc/$(VIDDIR)/gvlc48x48.png debian/gvlc/$(PIXDIR)/gvlc.png @@ -315,6 +297,11 @@ endif # Package: mozilla-plugin-vlc ln -s vlc debian/mozilla-plugin-vlc/usr/share/doc/mozilla-plugin-vlc mv debian/vlc/usr/lib/mozilla debian/mozilla-plugin-vlc/usr/lib + # links for firefox + mkdir -p debian/mozilla-plugin-vlc/usr/lib/mozilla-firefox/plugins/ + ln -s ../../mozilla/plugins/libvlcplugin.so debian/mozilla-plugin-vlc/usr/lib/mozilla-firefox/plugins/ + mkdir -p debian/mozilla-plugin-vlc/usr/lib/mozilla-firefox/components/ + ln -s ../../mozilla/components/vlcintf.xpt debian/mozilla-plugin-vlc/usr/lib/mozilla-firefox/components/ # Package: kvlc mv debian/vlc/usr/bin/kvlc debian/kvlc/usr/bin/ @@ -336,6 +323,7 @@ endif # Package: wxvlc mv debian/vlc/usr/bin/wxvlc debian/wxvlc/usr/bin/ + mv debian/vlc/usr/bin/svlc debian/wxvlc/usr/bin/ ln -s vlc debian/wxvlc/usr/share/doc/wxvlc mv debian/vlc/usr/lib/vlc/gui/libwxwindows_plugin.so \ debian/wxvlc/usr/lib/vlc/gui/ @@ -344,6 +332,7 @@ endif mv debian/vlc/usr/share/vlc/skins \ debian/wxvlc/usr/share/vlc/ ln -s vlc.1.gz debian/wxvlc/usr/share/man/man1/wxvlc.1.gz + ln -s vlc.1.gz debian/wxvlc/usr/share/man/man1/svlc.1.gz # Clean up rm -f debian/vlc/$(VIDDIR)/*.png @@ -366,10 +355,8 @@ binary-arch: build install dh_installmime -s dh_installman doc/vlc.1 -p vlc dh_installman doc/vlc-config.1 -p libvlc0-dev -# dh_installchangelogs ChangeLog -p vlc - cp ChangeLog debian/vlc/usr/share/doc/vlc/changelog - for x in doc/ChangeLog-* ; do cp "doc/ChangeLog-$${x\#*/\#*-}" "debian/vlc/usr/share/doc/vlc/changelog-$${x\#*/\#*-}" ; done - cp debian/changelog debian/vlc/usr/share/doc/vlc/changelog.Debian + dh_installchangelogs ChangeLog -p vlc + for x in doc/ChangeLog-* ; do cp "doc/ChangeLog-$${x#*-}" "debian/vlc/usr/share/doc/vlc/changelog$${x#*-}" ; done dh_link -s dh_strip -s dh_compress -s