diff options
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.bb | 127 |
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 @@ | |||
| 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 = "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 | |||
| 16 | LDFLAGS_append_riscv64 = " -latomic" | ||
| 17 | |||
| 18 | # While this item does not require it, it depends on ffmpeg which does | ||
| 19 | LICENSE_FLAGS = "commercial" | ||
| 20 | |||
| 21 | SRC_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 | " | ||
| 26 | SRC_URI[sha256sum] = "a9bdad293d81cd48516abad8d490d8ab4012964ae541ff19e00021e071e47601" | ||
| 27 | |||
| 28 | inherit autotools gettext pkgconfig features_check mime-xdg | ||
| 29 | |||
| 30 | ARM_INSTRUCTION_SET = "arm" | ||
| 31 | export BUILDCC = "${BUILD_CC}" | ||
| 32 | EXTRA_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 | |||
| 51 | PACKAGECONFIG ?= " \ | ||
| 52 | live555 dc1394 dv1394 notify fontconfig freetype dvdread png \ | ||
| 53 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ | ||
| 54 | " | ||
| 55 | |||
| 56 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'qmake5_paths', '', d)} | ||
| 57 | |||
| 58 | PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad" | ||
| 59 | PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52" | ||
| 60 | PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack" | ||
| 61 | PACKAGECONFIG[live555] = "--enable-live555 LIVE555_PREFIX=${STAGING_DIR_HOST}${prefix},--disable-live555,live555" | ||
| 62 | PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass" | ||
| 63 | PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc,libpostproc" | ||
| 64 | PACKAGECONFIG[libva] = "--enable-libva,--disable-libva,libva" | ||
| 65 | PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv" | ||
| 66 | PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex" | ||
| 67 | PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" | ||
| 68 | PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx" | ||
| 69 | PACKAGECONFIG[qt5] = "--enable-qt,--disable-qt, qtbase-native qtx11extras qtsvg" | ||
| 70 | PACKAGECONFIG[freerdp] = "--enable-freerdp,--disable-freerdp, freerdp" | ||
| 71 | PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi" | ||
| 72 | PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba" | ||
| 73 | PACKAGECONFIG[upnp] = "--enable-upnp,--disable-upnp,libupnp" | ||
| 74 | PACKAGECONFIG[dvdnav] = "--enable-dvdnav,--disable-dvdnav,libdvdnav libdvdcss" | ||
| 75 | PACKAGECONFIG[sftp] = "--enable-sftp,--disable-sftp,libssh2" | ||
| 76 | PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis libogg" | ||
| 77 | PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libvorbis libogg" | ||
| 78 | PACKAGECONFIG[dc1394] = "--enable-dc1394,--disable-dc1394,libdc1394" | ||
| 79 | PACKAGECONFIG[dv1394] = "--enable-dv1394,--disable-dv1394,libraw1394 libavc1394" | ||
| 80 | PACKAGECONFIG[svg] = "--enable-svg,--disable-svg,librsvg" | ||
| 81 | PACKAGECONFIG[svgdec] = "--enable-svgdec,--disable-svgdec,librsvg cairo" | ||
| 82 | PACKAGECONFIG[notify] = "--enable-notify,--disable-notify, libnotify gtk+3" | ||
| 83 | PACKAGECONFIG[fontconfig] = "--enable-fontconfig,--disable-fontconfig, fontconfig" | ||
| 84 | PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype, freetype" | ||
| 85 | PACKAGECONFIG[dvdread] = "--enable-dvdread,--disable-dvdread, libdvdread libdvdcss" | ||
| 86 | PACKAGECONFIG[vnc] = "--enable-vnc,--disable-vnc, libvncserver" | ||
| 87 | PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb, xcb-util-keysyms libxpm libxinerama" | ||
| 88 | PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng" | ||
| 89 | PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau" | ||
| 90 | PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland wayland-native" | ||
| 91 | |||
| 92 | do_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. | ||
| 103 | PACKAGES =+ "libvlc" | ||
| 104 | |||
| 105 | LEAD_SONAME_libvlc = "libvlc.so.5" | ||
| 106 | FILES_libvlc = "${libdir}/lib*.so.*" | ||
| 107 | |||
| 108 | FILES_${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 | |||
| 117 | FILES_${PN}-dbg += "\ | ||
| 118 | ${libdir}/vlc/*/.debug \ | ||
| 119 | ${libdir}/vlc/plugins/*/.debug \ | ||
| 120 | " | ||
| 121 | |||
| 122 | FILES_${PN}-staticdev += "\ | ||
| 123 | ${libdir}/vlc/plugins/*/*.a \ | ||
| 124 | " | ||
| 125 | |||
| 126 | INSANE_SKIP_${PN} = "dev-so" | ||
| 127 | |||
