blob: f13c0ead6e788496986a5fa5ca1f288c488ea033 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001DESCRIPTION = "Video player and streamer - davinci edition"
2HOMEPAGE = "http://www.videolan.org"
3SECTION = "multimedia"
4
5LICENSE = "GPL-2.0"
6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
7
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08008DEPENDS = "fribidi libtool libgcrypt libgcrypt-native \
Patrick Williamsb48b7b42016-08-17 15:04:38 -05009 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 Bishopd7bf8c12018-02-25 22:55:05 -050016# While this item does not require it, it depends on ffmpeg which does
17LICENSE_FLAGS = "commercial"
18
Patrick Williamsb48b7b42016-08-17 15:04:38 -050019SRC_URI = "http://download.videolan.org/pub/videolan/${BPN}/${PV}/${BP}.tar.xz"
20
21inherit autotools gettext pkgconfig distro_features_check
22
23ARM_INSTRUCTION_SET = "arm"
24
25EXTRA_OECONF = "\
26 --enable-run-as-root \
Patrick Williamsddad1a12017-02-23 20:36:32 -060027 --enable-xvideo \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050028 --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 Bishop7f28bc52017-12-03 23:42:40 -050043PACKAGECONFIG ?= " live555 dc1394 dv1394 notify fontconfig freetype dvdread png ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 sdl vdpau', '', d)}"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050044PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad"
45PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl libsdl-image "
46PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52"
47PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack"
48PACKAGECONFIG[live555] = "--enable-live555,--disable-live555,live555"
49PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass"
50PACKAGECONFIG[mkv] = "--enable-mkv,--disable-mkv,libmatroska libebml"
51PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc,libpostproc"
52PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv"
53PACKAGECONFIG[libva] = "--enable-libva --enable-avcodec,--disable-libva --disable-avcodec,libva libav"
54PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex"
55PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gst-plugins-bad"
56PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx"
57PACKAGECONFIG[qt4] = "--enable-qt,--disable-qt, qt4-x11-free"
58PACKAGECONFIG[freerdp] = "--enable-freerdp,--disable-freerdp, freerdp"
59PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050060PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba"
61PACKAGECONFIG[upnp] = "--enable-upnp,--disable-upnp,libupnp"
62PACKAGECONFIG[dvdnav] = "--enable-dvdnav,--disable-dvdnav,libdvdnav libdvdcss"
63PACKAGECONFIG[sftp] = "--enable-sftp,--disable-sftp,libssh2"
64PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis libogg"
65PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libvorbis libogg"
66PACKAGECONFIG[dc1394] = "--enable-dc1394,--disable-dc1394,libdc1394"
67PACKAGECONFIG[dv1394] = "--enable-dv1394,--disable-dv1394,libraw1394 libavc1394"
68PACKAGECONFIG[svg] = "--enable-svg,--disable-svg,librsvg"
69PACKAGECONFIG[svgdec] = "--enable-svgdec,--disable-svgdec,librsvg cairo"
70PACKAGECONFIG[notify] = "--enable-notify,--disable-notify, libnotify gtk+"
71PACKAGECONFIG[fontconfig] = "--enable-fontconfig,--disable-fontconfig, fontconfig"
72PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype, freetype"
73PACKAGECONFIG[dvdread] = "--enable-dvdread,--disable-dvdread, libdvdread libdvdcss"
74PACKAGECONFIG[vnc] = "--enable-vnc,--disable-vnc, libvncserver"
75PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb, xcb-util-keysyms libxpm libxinerama"
76PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng"
Brad Bishop7f28bc52017-12-03 23:42:40 -050077PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050078
79do_configure_prepend() {
80 cp ${STAGING_DATADIR}/libtool/config.* ${S}/autotools/ || true
81}
82
83do_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.
90PACKAGES =+ "libvlc"
91
92LEAD_SONAME_libvlc = "libvlc.so.5"
93FILES_libvlc = "${libdir}/lib*.so.*"
94
95FILES_${PN} += "\
96 ${bindir}/vlc \
97 ${datadir}/applications \
98 ${datadir}/vlc/ \
99 ${datadir}/icons \
Brad Bishop7f28bc52017-12-03 23:42:40 -0500100 ${lindir}/vlc/vlc/libvlc_vdpau.so \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500101"
102
103FILES_${PN}-dbg += "\
104 ${libdir}/vlc/*/.debug \
105 ${libdir}/vlc/plugins/*/.debug \
106"
107
108FILES_${PN}-staticdev += "\
109 ${libdir}/vlc/plugins/*/*.a \
110"
Brad Bishop7f28bc52017-12-03 23:42:40 -0500111
112INSANE_SKIP_${PN} = "dev-so"
113