summaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.9.2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-multimedia/recipes-multimedia/vlc/vlc_3.0.9.2.bb')
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc_3.0.9.2.bb127
1 files changed, 127 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.9.2.bb b/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.9.2.bb
new file mode 100644
index 0000000000..9e41512c3e
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.9.2.bb
@@ -0,0 +1,127 @@
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 = "coreutils-native fribidi libtool libgcrypt libgcrypt-native \
9 dbus libxml2 gnutls \
10 tremor faad2 ffmpeg flac fluidsynth alsa-lib \
11 lua-native lua libidn \
12 avahi jpeg xz libmodplug mpeg2dec \
13 libmtp libopus orc libsamplerate0 libusb1 schroedinger taglib \
14 tiff"
15
16LDFLAGS_append_riscv64 = " -latomic"
17
18# While this item does not require it, it depends on ffmpeg which does
19LICENSE_FLAGS = "commercial"
20
21SRC_URI = "http://download.videolan.org/pub/videolan/${BPN}/${PV}/${BP}.tar.xz \
22 file://0006-make-opencv-configurable.patch \
23 file://0007-use-vorbisidec.patch \
24 file://0008-fix-luaL-checkint.patch \
25"
26SRC_URI[sha256sum] = "a9bdad293d81cd48516abad8d490d8ab4012964ae541ff19e00021e071e47601"
27
28inherit autotools gettext pkgconfig features_check mime-xdg
29
30ARM_INSTRUCTION_SET = "arm"
31export BUILDCC = "${BUILD_CC}"
32EXTRA_OECONF = "\
33 --enable-run-as-root \
34 --enable-xvideo \
35 --disable-screen --disable-caca \
36 --enable-vlm \
37 --enable-freetype \
38 --enable-tremor \
39 --enable-v4l2 --disable-aa --disable-faad \
40 --enable-dbus \
41 --without-contrib \
42 --without-kde-solid \
43 --enable-realrtsp \
44 --disable-libtar \
45 --enable-avcodec \
46 ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/moc \
47 ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/rcc \
48 ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/uic \
49"
50
51PACKAGECONFIG ?= " \
52 live555 dc1394 dv1394 notify fontconfig freetype dvdread png \
53 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
54"
55
56inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'qmake5_paths', '', d)}
57
58PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad"
59PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52"
60PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack"
61PACKAGECONFIG[live555] = "--enable-live555 LIVE555_PREFIX=${STAGING_DIR_HOST}${prefix},--disable-live555,live555"
62PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass"
63PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc,libpostproc"
64PACKAGECONFIG[libva] = "--enable-libva,--disable-libva,libva"
65PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv"
66PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex"
67PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad"
68PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx"
69PACKAGECONFIG[qt5] = "--enable-qt,--disable-qt, qtbase-native qtx11extras qtsvg"
70PACKAGECONFIG[freerdp] = "--enable-freerdp,--disable-freerdp, freerdp"
71PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi"
72PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba"
73PACKAGECONFIG[upnp] = "--enable-upnp,--disable-upnp,libupnp"
74PACKAGECONFIG[dvdnav] = "--enable-dvdnav,--disable-dvdnav,libdvdnav libdvdcss"
75PACKAGECONFIG[sftp] = "--enable-sftp,--disable-sftp,libssh2"
76PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis libogg"
77PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libvorbis libogg"
78PACKAGECONFIG[dc1394] = "--enable-dc1394,--disable-dc1394,libdc1394"
79PACKAGECONFIG[dv1394] = "--enable-dv1394,--disable-dv1394,libraw1394 libavc1394"
80PACKAGECONFIG[svg] = "--enable-svg,--disable-svg,librsvg"
81PACKAGECONFIG[svgdec] = "--enable-svgdec,--disable-svgdec,librsvg cairo"
82PACKAGECONFIG[notify] = "--enable-notify,--disable-notify, libnotify gtk+3"
83PACKAGECONFIG[fontconfig] = "--enable-fontconfig,--disable-fontconfig, fontconfig"
84PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype, freetype"
85PACKAGECONFIG[dvdread] = "--enable-dvdread,--disable-dvdread, libdvdread libdvdcss"
86PACKAGECONFIG[vnc] = "--enable-vnc,--disable-vnc, libvncserver"
87PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb, xcb-util-keysyms libxpm libxinerama"
88PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng"
89PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
90PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland wayland-native"
91
92do_configure_append() {
93 sed -i -e s:'${top_builddir_slash}libtool':'${top_builddir_slash}'${TARGET_SYS}-libtool:g ${B}/doltlibtool
94
95 # moc needs support: precreate build paths
96 for qtpath in adapters components/epg components/playlist components/sout dialogs managers styles util/buttons; do
97 mkdir -p "${B}/modules/gui/qt/$qtpath"
98 done
99}
100
101# This recipe packages vlc as a library as well, so qt4 dependencies
102# can be avoided when only the library is installed.
103PACKAGES =+ "libvlc"
104
105LEAD_SONAME_libvlc = "libvlc.so.5"
106FILES_libvlc = "${libdir}/lib*.so.*"
107
108FILES_${PN} += "\
109 ${bindir}/vlc \
110 ${libdir}/vlc/vlc/libvlc_vdpau.so \
111 ${datadir}/applications \
112 ${datadir}/vlc/ \
113 ${datadir}/icons \
114 ${datadir}/metainfo/vlc.appdata.xml \
115"
116
117FILES_${PN}-dbg += "\
118 ${libdir}/vlc/*/.debug \
119 ${libdir}/vlc/plugins/*/.debug \
120"
121
122FILES_${PN}-staticdev += "\
123 ${libdir}/vlc/plugins/*/*.a \
124"
125
126INSANE_SKIP_${PN} = "dev-so"
127