diff options
Diffstat (limited to 'meta-multimedia/recipes-multimedia/vlc/vlc_3.0.23.bb')
| -rw-r--r-- | meta-multimedia/recipes-multimedia/vlc/vlc_3.0.23.bb | 139 |
1 files changed, 139 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.23.bb b/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.23.bb new file mode 100644 index 0000000000..8f728226c6 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.23.bb | |||
| @@ -0,0 +1,139 @@ | |||
| 1 | DESCRIPTION = "Video player and streamer - davinci edition" | ||
| 2 | HOMEPAGE = "http://www.videolan.org" | ||
| 3 | SECTION = "multimedia" | ||
| 4 | |||
| 5 | LICENSE = "GPL-2.0-only" | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
| 7 | |||
| 8 | DEPENDS = "coreutils-native fribidi libtool libgcrypt libgcrypt-native bison-native \ | ||
| 9 | dbus libxml2 gnutls \ | ||
| 10 | tremor faad2 ffmpeg flac alsa-lib \ | ||
| 11 | lua-native lua libidn \ | ||
| 12 | avahi jpeg xz libmodplug \ | ||
| 13 | libmtp libopus orc libsamplerate0 libusb1 schroedinger taglib \ | ||
| 14 | tiff" | ||
| 15 | |||
| 16 | LDFLAGS:append:riscv64 = " -latomic" | ||
| 17 | LDFLAGS:append:riscv32 = " -latomic" | ||
| 18 | |||
| 19 | SRC_URI = "https://get.videolan.org/${BPN}/${PV}/${BP}.tar.xz \ | ||
| 20 | file://0001-make-opencv-configurable.patch \ | ||
| 21 | file://0002-use-vorbisidec.patch \ | ||
| 22 | file://0003-fix-luaL-checkint.patch \ | ||
| 23 | file://0004-Use-packageconfig-to-detect-mmal-support.patch \ | ||
| 24 | file://0005-ioctl-does-not-have-same-signature-between-glibc-and.patch \ | ||
| 25 | file://0006-configure-Disable-incompatible-function-pointer-type.patch \ | ||
| 26 | " | ||
| 27 | SRC_URI[sha256sum] = "e891cae6aa3ccda69bf94173d5105cbc55c7a7d9b1d21b9b21666e69eff3e7e0" | ||
| 28 | inherit autotools-brokensep features_check gettext pkgconfig mime-xdg | ||
| 29 | |||
| 30 | REQUIRED_DISTRO_FEATURES = "x11" | ||
| 31 | |||
| 32 | export BUILDCC = "${BUILD_CC}" | ||
| 33 | EXTRA_OECONF = "\ | ||
| 34 | --enable-run-as-root \ | ||
| 35 | --enable-xvideo \ | ||
| 36 | --disable-screen --disable-caca \ | ||
| 37 | --enable-vlm \ | ||
| 38 | --enable-freetype \ | ||
| 39 | --enable-tremor \ | ||
| 40 | --enable-v4l2 --disable-aa --disable-faad \ | ||
| 41 | --enable-dbus \ | ||
| 42 | --without-contrib \ | ||
| 43 | --without-kde-solid \ | ||
| 44 | --enable-realrtsp \ | ||
| 45 | --enable-avcodec \ | ||
| 46 | --disable-opencv \ | ||
| 47 | --disable-freerdp \ | ||
| 48 | ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/moc \ | ||
| 49 | ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/rcc \ | ||
| 50 | ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/uic \ | ||
| 51 | " | ||
| 52 | |||
| 53 | PACKAGECONFIG ?= " \ | ||
| 54 | live555 dc1394 dv1394 notify fontconfig fluidsynth freetype dvdread png \ | ||
| 55 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ | ||
| 56 | x264 \ | ||
| 57 | " | ||
| 58 | |||
| 59 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'qmake5_paths', '', d)} | ||
| 60 | |||
| 61 | PACKAGECONFIG[mmal] = "--enable-omxil --enable-omxil-vout --enable-rpi-omxil --enable-mmal,,userland" | ||
| 62 | PACKAGECONFIG[x264] = "--enable-x264,--disable-x264,x264" | ||
| 63 | PACKAGECONFIG[fluidsynth] = ",,fluidsynth" | ||
| 64 | PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad" | ||
| 65 | PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52" | ||
| 66 | PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack" | ||
| 67 | PACKAGECONFIG[live555] = "--enable-live555 LIVE555_PREFIX=${STAGING_DIR_HOST}${prefix},--disable-live555,live555" | ||
| 68 | PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass" | ||
| 69 | PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc,libpostproc" | ||
| 70 | PACKAGECONFIG[libva] = "--enable-libva,--disable-libva,libva" | ||
| 71 | PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex" | ||
| 72 | PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" | ||
| 73 | PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx" | ||
| 74 | PACKAGECONFIG[qt5] = "--enable-qt,--disable-qt, qtbase-native qtx11extras qtsvg" | ||
| 75 | PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi" | ||
| 76 | PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba" | ||
| 77 | PACKAGECONFIG[upnp] = "--enable-upnp,--disable-upnp,libupnp" | ||
| 78 | PACKAGECONFIG[dvdnav] = "--enable-dvdnav,--disable-dvdnav,libdvdnav libdvdcss" | ||
| 79 | PACKAGECONFIG[sftp] = "--enable-sftp,--disable-sftp,libssh2" | ||
| 80 | PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis libogg" | ||
| 81 | PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libvorbis libogg" | ||
| 82 | PACKAGECONFIG[dc1394] = "--enable-dc1394,--disable-dc1394,libdc1394" | ||
| 83 | PACKAGECONFIG[dv1394] = "--enable-dv1394,--disable-dv1394,libraw1394 libavc1394" | ||
| 84 | PACKAGECONFIG[svg] = "--enable-svg,--disable-svg,librsvg" | ||
| 85 | PACKAGECONFIG[svgdec] = "--enable-svgdec,--disable-svgdec,librsvg cairo" | ||
| 86 | PACKAGECONFIG[notify] = "--enable-notify,--disable-notify, libnotify gtk+3" | ||
| 87 | PACKAGECONFIG[fontconfig] = "--enable-fontconfig,--disable-fontconfig, fontconfig" | ||
| 88 | PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype, freetype" | ||
| 89 | PACKAGECONFIG[dvdread] = "--enable-dvdread,--disable-dvdread, libdvdread libdvdcss" | ||
| 90 | PACKAGECONFIG[vnc] = "--enable-vnc,--disable-vnc, libvncserver" | ||
| 91 | PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb, xcb-util-keysyms libxpm libxinerama" | ||
| 92 | PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng" | ||
| 93 | PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau" | ||
| 94 | PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland wayland-native wayland-protocols" | ||
| 95 | |||
| 96 | do_configure:prepend() { | ||
| 97 | # use wayland-scanner from native sysroot instead of build host | ||
| 98 | sed -i 's,\(WAYLAND_SCANNER=\).*,\1${STAGING_BINDIR_NATIVE}/wayland-scanner,' configure.ac | ||
| 99 | } | ||
| 100 | |||
| 101 | do_configure:append() { | ||
| 102 | # moc needs support: precreate build paths | ||
| 103 | for qtpath in adapters components/epg components/playlist components/sout dialogs managers styles util/buttons; do | ||
| 104 | mkdir -p "${B}/modules/gui/qt/$qtpath" | ||
| 105 | done | ||
| 106 | sed -i -e 's|${WORKDIR}||g' ${B}/config.h | ||
| 107 | } | ||
| 108 | |||
| 109 | # This recipe packages vlc as a library as well, so qt4 dependencies | ||
| 110 | # can be avoided when only the library is installed. | ||
| 111 | PACKAGES =+ "libvlc" | ||
| 112 | |||
| 113 | LEAD_SONAME_libvlc = "libvlc.so.5" | ||
| 114 | FILES:libvlc = "${libdir}/lib*.so.*" | ||
| 115 | |||
| 116 | FILES:${PN} += "\ | ||
| 117 | ${bindir}/vlc \ | ||
| 118 | ${libdir}/vlc/vlc/libvlc_vdpau.so \ | ||
| 119 | ${datadir}/applications \ | ||
| 120 | ${datadir}/vlc/ \ | ||
| 121 | ${datadir}/icons \ | ||
| 122 | ${datadir}/metainfo/org.videolan.vlc.appdata.xml \ | ||
| 123 | " | ||
| 124 | |||
| 125 | FILES:${PN}-dbg += "\ | ||
| 126 | ${libdir}/vlc/*/.debug \ | ||
| 127 | ${libdir}/vlc/plugins/*/.debug \ | ||
| 128 | " | ||
| 129 | |||
| 130 | FILES:${PN}-staticdev += "\ | ||
| 131 | ${libdir}/vlc/plugins/*/*.a \ | ||
| 132 | " | ||
| 133 | |||
| 134 | INSANE_SKIP:${PN} = "dev-so" | ||
| 135 | |||
| 136 | EXCLUDE_FROM_WORLD = "${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "0", "1", d)}" | ||
| 137 | |||
| 138 | CVE_STATUS[CVE-2026-26227] = "not-applicable-platform: the vulnerability is Android-specific" | ||
| 139 | CVE_STATUS[CVE-2026-26228] = "not-applicable-platform: the vulnerability is Android-specific" | ||
