Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 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 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 8 | DEPENDS = "coreutils-native fribidi libtool libgcrypt libgcrypt-native \ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 9 | dbus libxml2 gnutls \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 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 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 16 | # While this item does not require it, it depends on ffmpeg which does |
| 17 | LICENSE_FLAGS = "commercial" |
| 18 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 19 | SRC_URI = "http://download.videolan.org/pub/videolan/${BPN}/${PV}/${BP}.tar.xz" |
| 20 | |
| 21 | inherit autotools gettext pkgconfig distro_features_check |
| 22 | |
| 23 | ARM_INSTRUCTION_SET = "arm" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 24 | export BUILDCC = "${BUILD_CC}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 25 | EXTRA_OECONF = "\ |
| 26 | --enable-run-as-root \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 27 | --enable-xvideo \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 28 | --disable-screen --disable-caca \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 29 | --enable-vlm \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 30 | --enable-freetype \ |
| 31 | --enable-tremor \ |
| 32 | --enable-v4l2 --disable-aa --disable-faad \ |
| 33 | --enable-dbus \ |
| 34 | --without-contrib \ |
| 35 | --without-kde-solid \ |
| 36 | --enable-realrtsp \ |
| 37 | --disable-libtar \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 38 | --enable-avcodec \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 39 | ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/moc \ |
| 40 | ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/rcc \ |
| 41 | ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/uic \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 42 | " |
| 43 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 44 | PACKAGECONFIG ?= " \ |
| 45 | live555 dc1394 dv1394 notify fontconfig freetype dvdread png \ |
| 46 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ |
| 47 | " |
| 48 | |
| 49 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'qmake5_paths', '', d)} |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 50 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 51 | PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 52 | PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52" |
| 53 | PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack" |
Brad Bishop | 0f291cc | 2019-09-01 15:16:57 -0400 | [diff] [blame] | 54 | PACKAGECONFIG[live555] = "--enable-live555 LIVE555_PREFIX=${STAGING_DIR_HOST}${prefix},--disable-live555,live555" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 55 | PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 56 | PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc,libpostproc" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 57 | PACKAGECONFIG[libva] = "--enable-libva,--disable-libva,libva" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 58 | PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 59 | PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex" |
| 60 | PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gst-plugins-bad" |
| 61 | PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 62 | PACKAGECONFIG[qt5] = "--enable-qt,--disable-qt, qtbase-native qtx11extras qtsvg" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 63 | PACKAGECONFIG[freerdp] = "--enable-freerdp,--disable-freerdp, freerdp" |
| 64 | PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 65 | PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba" |
| 66 | PACKAGECONFIG[upnp] = "--enable-upnp,--disable-upnp,libupnp" |
| 67 | PACKAGECONFIG[dvdnav] = "--enable-dvdnav,--disable-dvdnav,libdvdnav libdvdcss" |
| 68 | PACKAGECONFIG[sftp] = "--enable-sftp,--disable-sftp,libssh2" |
| 69 | PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis libogg" |
| 70 | PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libvorbis libogg" |
| 71 | PACKAGECONFIG[dc1394] = "--enable-dc1394,--disable-dc1394,libdc1394" |
| 72 | PACKAGECONFIG[dv1394] = "--enable-dv1394,--disable-dv1394,libraw1394 libavc1394" |
| 73 | PACKAGECONFIG[svg] = "--enable-svg,--disable-svg,librsvg" |
| 74 | PACKAGECONFIG[svgdec] = "--enable-svgdec,--disable-svgdec,librsvg cairo" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 75 | PACKAGECONFIG[notify] = "--enable-notify,--disable-notify, libnotify gtk+3" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 76 | PACKAGECONFIG[fontconfig] = "--enable-fontconfig,--disable-fontconfig, fontconfig" |
| 77 | PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype, freetype" |
| 78 | PACKAGECONFIG[dvdread] = "--enable-dvdread,--disable-dvdread, libdvdread libdvdcss" |
| 79 | PACKAGECONFIG[vnc] = "--enable-vnc,--disable-vnc, libvncserver" |
| 80 | PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb, xcb-util-keysyms libxpm libxinerama" |
| 81 | PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng" |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 82 | PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 83 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 84 | do_configure_append() { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 85 | sed -i -e s:'${top_builddir_slash}libtool':'${top_builddir_slash}'${TARGET_SYS}-libtool:g ${B}/doltlibtool |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 86 | |
| 87 | # moc needs support: precreate build paths |
| 88 | for qtpath in adapters components/epg components/playlist components/sout dialogs managers styles util/buttons; do |
| 89 | mkdir -p "${B}/modules/gui/qt/$qtpath" |
| 90 | done |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 91 | } |
| 92 | |
| 93 | # This recipe packages vlc as a library as well, so qt4 dependencies |
| 94 | # can be avoided when only the library is installed. |
| 95 | PACKAGES =+ "libvlc" |
| 96 | |
| 97 | LEAD_SONAME_libvlc = "libvlc.so.5" |
| 98 | FILES_libvlc = "${libdir}/lib*.so.*" |
| 99 | |
| 100 | FILES_${PN} += "\ |
| 101 | ${bindir}/vlc \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 102 | ${libdir}/vlc/vlc/libvlc_vdpau.so \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 103 | ${datadir}/applications \ |
| 104 | ${datadir}/vlc/ \ |
| 105 | ${datadir}/icons \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 106 | ${datadir}/metainfo/vlc.appdata.xml \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 107 | " |
| 108 | |
| 109 | FILES_${PN}-dbg += "\ |
| 110 | ${libdir}/vlc/*/.debug \ |
| 111 | ${libdir}/vlc/plugins/*/.debug \ |
| 112 | " |
| 113 | |
| 114 | FILES_${PN}-staticdev += "\ |
| 115 | ${libdir}/vlc/plugins/*/*.a \ |
| 116 | " |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 117 | |
| 118 | INSANE_SKIP_${PN} = "dev-so" |
| 119 | |