Commit 7a47d507 authored by Sam Hocevar's avatar Sam Hocevar

* debian/rules:

    + 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.
parent f2c55479
...@@ -32,7 +32,6 @@ EXTRA_DIST = \ ...@@ -32,7 +32,6 @@ EXTRA_DIST = \
wxvlc.dirs \ wxvlc.dirs \
wxvlc.menu \ wxvlc.menu \
patches/00list \ patches/00list \
patches/20_faad2.dpatch \
patches/20_ffmpeg.dpatch \ patches/20_ffmpeg.dpatch \
patches/20_interfaces.dpatch \ patches/20_interfaces.dpatch \
$(NULL) $(NULL)
...@@ -7,11 +7,11 @@ Notes for anyone wanting to build Debian packages of VLC. ...@@ -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 - To build for a Debian woody system, first build a tarball using
"make dist-woody". "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. extras/ directory, because they are not yet available in Debian.
- If there is no CVS directory in the root, debian/rules will assume a - 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 - VLC does not link with libdvdcss by default, thus it will not depend
on the libdvdcss packages. However it will use libdvdread that can on the libdvdcss packages. However it will use libdvdread that can
......
...@@ -2,7 +2,7 @@ Source: vlc ...@@ -2,7 +2,7 @@ Source: vlc
Section: graphics Section: graphics
Priority: optional Priority: optional
Maintainer: Sam Hocevar (Debian packages) <sam+deb@zoy.org> 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 Build-Conflicts: libavcodec-dev
Standards-Version: 3.6.1.1 Standards-Version: 3.6.1.1
...@@ -139,7 +139,7 @@ Description: Glide video output plugin for VLC ...@@ -139,7 +139,7 @@ Description: Glide video output plugin for VLC
Package: qvlc Package: qvlc
Architecture: any Architecture: any
Depends: vlc (= ${Source-Version}), ${shlibs:Depends}, ${misc:Depends} Depends: vlc (= ${Source-Version}), libqt3c102-mt, ${misc:Depends}
Conflicts: vlc-qt (<< 0.5.0) Conflicts: vlc-qt (<< 0.5.0)
Replaces: vlc-qt (<< 0.5.0) Replaces: vlc-qt (<< 0.5.0)
Description: Qt frontend for VLC Description: Qt frontend for VLC
...@@ -152,7 +152,7 @@ Description: Qt frontend for VLC ...@@ -152,7 +152,7 @@ Description: Qt frontend for VLC
Package: vlc-plugin-arts Package: vlc-plugin-arts
Architecture: any Architecture: any
Depends: vlc (= ${Source-Version}), ${shlibs:Depends}, ${misc:Depends} Depends: vlc (= ${Source-Version}), libartsc0, ${misc:Depends}
Conflicts: vlc-arts (<< 0.5.0) Conflicts: vlc-arts (<< 0.5.0)
Replaces: vlc-arts (<< 0.5.0) Replaces: vlc-arts (<< 0.5.0)
Description: aRts audio output plugin for VLC Description: aRts audio output plugin for VLC
......
...@@ -2,7 +2,7 @@ This package was debianized by Sam Hocevar <sam@zoy.org> on ...@@ -2,7 +2,7 @@ This package was debianized by Sam Hocevar <sam@zoy.org> on
Mon, 13 Mar 2000 02:21:45 +0100. Mon, 13 Mar 2000 02:21:45 +0100.
It was taken from http://download.videolan.org/pub/vlc/0.7.1/, and the source 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> Upstream authors: The VideoLAN Team <videolan@videolan.org>
...@@ -14,9 +14,15 @@ ffmpeg authors: Fabrice Bellard, BERO, Mario Brito, Alex Beregszaszi, ...@@ -14,9 +14,15 @@ ffmpeg authors: Fabrice Bellard, BERO, Mario Brito, Alex Beregszaszi,
Tim Ferguson, Brian Foley, Arpad Gereoffy, Philip Gladstone, Tim Ferguson, Brian Foley, Arpad Gereoffy, Philip Gladstone,
Vladimir Gneushev, Falk Hueffner, Zdenek Kabelac, Robin Kay, Vladimir Gneushev, Falk Hueffner, Zdenek Kabelac, Robin Kay,
Nick Kurshev, Mike Melanson, Michael Niedermayer, Nick Kurshev, Mike Melanson, Michael Niedermayer,
Franois Revol, Roman Shaposhnik, Dieter Shirley, François Revol, Roman Shaposhnik, Dieter Shirley,
Juan J. Sierralta, Ewald Snel, Roberto Togni, Lionel Ulmer 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 VideoLAN is Copyright 1996-2004 The VideoLAN Team
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
......
20_faad2
20_ffmpeg 20_ffmpeg
20_interfaces 20_interfaces
#! /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:
...@@ -23,9 +23,9 @@ esac ...@@ -23,9 +23,9 @@ esac
exit 0 exit 0
@DPATCH@ @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 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.final/modules/gui/kde/kde.cpp 2004-03-05 20:24:00.000000000 +0100 --- /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.final/modules/gui/kde/kde.cpp 2004-07-29 17:12:39.000000000 +0200 +++ vlc-0.7.2.svn20040826/modules/gui/kde/kde.cpp 2004-08-27 01:17:56.000000000 +0200
@@ -53,7 +53,7 @@ @@ -53,7 +53,7 @@
/* int i = getenv( "DISPLAY" ) == NULL ? 8 : 85; */ /* int i = getenv( "DISPLAY" ) == NULL ? 8 : 85; */
set_description( _("KDE interface") ); set_description( _("KDE interface") );
...@@ -35,27 +35,26 @@ diff -urNad /home/sam/debian/official/vlc/debian/vlc-0.7.2.final/modules/gui/kde ...@@ -35,27 +35,26 @@ diff -urNad /home/sam/debian/official/vlc/debian/vlc-0.7.2.final/modules/gui/kde
set_program( "kvlc" ); set_program( "kvlc" );
set_callbacks( open, close ); set_callbacks( open, close );
vlc_module_end(); 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 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.final/modules/gui/skins2/src/skin_main.cpp 2004-05-21 13:24:58.000000000 +0200 --- /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.final/modules/gui/skins2/src/skin_main.cpp 2004-07-29 17:12:39.000000000 +0200 +++ vlc-0.7.2.svn20040826/modules/gui/skins2/src/skin_main.cpp 2004-08-27 01:17:56.000000000 +0200
@@ -258,7 +258,7 @@ @@ -349,7 +349,7 @@
SKINS2_TRANSPARENCY_LONG, VLC_FALSE );
#endif #endif
set_description( _("Skinnable Interface") ); set_description( _("Skinnable Interface") );
- set_capability( "interface", 30 ); - set_capability( "interface", 30 );
+ set_capability( "interface", 200 ); + set_capability( "interface", 120 );
set_callbacks( Open, Close ); set_callbacks( Open, Close );
add_shortcut( "skins" );
set_program( "svlc" ); set_program( "svlc" );
vlc_module_end(); 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
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.svn20040826/src/interface/interface.c 2004-08-27 01:17:48.000000000 +0200
--- /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.svn20040826/src/interface/interface.c 2004-08-27 01:17:56.000000000 +0200
+++ vlc-0.7.2.final/src/interface/interface.c 2004-07-29 17:12:39.000000000 +0200 @@ -306,8 +306,10 @@
@@ -242,9 +242,11 @@
{ {
static char *ppsz_interfaces[] = static char *ppsz_interfaces[] =
{ {
+/* +/*
"skins", "Skins",
"skins2", "Skins 2", "skins2", "Skins 2",
"wxwindows", "wxWindows", "wxwindows", "wxWindows",
+*/ +*/
......
...@@ -32,13 +32,13 @@ CONFIG_FLAGS += \ ...@@ -32,13 +32,13 @@ CONFIG_FLAGS += \
--enable-mozilla \ --enable-mozilla \
--enable-kde \ --enable-kde \
--enable-mp4 \ --enable-mp4 \
--enable-dvb \ --disable-dvb \
--enable-dv \ --enable-dv \
--disable-satellite \ --disable-satellite \
--enable-ogg \ --enable-ogg \
--enable-vorbis \ --enable-vorbis \
--enable-wxwindows \ --enable-wxwindows \
--enable-slp \ --disable-slp \
--enable-flac \ --enable-flac \
--disable-skins \ --disable-skins \
--disable-basic-skins \ --disable-basic-skins \
...@@ -56,11 +56,14 @@ CONFIG_FLAGS += \ ...@@ -56,11 +56,14 @@ CONFIG_FLAGS += \
--enable-cdio \ --enable-cdio \
--enable-mod \ --enable-mod \
--enable-theora \ --enable-theora \
--enable-modplug \
$(NULL) $(NULL)
# These ones are currently shipped with VLC # These ones are currently shipped with VLC
CONFIG_FLAGS += --enable-ffmpeg --with-ffmpeg-tree=extras/ffmpeg 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-faad --with-faad-tree=extras/faad2
CONFIG_FLAGS += --enable-x264 --with-x264-tree=extras/x264
# Glide and svgalib are only for x86 # Glide and svgalib are only for x86
ifeq ($(shell dpkg-architecture -qDEB_BUILD_GNU_CPU),i386) ifeq ($(shell dpkg-architecture -qDEB_BUILD_GNU_CPU),i386)
...@@ -95,11 +98,18 @@ configure-stamp: ...@@ -95,11 +98,18 @@ configure-stamp:
test -d extras/ffmpeg test -d extras/ffmpeg
if test ! '(' -d CVS -o -d .svn ')'; then \ if test ! '(' -d CVS -o -d .svn ')'; then \
cd extras/ffmpeg \ 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 \ && cd libavcodec \
&& $(MAKE); \ && $(MAKE); \
fi 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) # Check that we have an faad2 tree in here (can be a symlink)
test -d extras/faad2 test -d extras/faad2
if test ! '(' -d CVS -o -d .svn ')'; then \ if test ! '(' -d CVS -o -d .svn ')'; then \
...@@ -129,7 +139,6 @@ build-stamp: patch configure-stamp ...@@ -129,7 +139,6 @@ build-stamp: patch configure-stamp
cd modules && AM_MAKEFLAGS='plugin=no pic=no' $(MAKE) cd modules && AM_MAKEFLAGS='plugin=no pic=no' $(MAKE)
$(MAKE) vlc $(MAKE) vlc
ifneq ($(shell dpkg-architecture -qDEB_BUILD_GNU_CPU),i386)
# Hackety hackety hack # Hackety hackety hack
if test ! '(' -d CVS -o -d .svn ')'; then \ if test ! '(' -d CVS -o -d .svn ')'; then \
cd extras/ffmpeg/libavcodec \ cd extras/ffmpeg/libavcodec \
...@@ -140,13 +149,22 @@ ifneq ($(shell dpkg-architecture -qDEB_BUILD_GNU_CPU),i386) ...@@ -140,13 +149,22 @@ ifneq ($(shell dpkg-architecture -qDEB_BUILD_GNU_CPU),i386)
&& rm -f Makefile.pic; \ && rm -f Makefile.pic; \
fi 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 # HACKETY HACKETY HACK
if test ! '(' -d CVS -o -d .svn ')'; then \ if test ! '(' -d CVS -o -d .svn ')'; then \
cd extras/faad2/libfaad \ cd extras/faad2/libfaad \
&& $(MAKE) clean \ && $(MAKE) clean \
&& $(MAKE) AM_CFLAGS=-fPIC; \ && $(MAKE) AM_CFLAGS=-fPIC; \
fi fi
endif
# Build all the rest, with the PIC libs # Build all the rest, with the PIC libs
AM_MAKEFLAGS='builtin=no' $(MAKE) AM_MAKEFLAGS='builtin=no' $(MAKE)
...@@ -163,6 +181,11 @@ clean: unpatch ...@@ -163,6 +181,11 @@ clean: unpatch
-if test ! '(' -d CVS -o -d .svn ')'; then \ -if test ! '(' -d CVS -o -d .svn ')'; then \
cd extras/ffmpeg && $(MAKE) distclean; \ cd extras/ffmpeg && $(MAKE) distclean; \
fi 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) # Check that we have an faad2 tree in here (can be a symlink)
test -d extras/faad2 test -d extras/faad2
-if test ! '(' -d CVS -o -d .svn ')'; then \ -if test ! '(' -d CVS -o -d .svn ')'; then \
...@@ -176,11 +199,6 @@ clean: unpatch ...@@ -176,11 +199,6 @@ clean: unpatch
# Remove spurious autotools stuff # Remove spurious autotools stuff
rm -f config.log confdefs.h 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 -$(MAKE) distclean
dh_clean dh_clean
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment