summaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-multimedia/vlc
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
commit1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch)
tree0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-multimedia/recipes-multimedia/vlc
downloadmeta-openembedded-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-multimedia/recipes-multimedia/vlc')
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/libdvdcss_1.2.13.bb12
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc.inc82
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc/0001-enable-subdir-objects.patch13
-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_2.1.4.bb11
5 files changed, 135 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/vlc/libdvdcss_1.2.13.bb b/meta-multimedia/recipes-multimedia/vlc/libdvdcss_1.2.13.bb
new file mode 100644
index 0000000000..1a316d3fb7
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/vlc/libdvdcss_1.2.13.bb
@@ -0,0 +1,12 @@
1DESCRIPTION = "libdvdcss is a simple library designed for accessing DVDs like a block device without having to bother about the decryption."
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
4
5SRC_URI = "http://download.videolan.org/pub/libdvdcss/${PV}/libdvdcss-${PV}.tar.bz2"
6
7inherit autotools
8
9EXTRA_OECONF = " --disable-doc "
10
11SRC_URI[md5sum] = "53cfc52a60a156763c425572e5179273"
12SRC_URI[sha256sum] = "84f1bba6cfef1df87f774fceaefc8e73c4cda32e8f6700b224ad0acb5511ba2c"
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc.inc b/meta-multimedia/recipes-multimedia/vlc/vlc.inc
new file mode 100644
index 0000000000..1b2490b720
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc.inc
@@ -0,0 +1,82 @@
1DESCRIPTION = "Video player and streamer - davinci edition"
2HOMEPAGE = "http://www.videolan.org"
3SECTION = "multimedia"
4
5LICENSE = "GPL-2.0"
6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
7
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"
13
14inherit autotools gettext
15
16ARM_INSTRUCTION_SET = "arm"
17
18EXTRA_OECONF = "\
19 --enable-dvdread \
20 --with-contrib \
21 --enable-run-as-root \
22 --enable-xvideo \
23 --disable-screen --disable-caca \
24 --enable-httpd --enable-vlm \
25 --enable-freetype \
26 --enable-sdl \
27 --enable-png \
28 --enable-live555 --enable-tremor \
29 --enable-v4l2 --enable-v4l --disable-aa --disable-faad \
30 --enable-dbus \
31 --without-contrib \
32 --without-kde-solid \
33 --disable-opengl --disable-glx \
34 --enable-realrtsp \
35 ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}/moc4 \
36 ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}/rcc4 \
37 ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}/uic4 \
38"
39
40PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad"
41PACKAGECONFIG[id3tag] = "--enable-id3tag,--disable-id3tag,libid3tag"
42PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52"
43PACKAGECONFIG[mpeg2dec] = "--enable-mpeg2dec,--disable-mpeg2dec,mpeg2dec"
44PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack"
45PACKAGECONFIG[live555] = "--enable-live555,--disable-live555,live555"
46
47do_configure() {
48 cp ${STAGING_DATADIR}/aclocal/libgcrypt.m4 ${S}/m4/
49 ./bootstrap
50 gnu-configize --force
51 libtoolize --force
52 #autoreconf --force -i
53 cp ${STAGING_DATADIR}/libtool/config.* ${S}/autotools/ || true
54 oe_runconf
55 rm config.log
56 #sed -i -e s:-L/usr/lib:-L${STAGING_LIBDIR}/:g ${S}/vlc-config
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
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-enable-subdir-objects.patch b/meta-multimedia/recipes-multimedia/vlc/vlc/0001-enable-subdir-objects.patch
new file mode 100644
index 0000000000..9f0e708ed7
--- /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-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 0000000000..6d2a46fb3c
--- /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_2.1.4.bb b/meta-multimedia/recipes-multimedia/vlc/vlc_2.1.4.bb
new file mode 100644
index 0000000000..46a27129cb
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc_2.1.4.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] = "7ed67d22f7425011078772bfc62ac222"
11SRC_URI[sha256sum] = "3e566c7525478167e18cc53dc75d621e4af91eb40aabb6231e47db25d682d5d3"