summaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-multimedia/vlc
diff options
context:
space:
mode:
authorTim Orling <TicoTimo@gmail.com>2014-02-25 21:39:57 -0800
committerMartin Jansa <Martin.Jansa@gmail.com>2014-03-18 20:08:43 +0100
commitd92c9c652c272aa22036458adf3c0bcb44eca728 (patch)
tree12fe5d8b60a5c55834ef2e29daa3e0c4316eb8bf /meta-multimedia/recipes-multimedia/vlc
parent8f151cf20f8b85ee5b6b2336f4c2151fcdf3b7fe (diff)
downloadmeta-openembedded-d92c9c652c272aa22036458adf3c0bcb44eca728.tar.gz
vlc: update to 2.1.2
Signed-off-by: Tim Orling <TicoTimo@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-multimedia/recipes-multimedia/vlc')
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc.inc70
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc/0001-V4L2-mark-horizontal-and-vertical-center-controls-ob.patch53
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc/0001-enable-subdir-objects.patch13
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc/0002-fix-build-with-newer-freetype.patch16
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc/0002-glibc-does-not-provide-strlcpy.patch17
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc/0003-fix-build-with-newer-flac-1.3.0.patch21
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc_1.1.11.bb19
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc_2.1.2.bb11
8 files changed, 74 insertions, 146 deletions
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc.inc b/meta-multimedia/recipes-multimedia/vlc/vlc.inc
index 6400719f8..1b2490b72 100644
--- a/meta-multimedia/recipes-multimedia/vlc/vlc.inc
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc.inc
@@ -1,49 +1,20 @@
1DESCRIPTION = "Video player and streamer - davinci edition" 1DESCRIPTION = "Video player and streamer - davinci edition"
2HOMEPAGE = "http://www.videolan.org" 2HOMEPAGE = "http://www.videolan.org"
3LICENSE = "GPLv2"
4SECTION = "multimedia" 3SECTION = "multimedia"
5 4
6DEPENDS = "libfribidi libtool libgcrypt gst-plugins-bad virtual/libsdl qt4-x11-free dbus libxml2 gnutls tremor faad2 ffmpeg flac libxpm fluidsynth alsa-lib" 5LICENSE = "GPL-2.0"
6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
7 7
8SRC_URI = "http://download.videolan.org/pub/videolan/vlc/${PV}/vlc-${PV}.tar.bz2" 8DEPENDS = "libfribidi libtool libgcrypt gst-plugins-bad virtual/libsdl qt4-x11-free \
9 dbus libxml2 gnutls tremor faad2 ffmpeg flac libxpm fluidsynth alsa-lib \
10 libdvdcss libdvdread lua-native lua"
11
12SRC_URI = "http://download.videolan.org/pub/videolan/${BPN}/${PV}/${BP}.tar.xz"
9 13
10inherit autotools gettext 14inherit autotools gettext
11 15
12ARM_INSTRUCTION_SET = "arm" 16ARM_INSTRUCTION_SET = "arm"
13 17
14DEPENDS += "libdvdcss libdvdread lua5.1-native lua5.1"
15
16LEAD_SONAME = "libvlc.so.5"
17
18PACKAGES =+ "libvlc-dbg libvlc-dev libvlc"
19
20FILES_libvlc-dev = "${libdir}/lib*.so"
21
22FILES_libvlc-dbg = "\
23 ${libdir}/.debug \
24 ${libdir}/vlc/meta_engine/.debug \
25 ${libdir}/vlc/audio_filter/.debug ${libdir}/vlc/audio_output/.debug \
26 ${libdir}/vlc/demux/.debug ${libdir}/vlc/control/.debug \
27 ${libdir}/vlc/gui/.debug ${libdir}/vlc/packetizer/.debug \
28 ${libdir}/vlc/audio_mixer/.debug ${libdir}/vlc/stream_out/.debug \
29 ${libdir}/vlc/mux/.debug ${libdir}/vlc/access/.debug \
30 ${libdir}/vlc/visualization/.debug ${libdir}/vlc/access_filter/.debug \
31 ${libdir}/vlc/access_output/.debug ${libdir}/vlc/video_output/.debug \
32 ${libdir}/vlc/services_discovery/.debug ${libdir}/vlc/video_chroma/.debug \
33 ${libdir}/vlc/video_codec/.debug ${libdir}/vlc/video_filter/.debug \
34 ${libdir}/vlc/misc/.debug ${libdir}/vlc/codec/.debug \
35"
36
37FILES_libvlc = "${libdir}/lib*.so.*"
38
39FILES_${PN} += "${bindir}/vlc \
40 ${datadir}/applications \
41 ${datadir}/vlc/ \
42 ${datadir}/icons \
43"
44
45FILES_${PN}-dbg += "${libdir}/vlc/*/.debug ${libdir}/vlc/plugins/*/.debug"
46
47EXTRA_OECONF = "\ 18EXTRA_OECONF = "\
48 --enable-dvdread \ 19 --enable-dvdread \
49 --with-contrib \ 20 --with-contrib \
@@ -71,6 +42,7 @@ PACKAGECONFIG[id3tag] = "--enable-id3tag,--disable-id3tag,libid3tag"
71PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52" 42PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52"
72PACKAGECONFIG[mpeg2dec] = "--enable-mpeg2dec,--disable-mpeg2dec,mpeg2dec" 43PACKAGECONFIG[mpeg2dec] = "--enable-mpeg2dec,--disable-mpeg2dec,mpeg2dec"
73PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack" 44PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack"
45PACKAGECONFIG[live555] = "--enable-live555,--disable-live555,live555"
74 46
75do_configure() { 47do_configure() {
76 cp ${STAGING_DATADIR}/aclocal/libgcrypt.m4 ${S}/m4/ 48 cp ${STAGING_DATADIR}/aclocal/libgcrypt.m4 ${S}/m4/
@@ -81,6 +53,30 @@ do_configure() {
81 cp ${STAGING_DATADIR}/libtool/config.* ${S}/autotools/ || true 53 cp ${STAGING_DATADIR}/libtool/config.* ${S}/autotools/ || true
82 oe_runconf 54 oe_runconf
83 rm config.log 55 rm config.log
84 sed -i -e s:-L/usr/lib:-L${STAGING_LIBDIR}/:g vlc-config 56 #sed -i -e s:-L/usr/lib:-L${STAGING_LIBDIR}/:g ${S}/vlc-config
85 sed -i -e s:'$(MOC) $(DEFS) $(CPPFLAGS)':'$(MOC) $(DEFS)'\ -I${S}/include\ -DSYS_LINUX:g ${S}/modules/gui/qt4/Makefile 57 sed -i -e s:'$(MOC) $(DEFS) $(CPPFLAGS)':'$(MOC) $(DEFS)'\ -I${S}/include\ -DSYS_LINUX:g ${S}/modules/gui/qt4/Makefile
58 sed -i -e s:'${top_builddir_slash}libtool':${TARGET_SYS}-libtool:g ${S}/doltlibtool
86} 59}
60
61# This recipe packages vlc as a library as well, so qt4 dependencies
62# can be avoided when only the library is installed.
63PACKAGES =+ "libvlc"
64
65LEAD_SONAME_libvlc = "libvlc.so.5"
66FILES_libvlc = "${libdir}/lib*.so.*"
67
68FILES_${PN} += "\
69 ${bindir}/vlc \
70 ${datadir}/applications \
71 ${datadir}/vlc/ \
72 ${datadir}/icons \
73"
74
75FILES_${PN}-dbg += "\
76 ${libdir}/vlc/*/.debug \
77 ${libdir}/vlc/plugins/*/.debug \
78"
79
80FILES_${PN}-staticdev += "\
81 ${libdir}/vlc/plugins/*/*.a \
82"
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc/0001-V4L2-mark-horizontal-and-vertical-center-controls-ob.patch b/meta-multimedia/recipes-multimedia/vlc/vlc/0001-V4L2-mark-horizontal-and-vertical-center-controls-ob.patch
deleted file mode 100644
index 81233bffe..000000000
--- a/meta-multimedia/recipes-multimedia/vlc/vlc/0001-V4L2-mark-horizontal-and-vertical-center-controls-ob.patch
+++ /dev/null
@@ -1,53 +0,0 @@
1From 4da99e58bd1b06267793ef728a368e4032789376 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <remi@remlab.net>
3Date: Sat, 1 Oct 2011 22:58:21 +0300
4Subject: [PATCH] V4L2: mark horizontal and vertical center controls obsolete
5
6Upstream-Status: Backport
7
8Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
9
10They were deprecated in Linux version 2.6.26.
11---
12 modules/access/v4l2/controls.c | 2 --
13 modules/access/v4l2/video.c | 12 ++----------
14 2 files changed, 2 insertions(+), 12 deletions(-)
15
16diff -uNr vlc-1.1.11.orig/modules/access/v4l2.c vlc-1.1.11/modules/access/v4l2.c
17--- vlc-1.1.11.orig/modules/access/v4l2.c 2011-06-03 19:59:40.000000000 +0200
18+++ vlc-1.1.11/modules/access/v4l2.c 2014-02-01 07:38:28.905142516 +0100
19@@ -159,12 +159,6 @@
20 #define VFLIP_TEXT N_( "Vertical flip" )
21 #define VFLIP_LONGTEXT N_( \
22 "Flip the video vertically (if supported by the v4l2 driver)." )
23-#define HCENTER_TEXT N_( "Horizontal centering" )
24-#define HCENTER_LONGTEXT N_( \
25- "Set the camera's horizontal centering (if supported by the v4l2 driver)." )
26-#define VCENTER_TEXT N_( "Vertical centering" )
27-#define VCENTER_LONGTEXT N_( \
28- "Set the camera's vertical centering (if supported by the v4l2 driver)." )
29
30 #define AUDIO_VOLUME_TEXT N_( "Volume" )
31 #define AUDIO_VOLUME_LONGTEXT N_( \
32@@ -351,10 +345,8 @@
33 HFLIP_LONGTEXT, true )
34 add_integer( CFG_PREFIX "vflip", -1, NULL, VFLIP_TEXT,
35 VFLIP_LONGTEXT, true )
36- add_integer( CFG_PREFIX "hcenter", -1, NULL, HCENTER_TEXT,
37- HCENTER_LONGTEXT, true )
38- add_integer( CFG_PREFIX "vcenter", -1, NULL, VCENTER_TEXT,
39- VCENTER_LONGTEXT, true )
40+ add_obsolete_integer( CFG_PREFIX "hcenter" ) /* since Linux 2.6.26 */
41+ add_obsolete_integer( CFG_PREFIX "vcenter" ) /* since Linux 2.6.26 */
42 add_integer( CFG_PREFIX "audio-volume", -1, NULL, AUDIO_VOLUME_TEXT,
43 AUDIO_VOLUME_LONGTEXT, true )
44 add_integer( CFG_PREFIX "audio-balance", -1, NULL, AUDIO_BALANCE_TEXT,
45@@ -518,8 +510,6 @@
46 { "gain", V4L2_CID_GAIN },
47 { "hflip", V4L2_CID_HFLIP },
48 { "vflip", V4L2_CID_VFLIP },
49- { "hcenter", V4L2_CID_HCENTER },
50- { "vcenter", V4L2_CID_VCENTER },
51 { NULL, 0 }
52 };
53
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc/0001-enable-subdir-objects.patch b/meta-multimedia/recipes-multimedia/vlc/vlc/0001-enable-subdir-objects.patch
new file mode 100644
index 000000000..9f0e708ed
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc/0001-enable-subdir-objects.patch
@@ -0,0 +1,13 @@
1Index: vlc-2.1.2/configure.ac
2===================================================================
3--- vlc-2.1.2.orig/configure.ac
4+++ vlc-2.1.2/configure.ac
5@@ -24,7 +24,7 @@ AC_CANONICAL_BUILD
6 AC_CANONICAL_HOST
7 AC_PRESERVE_HELP_ORDER
8
9-AM_INIT_AUTOMAKE(tar-ustar color-tests foreign)
10+AM_INIT_AUTOMAKE(tar-ustar color-tests foreign subdir-objects)
11 AC_CONFIG_HEADERS([config.h])
12
13 # Disable with "./configure --disable-silent-rules" or "make V=1"
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc/0002-fix-build-with-newer-freetype.patch b/meta-multimedia/recipes-multimedia/vlc/vlc/0002-fix-build-with-newer-freetype.patch
deleted file mode 100644
index 100ba9724..000000000
--- a/meta-multimedia/recipes-multimedia/vlc/vlc/0002-fix-build-with-newer-freetype.patch
+++ /dev/null
@@ -1,16 +0,0 @@
1Upstream-Status: Pending
2
3Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
4
5diff -uNr vlc-1.1.11.orig/modules/misc/freetype.c vlc-1.1.11/modules/misc/freetype.c
6--- vlc-1.1.11.orig/modules/misc/freetype.c 2011-07-09 17:18:51.000000000 +0200
7+++ vlc-1.1.11/modules/misc/freetype.c 2014-02-01 07:45:32.078131862 +0100
8@@ -60,7 +60,7 @@
9 #endif
10
11 /* Freetype */
12-#include <freetype/ftsynth.h>
13+#include <freetype2/ftsynth.h>
14 #include FT_FREETYPE_H
15 #include FT_GLYPH_H
16 #define FT_FLOOR(X) ((X & -64) >> 6)
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc/0002-glibc-does-not-provide-strlcpy.patch b/meta-multimedia/recipes-multimedia/vlc/vlc/0002-glibc-does-not-provide-strlcpy.patch
new file mode 100644
index 000000000..6d2a46fb3
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc/0002-glibc-does-not-provide-strlcpy.patch
@@ -0,0 +1,17 @@
1Index: vlc-2.1.2/src/input/subtitles.c
2===================================================================
3--- vlc-2.1.2.orig/src/input/subtitles.c
4+++ vlc-2.1.2/src/input/subtitles.c
5@@ -44,6 +44,12 @@
6 #include "input_internal.h"
7
8 /**
9+ * Drepper's alternative
10+ * http://en.wikibooks.org/wiki/C_Programming/C_Reference/nonstandard/strlcpy
11+ */
12+#define strlcpy(dst, src, n) *((char* ) mempcpy(dst, src, n)) = '\0'
13+
14+/**
15 * We are not going to autodetect more subtitle files than this.
16 */
17 #define MAX_SUBTITLE_FILES 128
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc/0003-fix-build-with-newer-flac-1.3.0.patch b/meta-multimedia/recipes-multimedia/vlc/vlc/0003-fix-build-with-newer-flac-1.3.0.patch
deleted file mode 100644
index 8278a3e93..000000000
--- a/meta-multimedia/recipes-multimedia/vlc/vlc/0003-fix-build-with-newer-flac-1.3.0.patch
+++ /dev/null
@@ -1,21 +0,0 @@
1flac-1.3.0 removed FLAC from pkg-config's includedir, so the user of flac.pc is supposed to
2include the headers with FLAC/ prefix now.
3
4Upstream-Status: Pending
5
6Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
7
8diff -uNr vlc-1.1.11.orig/modules/codec/flac.c vlc-1.1.11/modules/codec/flac.c
9--- vlc-1.1.11.orig/modules/codec/flac.c 2014-02-23 01:29:56.337515018 +0000
10+++ vlc-1.1.11/modules/codec/flac.c 2014-02-23 01:29:04.477514993 +0000
11@@ -38,8 +38,8 @@
12 #include <vlc_codec.h>
13 #include <vlc_aout.h>
14
15-#include <stream_decoder.h>
16-#include <stream_encoder.h>
17+#include <FLAC/stream_decoder.h>
18+#include <FLAC/stream_encoder.h>
19
20 #include <vlc_block_helper.h>
21 #include <vlc_bits.h>
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc_1.1.11.bb b/meta-multimedia/recipes-multimedia/vlc/vlc_1.1.11.bb
deleted file mode 100644
index 368db591a..000000000
--- a/meta-multimedia/recipes-multimedia/vlc/vlc_1.1.11.bb
+++ /dev/null
@@ -1,19 +0,0 @@
1# This recipe packages vlc as a library as well, so qt4 dependencies
2# can be avoided when only the library is installed.
3
4LIC_FILES_CHKSUM = "file://COPYING;md5=ed7e492ee44e70125a5d42e118354a13"
5
6require vlc.inc
7
8SRC_URI += "file://0001-V4L2-mark-horizontal-and-vertical-center-controls-ob.patch"
9SRC_URI += "file://0002-fix-build-with-newer-freetype.patch"
10SRC_URI += "file://0003-fix-build-with-newer-flac-1.3.0.patch"
11
12PR = "r4"
13
14# work around build failure
15EXTRA_OECONF += " --enable-libxml2=no"
16
17SRC_URI[md5sum] = "a64846d6f21ea179ae8e8bfb6f9447fe"
18SRC_URI[sha256sum] = "682560be08b82bedfaf30d8a611d80093c5883c1de72fcbcf05715b8e9f4e1cb"
19
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc_2.1.2.bb b/meta-multimedia/recipes-multimedia/vlc/vlc_2.1.2.bb
new file mode 100644
index 000000000..9dc2b10e8
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc_2.1.2.bb
@@ -0,0 +1,11 @@
1require ${BPN}.inc
2
3# work around build failure
4EXTRA_OECONF += " --enable-libxml2=no"
5
6SRC_URI += "file://0001-enable-subdir-objects.patch \
7 file://0002-glibc-does-not-provide-strlcpy.patch \
8"
9
10SRC_URI[md5sum] = "fb6787ad749aadcfaeab3471939b3426"
11SRC_URI[sha256sum] = "219b812be1bc2eba40faa86419d0aa2c479a7380af8af216e8bfa22eb6fc8ec4"