diff options
Diffstat (limited to 'meta-multimedia/recipes-multimedia/vlc')
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 @@ | |||
1 | DESCRIPTION = "libdvdcss is a simple library designed for accessing DVDs like a block device without having to bother about the decryption." | ||
2 | LICENSE = "GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
4 | |||
5 | SRC_URI = "http://download.videolan.org/pub/libdvdcss/${PV}/libdvdcss-${PV}.tar.bz2" | ||
6 | |||
7 | inherit autotools | ||
8 | |||
9 | EXTRA_OECONF = " --disable-doc " | ||
10 | |||
11 | SRC_URI[md5sum] = "53cfc52a60a156763c425572e5179273" | ||
12 | SRC_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 @@ | |||
1 | DESCRIPTION = "Video player and streamer - davinci edition" | ||
2 | HOMEPAGE = "http://www.videolan.org" | ||
3 | SECTION = "multimedia" | ||
4 | |||
5 | LICENSE = "GPL-2.0" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
7 | |||
8 | DEPENDS = "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 | |||
12 | SRC_URI = "http://download.videolan.org/pub/videolan/${BPN}/${PV}/${BP}.tar.xz" | ||
13 | |||
14 | inherit autotools gettext | ||
15 | |||
16 | ARM_INSTRUCTION_SET = "arm" | ||
17 | |||
18 | EXTRA_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 | |||
40 | PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad" | ||
41 | PACKAGECONFIG[id3tag] = "--enable-id3tag,--disable-id3tag,libid3tag" | ||
42 | PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52" | ||
43 | PACKAGECONFIG[mpeg2dec] = "--enable-mpeg2dec,--disable-mpeg2dec,mpeg2dec" | ||
44 | PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack" | ||
45 | PACKAGECONFIG[live555] = "--enable-live555,--disable-live555,live555" | ||
46 | |||
47 | do_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. | ||
63 | PACKAGES =+ "libvlc" | ||
64 | |||
65 | LEAD_SONAME_libvlc = "libvlc.so.5" | ||
66 | FILES_libvlc = "${libdir}/lib*.so.*" | ||
67 | |||
68 | FILES_${PN} += "\ | ||
69 | ${bindir}/vlc \ | ||
70 | ${datadir}/applications \ | ||
71 | ${datadir}/vlc/ \ | ||
72 | ${datadir}/icons \ | ||
73 | " | ||
74 | |||
75 | FILES_${PN}-dbg += "\ | ||
76 | ${libdir}/vlc/*/.debug \ | ||
77 | ${libdir}/vlc/plugins/*/.debug \ | ||
78 | " | ||
79 | |||
80 | FILES_${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 @@ | |||
1 | Index: 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 @@ | |||
1 | Index: 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 @@ | |||
1 | require ${BPN}.inc | ||
2 | |||
3 | # work around build failure | ||
4 | EXTRA_OECONF += " --enable-libxml2=no" | ||
5 | |||
6 | SRC_URI += "file://0001-enable-subdir-objects.patch \ | ||
7 | file://0002-glibc-does-not-provide-strlcpy.patch \ | ||
8 | " | ||
9 | |||
10 | SRC_URI[md5sum] = "7ed67d22f7425011078772bfc62ac222" | ||
11 | SRC_URI[sha256sum] = "3e566c7525478167e18cc53dc75d621e4af91eb40aabb6231e47db25d682d5d3" | ||