blob: 087baab87e4660b1bfce7ae1a2daf704a2da7d3f [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
8DEPENDS = "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
16SRC_URI = "http://download.videolan.org/pub/videolan/${BPN}/${PV}/${BP}.tar.xz"
17
18inherit autotools gettext pkgconfig distro_features_check
19
20ARM_INSTRUCTION_SET = "arm"
21
22EXTRA_OECONF = "\
23 --enable-run-as-root \
Patrick Williamsddad1a12017-02-23 20:36:32 -060024 --enable-xvideo \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050025 --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 Bishop7f28bc52017-12-03 23:42:40 -050040PACKAGECONFIG ?= " 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 -050041PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad"
42PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl libsdl-image "
43PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52"
44PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack"
45PACKAGECONFIG[live555] = "--enable-live555,--disable-live555,live555"
46PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass"
47PACKAGECONFIG[mkv] = "--enable-mkv,--disable-mkv,libmatroska libebml"
48PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc,libpostproc"
49PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv"
50PACKAGECONFIG[libva] = "--enable-libva --enable-avcodec,--disable-libva --disable-avcodec,libva libav"
51PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex"
52PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gst-plugins-bad"
53PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx"
54PACKAGECONFIG[qt4] = "--enable-qt,--disable-qt, qt4-x11-free"
55PACKAGECONFIG[freerdp] = "--enable-freerdp,--disable-freerdp, freerdp"
56PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi"
57PACKAGECONFIG[gnome-vfs] = "--enable-gnomevfs,--disable-gnomevfs, gnome-vfs"
58PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba"
59PACKAGECONFIG[upnp] = "--enable-upnp,--disable-upnp,libupnp"
60PACKAGECONFIG[dvdnav] = "--enable-dvdnav,--disable-dvdnav,libdvdnav libdvdcss"
61PACKAGECONFIG[sftp] = "--enable-sftp,--disable-sftp,libssh2"
62PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis libogg"
63PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libvorbis libogg"
64PACKAGECONFIG[dc1394] = "--enable-dc1394,--disable-dc1394,libdc1394"
65PACKAGECONFIG[dv1394] = "--enable-dv1394,--disable-dv1394,libraw1394 libavc1394"
66PACKAGECONFIG[svg] = "--enable-svg,--disable-svg,librsvg"
67PACKAGECONFIG[svgdec] = "--enable-svgdec,--disable-svgdec,librsvg cairo"
68PACKAGECONFIG[notify] = "--enable-notify,--disable-notify, libnotify gtk+"
69PACKAGECONFIG[fontconfig] = "--enable-fontconfig,--disable-fontconfig, fontconfig"
70PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype, freetype"
71PACKAGECONFIG[dvdread] = "--enable-dvdread,--disable-dvdread, libdvdread libdvdcss"
72PACKAGECONFIG[vnc] = "--enable-vnc,--disable-vnc, libvncserver"
73PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb, xcb-util-keysyms libxpm libxinerama"
74PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng"
Brad Bishop7f28bc52017-12-03 23:42:40 -050075PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050076
77do_configure_prepend() {
78 cp ${STAGING_DATADIR}/libtool/config.* ${S}/autotools/ || true
79}
80
81do_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.
88PACKAGES =+ "libvlc"
89
90LEAD_SONAME_libvlc = "libvlc.so.5"
91FILES_libvlc = "${libdir}/lib*.so.*"
92
93FILES_${PN} += "\
94 ${bindir}/vlc \
95 ${datadir}/applications \
96 ${datadir}/vlc/ \
97 ${datadir}/icons \
Brad Bishop7f28bc52017-12-03 23:42:40 -050098 ${lindir}/vlc/vlc/libvlc_vdpau.so \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050099"
100
101FILES_${PN}-dbg += "\
102 ${libdir}/vlc/*/.debug \
103 ${libdir}/vlc/plugins/*/.debug \
104"
105
106FILES_${PN}-staticdev += "\
107 ${libdir}/vlc/plugins/*/*.a \
108"
Brad Bishop7f28bc52017-12-03 23:42:40 -0500109
110INSANE_SKIP_${PN} = "dev-so"
111