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 | |
| 8 | DEPENDS = "libfribidi libtool libgcrypt libgcrypt-native \ |
| 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 | |
| 16 | SRC_URI = "http://download.videolan.org/pub/videolan/${BPN}/${PV}/${BP}.tar.xz" |
| 17 | |
| 18 | inherit autotools gettext pkgconfig distro_features_check |
| 19 | |
| 20 | ARM_INSTRUCTION_SET = "arm" |
| 21 | |
| 22 | EXTRA_OECONF = "\ |
| 23 | --enable-run-as-root \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 24 | --enable-xvideo \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 25 | --disable-screen --disable-caca \ |
| 26 | --enable-httpd --enable-vlm \ |
| 27 | --enable-freetype \ |
| 28 | --enable-tremor \ |
| 29 | --enable-v4l2 --disable-aa --disable-faad \ |
| 30 | --enable-dbus \ |
| 31 | --without-contrib \ |
| 32 | --without-kde-solid \ |
| 33 | --enable-realrtsp \ |
| 34 | --disable-libtar \ |
| 35 | ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}/moc4 \ |
| 36 | ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}/rcc4 \ |
| 37 | ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}/uic4 \ |
| 38 | " |
| 39 | |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 40 | 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] | 41 | PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad" |
| 42 | PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl libsdl-image " |
| 43 | PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52" |
| 44 | PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack" |
| 45 | PACKAGECONFIG[live555] = "--enable-live555,--disable-live555,live555" |
| 46 | PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass" |
| 47 | PACKAGECONFIG[mkv] = "--enable-mkv,--disable-mkv,libmatroska libebml" |
| 48 | PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc,libpostproc" |
| 49 | PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv" |
| 50 | PACKAGECONFIG[libva] = "--enable-libva --enable-avcodec,--disable-libva --disable-avcodec,libva libav" |
| 51 | PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex" |
| 52 | PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gst-plugins-bad" |
| 53 | PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx" |
| 54 | PACKAGECONFIG[qt4] = "--enable-qt,--disable-qt, qt4-x11-free" |
| 55 | PACKAGECONFIG[freerdp] = "--enable-freerdp,--disable-freerdp, freerdp" |
| 56 | PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi" |
| 57 | PACKAGECONFIG[gnome-vfs] = "--enable-gnomevfs,--disable-gnomevfs, gnome-vfs" |
| 58 | PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba" |
| 59 | PACKAGECONFIG[upnp] = "--enable-upnp,--disable-upnp,libupnp" |
| 60 | PACKAGECONFIG[dvdnav] = "--enable-dvdnav,--disable-dvdnav,libdvdnav libdvdcss" |
| 61 | PACKAGECONFIG[sftp] = "--enable-sftp,--disable-sftp,libssh2" |
| 62 | PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis libogg" |
| 63 | PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libvorbis libogg" |
| 64 | PACKAGECONFIG[dc1394] = "--enable-dc1394,--disable-dc1394,libdc1394" |
| 65 | PACKAGECONFIG[dv1394] = "--enable-dv1394,--disable-dv1394,libraw1394 libavc1394" |
| 66 | PACKAGECONFIG[svg] = "--enable-svg,--disable-svg,librsvg" |
| 67 | PACKAGECONFIG[svgdec] = "--enable-svgdec,--disable-svgdec,librsvg cairo" |
| 68 | PACKAGECONFIG[notify] = "--enable-notify,--disable-notify, libnotify gtk+" |
| 69 | PACKAGECONFIG[fontconfig] = "--enable-fontconfig,--disable-fontconfig, fontconfig" |
| 70 | PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype, freetype" |
| 71 | PACKAGECONFIG[dvdread] = "--enable-dvdread,--disable-dvdread, libdvdread libdvdcss" |
| 72 | PACKAGECONFIG[vnc] = "--enable-vnc,--disable-vnc, libvncserver" |
| 73 | PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb, xcb-util-keysyms libxpm libxinerama" |
| 74 | PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng" |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 75 | PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 76 | |
| 77 | do_configure_prepend() { |
| 78 | cp ${STAGING_DATADIR}/libtool/config.* ${S}/autotools/ || true |
| 79 | } |
| 80 | |
| 81 | do_configure_append() { |
| 82 | sed -i -e s:'$(MOC) $(DEFS) $(CPPFLAGS)':'$(MOC) $(DEFS)'\ -I${B}/include\ -DSYS_LINUX:g ${B}/modules/gui/qt4/Makefile |
| 83 | sed -i -e s:'${top_builddir_slash}libtool':'${top_builddir_slash}'${TARGET_SYS}-libtool:g ${B}/doltlibtool |
| 84 | } |
| 85 | |
| 86 | # This recipe packages vlc as a library as well, so qt4 dependencies |
| 87 | # can be avoided when only the library is installed. |
| 88 | PACKAGES =+ "libvlc" |
| 89 | |
| 90 | LEAD_SONAME_libvlc = "libvlc.so.5" |
| 91 | FILES_libvlc = "${libdir}/lib*.so.*" |
| 92 | |
| 93 | FILES_${PN} += "\ |
| 94 | ${bindir}/vlc \ |
| 95 | ${datadir}/applications \ |
| 96 | ${datadir}/vlc/ \ |
| 97 | ${datadir}/icons \ |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 98 | ${lindir}/vlc/vlc/libvlc_vdpau.so \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 99 | " |
| 100 | |
| 101 | FILES_${PN}-dbg += "\ |
| 102 | ${libdir}/vlc/*/.debug \ |
| 103 | ${libdir}/vlc/plugins/*/.debug \ |
| 104 | " |
| 105 | |
| 106 | FILES_${PN}-staticdev += "\ |
| 107 | ${libdir}/vlc/plugins/*/*.a \ |
| 108 | " |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 109 | |
| 110 | INSANE_SKIP_${PN} = "dev-so" |
| 111 | |