]> git.sesse.net Git - vlc/commitdiff
* debian/rules:
authorSam Hocevar <sam@videolan.org>
Fri, 27 Aug 2004 12:10:17 +0000 (12:10 +0000)
committerSam Hocevar <sam@videolan.org>
Fri, 27 Aug 2004 12:10:17 +0000 (12:10 +0000)
    + Activated x264 support.
    + Re-enabled libmodplug support.
    + Build PIC plugins even on x86.
    + Disabled DVB and SLP because their code is broken.
  * debian/control:
    + Force the vlc-plugin-arts and qvlc dependencies.
    + Build-depend on jam and nasm because of x264.
  * debian/copyright:
    + Converted to UTF-8.

debian/Makefile.am
debian/README.Debian
debian/control
debian/copyright
debian/patches/00list
debian/patches/20_faad2.dpatch [deleted file]
debian/patches/20_interfaces.dpatch
debian/rules

index 55422934bb65cdf58f42a78706f28e0c97e9bbd0..9392adc0949020004c47bec21a2e5bbe772b8645 100644 (file)
@@ -32,7 +32,6 @@ EXTRA_DIST = \
        wxvlc.dirs \
        wxvlc.menu \
        patches/00list \
-       patches/20_faad2.dpatch \
        patches/20_ffmpeg.dpatch \
        patches/20_interfaces.dpatch \
        $(NULL)
index f6deeaf2fb56f587032fd059d064d6df106cfbe1..98856cc9414c4f6ba4aaa35ae20f7b664de77705 100644 (file)
@@ -7,11 +7,11 @@ Notes for anyone wanting to build Debian packages of VLC.
  - To build for a Debian woody system, first build a tarball using
    "make dist-woody".
 
- - Usually VLC will come with a copy of ffmpeg and faad2 in the
+ - Usually VLC will come with a copy of ffmpeg, faad2 and x264 in the
    extras/ directory, because they are not yet available in Debian.
 
  - If there is no CVS directory in the root, debian/rules will assume a
-   full build is requested and will clean ffmpeg and faad2.
+   full build is requested and will clean ffmpeg, faad2 and x264.
 
  - VLC does not link with libdvdcss by default, thus it will not depend
    on the libdvdcss packages. However it will use libdvdread that can
index f3203269f707dbe469eb0785baf9ef75ba470404..413cd2e75c44f4bad0bafdf5b73cf09dede4e39f 100644 (file)
@@ -2,7 +2,7 @@ Source: vlc
 Section: graphics
 Priority: optional
 Maintainer: Sam Hocevar (Debian packages) <sam+deb@zoy.org>
-Build-Depends: debhelper (>= 4.0), dpatch, gettext, libx11-dev, libxext-dev, libxt-dev, libxv-dev, xlibs-static-pic, libgnome-dev, libggi2-dev, libglide2-dev [i386], libesd0-dev, libaudiofile-dev, libsdl1.2-dev (>= 1.2.7-5), libqt3-mt-dev, libqt3-compat-headers, libasound2-dev (>= 0.9.0beta10a), libarts1-dev, libmad0-dev, liblircclient-dev, liba52-0.7.4-dev, aalib1-dev, libdvbpsi3-dev, mozilla-dev, libidl0, libglib2.0-0, kdelibs4-dev, libxosd-dev (>= 2.2.4-1.3), svgalibg1-dev (>= 1.4.0) [i386], libogg-dev, libvorbis-dev, libwxgtk2.4-dev (>= 2.4.2.4), libdvdplay0-dev (>= 1.0.1-2), libdvdread3-dev, libslp-dev, libflac-dev (>= 1.1.0), libimlib2-dev, libmatroska-dev (>= 0.7.0), libfreetype6-dev, libspeex-dev, linux-kernel-headers (>= 2.5.999-test7-bk-7), libcaca-dev (>= 0.9), liblivemedia-dev (>= 2004.04.23-1), libmpeg2-4-dev, zlib1g-dev, libdts-dev, libfribidi-dev, libcdio-dev, libxml2-dev, libid3tag0-dev, libtheora-dev
+Build-Depends: debhelper (>= 4.0), dpatch, gettext, libx11-dev, libxext-dev, libxt-dev, libxv-dev, xlibs-static-pic, libgnome-dev, libggi2-dev, libglide2-dev [i386], libesd0-dev, libaudiofile-dev, libsdl1.2-dev (>= 1.2.7-5), libqt3-mt-dev, libqt3-compat-headers, libasound2-dev (>= 0.9.0beta10a), libarts1-dev, libmad0-dev, liblircclient-dev, liba52-0.7.4-dev, aalib1-dev, libdvbpsi3-dev, mozilla-dev, libidl0, libglib2.0-0, kdelibs4-dev, libxosd-dev (>= 2.2.4-1.3), svgalibg1-dev (>= 1.4.0) [i386], libogg-dev, libvorbis-dev, libwxgtk2.4-dev (>= 2.4.2.4), libdvdplay0-dev (>= 1.0.1-2), libdvdread3-dev, libslp-dev, libflac-dev (>= 1.1.0), libimlib2-dev, libmatroska-dev (>= 0.7.0), libfreetype6-dev, libspeex-dev, linux-kernel-headers (>= 2.5.999-test7-bk-7), libcaca-dev (>= 0.9), liblivemedia-dev (>= 2004.04.23-1), libmpeg2-4-dev, zlib1g-dev, libdts-dev, libfribidi-dev, libcdio-dev, libxml2-dev, libid3tag0-dev, libtheora-dev, jam, nasm, libmodplug-dev
 Build-Conflicts: libavcodec-dev
 Standards-Version: 3.6.1.1
 
@@ -139,7 +139,7 @@ Description: Glide video output plugin for VLC
 
 Package: qvlc
 Architecture: any
-Depends: vlc (= ${Source-Version}), ${shlibs:Depends}, ${misc:Depends}
+Depends: vlc (= ${Source-Version}), libqt3c102-mt, ${misc:Depends}
 Conflicts: vlc-qt (<< 0.5.0)
 Replaces: vlc-qt (<< 0.5.0)
 Description: Qt frontend for VLC
@@ -152,7 +152,7 @@ Description: Qt frontend for VLC
 
 Package: vlc-plugin-arts
 Architecture: any
-Depends: vlc (= ${Source-Version}), ${shlibs:Depends}, ${misc:Depends}
+Depends: vlc (= ${Source-Version}), libartsc0, ${misc:Depends}
 Conflicts: vlc-arts (<< 0.5.0)
 Replaces: vlc-arts (<< 0.5.0)
 Description: aRts audio output plugin for VLC
index bb71cf679eda2afc37c583bc1508cba55b53cacd..758a6e2b77550ea398ebee5bfc46ac030e87b6de 100644 (file)
@@ -2,7 +2,7 @@ This package was debianized by Sam Hocevar <sam@zoy.org> on
 Mon, 13 Mar 2000 02:21:45 +0100.
 
 It was taken from http://download.videolan.org/pub/vlc/0.7.1/, and the source
-tarball also contains the ffmpeg and faad2 trees.
+tarball also contains the ffmpeg, faad2 and x264 trees.
 
 Upstream authors: The VideoLAN Team <videolan@videolan.org>
 
@@ -14,9 +14,15 @@ ffmpeg authors: Fabrice Bellard, BERO, Mario Brito, Alex Beregszaszi,
                 Tim Ferguson, Brian Foley, Arpad Gereoffy, Philip Gladstone,
                 Vladimir Gneushev, Falk Hueffner, Zdenek Kabelac, Robin Kay,
                 Nick Kurshev, Mike Melanson, Michael Niedermayer,
-                François Revol, Roman Shaposhnik, Dieter Shirley,
+                François Revol, Roman Shaposhnik, Dieter Shirley,
                 Juan J. Sierralta, Ewald Snel, Roberto Togni, Lionel Ulmer
 
+x264 authors: Laurent Aimar <fenrir@via.ecp.fr>
+              Eric Petit <titer@videolan.org>
+              Min Chen <chenm001@163.com>
+              Justin Clay (justin_clay(at)hotmail.com)
+              Måns Rullgård (mru(at)mru.ath.cx)
+
 VideoLAN is Copyright 1996-2004 The VideoLAN Team
 
   This program is free software; you can redistribute it and/or modify
index 77202846da78d138578f74889a527c3a2f346977..3b5d7402dd00b047023367b2896ddf365d4d450d 100644 (file)
@@ -1,3 +1,2 @@
-20_faad2
 20_ffmpeg
 20_interfaces
diff --git a/debian/patches/20_faad2.dpatch b/debian/patches/20_faad2.dpatch
deleted file mode 100755 (executable)
index 21a9bd2..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-#! /bin/sh -e
-## 20_faad2.dpatch by  <sam+deb@zoy.org>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: No description.
-
-if [ $# -lt 1 ]; then
-    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
-    exit 1
-fi
-
-[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
-patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
-
-case "$1" in
-    -patch) patch -p1 ${patch_opts} < $0;;
-    -unpatch) patch -R -p1 ${patch_opts} < $0;;
-    *)
-        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
-        exit 1;;
-esac
-
-exit 0
-
-@DPATCH@
-diff -urNad /home/sam/debian/official/vlc/debian/vlc-0.7.2.final/extras/faad2/Makefile.am vlc-0.7.2.final/extras/faad2/Makefile.am
---- /home/sam/debian/official/vlc/debian/vlc-0.7.2.final/extras/faad2/Makefile.am      2004-02-06 17:04:39.000000000 +0100
-+++ vlc-0.7.2.final/extras/faad2/Makefile.am   2004-07-29 17:11:18.000000000 +0200
-@@ -3,6 +3,6 @@
- EXTRA_DIST = faad2.spec
- rpm:    Makefile
--       make dist
--       $(RPMBUILD) -ta $(PACKAGE)-$(VERSION).tar.gz
--       rm $(PACKAGE)-$(VERSION).tar.gz
-+      make dist
-+      $(RPMBUILD) -ta $(PACKAGE)-$(VERSION).tar.gz
-+      rm $(PACKAGE)-$(VERSION).tar.gz
-diff -urNad /home/sam/debian/official/vlc/debian/vlc-0.7.2.final/extras/faad2/Makefile.in vlc-0.7.2.final/extras/faad2/Makefile.in
---- /home/sam/debian/official/vlc/debian/vlc-0.7.2.final/extras/faad2/Makefile.in      2004-02-22 02:23:18.000000000 +0100
-+++ vlc-0.7.2.final/extras/faad2/Makefile.in   2004-07-29 17:11:18.000000000 +0200
-@@ -560,9 +560,9 @@
- rpm:    Makefile
--       make dist
--       $(RPMBUILD) -ta $(PACKAGE)-$(VERSION).tar.gz
--       rm $(PACKAGE)-$(VERSION).tar.gz
-+      make dist
-+      $(RPMBUILD) -ta $(PACKAGE)-$(VERSION).tar.gz
-+      rm $(PACKAGE)-$(VERSION).tar.gz
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
- .NOEXPORT:
-diff -urNad /home/sam/debian/official/vlc/debian/vlc-0.7.2.final/extras/faad2/plugins/xmms/Makefile vlc-0.7.2.final/extras/faad2/plugins/xmms/Makefile
---- /home/sam/debian/official/vlc/debian/vlc-0.7.2.final/extras/faad2/plugins/xmms/Makefile    1970-01-01 01:00:00.000000000 +0100
-+++ vlc-0.7.2.final/extras/faad2/plugins/xmms/Makefile 2004-07-29 17:11:18.000000000 +0200
-@@ -0,0 +1 @@
-+distclean:
index 2d84683aac72656bb58b142118b2977f6607b608..8a5f8bfea4ed1687974fd8bda5e7615c09f3b48b 100755 (executable)
@@ -23,9 +23,9 @@ esac
 exit 0
 
 @DPATCH@
-diff -urNad /home/sam/debian/official/vlc/debian/vlc-0.7.2.final/modules/gui/kde/kde.cpp vlc-0.7.2.final/modules/gui/kde/kde.cpp
---- /home/sam/debian/official/vlc/debian/vlc-0.7.2.final/modules/gui/kde/kde.cpp       2004-03-05 20:24:00.000000000 +0100
-+++ vlc-0.7.2.final/modules/gui/kde/kde.cpp    2004-07-29 17:12:39.000000000 +0200
+diff -urNad /home/sam/debian/official/vlc/debian/vlc-0.7.2.svn20040826/modules/gui/kde/kde.cpp vlc-0.7.2.svn20040826/modules/gui/kde/kde.cpp
+--- /home/sam/debian/official/vlc/debian/vlc-0.7.2.svn20040826/modules/gui/kde/kde.cpp 2004-08-27 01:17:48.000000000 +0200
++++ vlc-0.7.2.svn20040826/modules/gui/kde/kde.cpp      2004-08-27 01:17:56.000000000 +0200
 @@ -53,7 +53,7 @@
      /* int i = getenv( "DISPLAY" ) == NULL ? 8 : 85; */
      set_description( _("KDE interface") );
@@ -35,27 +35,26 @@ diff -urNad /home/sam/debian/official/vlc/debian/vlc-0.7.2.final/modules/gui/kde
      set_program( "kvlc" );
      set_callbacks( open, close );
  vlc_module_end();
-diff -urNad /home/sam/debian/official/vlc/debian/vlc-0.7.2.final/modules/gui/skins2/src/skin_main.cpp vlc-0.7.2.final/modules/gui/skins2/src/skin_main.cpp
---- /home/sam/debian/official/vlc/debian/vlc-0.7.2.final/modules/gui/skins2/src/skin_main.cpp  2004-05-21 13:24:58.000000000 +0200
-+++ vlc-0.7.2.final/modules/gui/skins2/src/skin_main.cpp       2004-07-29 17:12:39.000000000 +0200
-@@ -258,7 +258,7 @@
-               SKINS2_TRANSPARENCY_LONG, VLC_FALSE );
+diff -urNad /home/sam/debian/official/vlc/debian/vlc-0.7.2.svn20040826/modules/gui/skins2/src/skin_main.cpp vlc-0.7.2.svn20040826/modules/gui/skins2/src/skin_main.cpp
+--- /home/sam/debian/official/vlc/debian/vlc-0.7.2.svn20040826/modules/gui/skins2/src/skin_main.cpp    2004-08-27 01:17:48.000000000 +0200
++++ vlc-0.7.2.svn20040826/modules/gui/skins2/src/skin_main.cpp 2004-08-27 01:17:56.000000000 +0200
+@@ -349,7 +349,7 @@
  #endif
      set_description( _("Skinnable Interface") );
 -    set_capability( "interface", 30 );
-+    set_capability( "interface", 200 );
++    set_capability( "interface", 120 );
      set_callbacks( Open, Close );
+     add_shortcut( "skins" );
      set_program( "svlc" );
- vlc_module_end();
-diff -urNad /home/sam/debian/official/vlc/debian/vlc-0.7.2.final/src/interface/interface.c vlc-0.7.2.final/src/interface/interface.c
---- /home/sam/debian/official/vlc/debian/vlc-0.7.2.final/src/interface/interface.c     2004-05-17 00:42:55.000000000 +0200
-+++ vlc-0.7.2.final/src/interface/interface.c  2004-07-29 17:12:39.000000000 +0200
-@@ -242,9 +242,11 @@
+diff -urNad /home/sam/debian/official/vlc/debian/vlc-0.7.2.svn20040826/src/interface/interface.c vlc-0.7.2.svn20040826/src/interface/interface.c
+--- /home/sam/debian/official/vlc/debian/vlc-0.7.2.svn20040826/src/interface/interface.c       2004-08-27 01:17:48.000000000 +0200
++++ vlc-0.7.2.svn20040826/src/interface/interface.c    2004-08-27 01:17:56.000000000 +0200
+@@ -306,8 +306,10 @@
  {
      static char *ppsz_interfaces[] =
      {
 +/*
-         "skins", "Skins",
          "skins2", "Skins 2",
          "wxwindows", "wxWindows",
 +*/
index 9383750d36627e8a5bc8863a3574d492c844e037..3f38f4deff5bd42278d9cf5778e8e2864c8f27e0 100755 (executable)
@@ -32,13 +32,13 @@ CONFIG_FLAGS += \
        --enable-mozilla \
        --enable-kde \
        --enable-mp4 \
-       --enable-dvb \
+       --disable-dvb \
        --enable-dv \
        --disable-satellite \
        --enable-ogg \
        --enable-vorbis \
        --enable-wxwindows \
-       --enable-slp \
+       --disable-slp \
        --enable-flac \
        --disable-skins \
        --disable-basic-skins \
@@ -56,11 +56,14 @@ CONFIG_FLAGS += \
        --enable-cdio \
        --enable-mod \
        --enable-theora \
+       --enable-modplug \
        $(NULL)
 
 # These ones are currently shipped with VLC
 CONFIG_FLAGS += --enable-ffmpeg --with-ffmpeg-tree=extras/ffmpeg
+#CONFIG_FLAGS += --enable-ffmpegaltivec
 CONFIG_FLAGS += --enable-faad --with-faad-tree=extras/faad2
+CONFIG_FLAGS += --enable-x264 --with-x264-tree=extras/x264
 
 # Glide and svgalib are only for x86
 ifeq ($(shell dpkg-architecture -qDEB_BUILD_GNU_CPU),i386)
@@ -95,11 +98,18 @@ configure-stamp:
        test -d extras/ffmpeg
        if test ! '(' -d CVS -o -d .svn ')'; then \
          cd extras/ffmpeg \
-         && CC=$(CC) ./configure --enable-pp --enable-gpl --enable-zlib --disable-debug \
+         && CC=$(CC) ./configure --enable-pp --enable-gpl --enable-zlib --disable-debug --disable-mmx \
          && cd libavcodec \
          && $(MAKE); \
        fi
 
+       # Check that we have an x264 tree in here (can be a symlink)
+       test -d extras/x264
+       if test ! '(' -d CVS -o -d .svn ')'; then \
+         cd extras/x264 \
+         && jam -dx libx264.a; \
+       fi
+
        # Check that we have an faad2 tree in here (can be a symlink)
        test -d extras/faad2
        if test ! '(' -d CVS -o -d .svn ')'; then \
@@ -129,7 +139,6 @@ build-stamp: patch configure-stamp
        cd modules && AM_MAKEFLAGS='plugin=no pic=no' $(MAKE)
        $(MAKE) vlc
 
-ifneq ($(shell dpkg-architecture -qDEB_BUILD_GNU_CPU),i386)
        # Hackety hackety hack
        if test ! '(' -d CVS -o -d .svn ')'; then \
          cd extras/ffmpeg/libavcodec \
@@ -140,13 +149,22 @@ ifneq ($(shell dpkg-architecture -qDEB_BUILD_GNU_CPU),i386)
          && rm -f Makefile.pic; \
        fi
 
+       # Hackety hackety hack
+       if test ! '(' -d CVS -o -d .svn ')'; then \
+         cd extras/x264 \
+         && jam -dx clean \
+         && rm -f Jamfile.pic \
+         && sed 's/^CCFLAGS *=/& -fPIC -DPIC /' <Jamfile >Jamfile.pic \
+         && jam -dx -sJAMFILE=Jamfile.pic libx264.a \
+         && rm -f Jamfile.pic; \
+       fi
+
        # HACKETY HACKETY HACK
        if test ! '(' -d CVS -o -d .svn ')'; then \
          cd extras/faad2/libfaad \
          && $(MAKE) clean \
          && $(MAKE) AM_CFLAGS=-fPIC; \
        fi
-endif
 
        # Build all the rest, with the PIC libs
        AM_MAKEFLAGS='builtin=no' $(MAKE)
@@ -163,6 +181,11 @@ clean: unpatch
        -if test ! '(' -d CVS -o -d .svn ')'; then \
          cd extras/ffmpeg && $(MAKE) distclean; \
        fi
+       # Check that we have an x264 tree in here (can be a symlink)
+       test -d extras/x264
+       -if test ! '(' -d CVS -o -d .svn ')'; then \
+         cd extras/x264 && jam -dx clean; \
+       fi
        # Check that we have an faad2 tree in here (can be a symlink)
        test -d extras/faad2
        -if test ! '(' -d CVS -o -d .svn ')'; then \
@@ -176,11 +199,6 @@ clean: unpatch
        # Remove spurious autotools stuff
        rm -f config.log confdefs.h
 
-       touch configure.ac -d yesterday
-       touch aclocal.m4 -d yesterday
-       touch configure -d yesterday
-       touch config.h.in -d yesterday
-       touch `find . -name Makefile.in` -d yesterday
        -$(MAKE) distclean
 
        dh_clean