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 | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 8 | DEPENDS = "fribidi libtool libgcrypt libgcrypt-native \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 9 | dbus dbus-glib 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 | |
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" |
| 24 | |
| 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 \ |
| 29 | --enable-httpd --enable-vlm \ |
| 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 \ |
| 38 | ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}/moc4 \ |
| 39 | ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}/rcc4 \ |
| 40 | ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}/uic4 \ |
| 41 | " |
| 42 | |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 43 | PACKAGECONFIG ?= " live555 dc1394 dv1394 notify fontconfig freetype dvdread png ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 sdl vdpau', '', d)}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 44 | PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad" |
| 45 | PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl libsdl-image " |
| 46 | PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52" |
| 47 | PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack" |
| 48 | PACKAGECONFIG[live555] = "--enable-live555,--disable-live555,live555" |
| 49 | PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass" |
| 50 | PACKAGECONFIG[mkv] = "--enable-mkv,--disable-mkv,libmatroska libebml" |
| 51 | PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc,libpostproc" |
| 52 | PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv" |
| 53 | PACKAGECONFIG[libva] = "--enable-libva --enable-avcodec,--disable-libva --disable-avcodec,libva libav" |
| 54 | PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex" |
| 55 | PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gst-plugins-bad" |
| 56 | PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx" |
| 57 | PACKAGECONFIG[qt4] = "--enable-qt,--disable-qt, qt4-x11-free" |
| 58 | PACKAGECONFIG[freerdp] = "--enable-freerdp,--disable-freerdp, freerdp" |
| 59 | PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 60 | PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba" |
| 61 | PACKAGECONFIG[upnp] = "--enable-upnp,--disable-upnp,libupnp" |
| 62 | PACKAGECONFIG[dvdnav] = "--enable-dvdnav,--disable-dvdnav,libdvdnav libdvdcss" |
| 63 | PACKAGECONFIG[sftp] = "--enable-sftp,--disable-sftp,libssh2" |
| 64 | PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis libogg" |
| 65 | PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libvorbis libogg" |
| 66 | PACKAGECONFIG[dc1394] = "--enable-dc1394,--disable-dc1394,libdc1394" |
| 67 | PACKAGECONFIG[dv1394] = "--enable-dv1394,--disable-dv1394,libraw1394 libavc1394" |
| 68 | PACKAGECONFIG[svg] = "--enable-svg,--disable-svg,librsvg" |
| 69 | PACKAGECONFIG[svgdec] = "--enable-svgdec,--disable-svgdec,librsvg cairo" |
| 70 | PACKAGECONFIG[notify] = "--enable-notify,--disable-notify, libnotify gtk+" |
| 71 | PACKAGECONFIG[fontconfig] = "--enable-fontconfig,--disable-fontconfig, fontconfig" |
| 72 | PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype, freetype" |
| 73 | PACKAGECONFIG[dvdread] = "--enable-dvdread,--disable-dvdread, libdvdread libdvdcss" |
| 74 | PACKAGECONFIG[vnc] = "--enable-vnc,--disable-vnc, libvncserver" |
| 75 | PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb, xcb-util-keysyms libxpm libxinerama" |
| 76 | PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng" |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 77 | PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 78 | |
| 79 | do_configure_prepend() { |
| 80 | cp ${STAGING_DATADIR}/libtool/config.* ${S}/autotools/ || true |
| 81 | } |
| 82 | |
| 83 | do_configure_append() { |
| 84 | sed -i -e s:'$(MOC) $(DEFS) $(CPPFLAGS)':'$(MOC) $(DEFS)'\ -I${B}/include\ -DSYS_LINUX:g ${B}/modules/gui/qt4/Makefile |
| 85 | sed -i -e s:'${top_builddir_slash}libtool':'${top_builddir_slash}'${TARGET_SYS}-libtool:g ${B}/doltlibtool |
| 86 | } |
| 87 | |
| 88 | # This recipe packages vlc as a library as well, so qt4 dependencies |
| 89 | # can be avoided when only the library is installed. |
| 90 | PACKAGES =+ "libvlc" |
| 91 | |
| 92 | LEAD_SONAME_libvlc = "libvlc.so.5" |
| 93 | FILES_libvlc = "${libdir}/lib*.so.*" |
| 94 | |
| 95 | FILES_${PN} += "\ |
| 96 | ${bindir}/vlc \ |
| 97 | ${datadir}/applications \ |
| 98 | ${datadir}/vlc/ \ |
| 99 | ${datadir}/icons \ |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 100 | ${lindir}/vlc/vlc/libvlc_vdpau.so \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 101 | " |
| 102 | |
| 103 | FILES_${PN}-dbg += "\ |
| 104 | ${libdir}/vlc/*/.debug \ |
| 105 | ${libdir}/vlc/plugins/*/.debug \ |
| 106 | " |
| 107 | |
| 108 | FILES_${PN}-staticdev += "\ |
| 109 | ${libdir}/vlc/plugins/*/*.a \ |
| 110 | " |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 111 | |
| 112 | INSANE_SKIP_${PN} = "dev-so" |
| 113 | |