blob: 19ac8206c60a56f357fae105dcb48064ffa0bcaa [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 Bishop19323692019-04-05 15:28:33 -04008DEPENDS = "coreutils-native 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"
Brad Bishop19323692019-04-05 15:28:33 -040024export BUILDCC = "${BUILD_CC}"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050025EXTRA_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 \
Brad Bishop19323692019-04-05 15:28:33 -040029 --enable-vlm \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050030 --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 Bishop19323692019-04-05 15:28:33 -040038 --enable-avcodec \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050039 ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}/moc4 \
40 ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}/rcc4 \
41 ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}/uic4 \
42"
43
Brad Bishop19323692019-04-05 15:28:33 -040044PACKAGECONFIG ?= " live555 dc1394 dv1394 notify fontconfig freetype dvdread png ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
45
Patrick Williamsb48b7b42016-08-17 15:04:38 -050046PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050047PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52"
48PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack"
49PACKAGECONFIG[live555] = "--enable-live555,--disable-live555,live555"
50PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050051PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc,libpostproc"
Brad Bishop19323692019-04-05 15:28:33 -040052PACKAGECONFIG[libva] = "--enable-libva,--disable-libva,libva"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050053PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050054PACKAGECONFIG[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() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050084 sed -i -e s:'${top_builddir_slash}libtool':'${top_builddir_slash}'${TARGET_SYS}-libtool:g ${B}/doltlibtool
85}
86
87# This recipe packages vlc as a library as well, so qt4 dependencies
88# can be avoided when only the library is installed.
89PACKAGES =+ "libvlc"
90
91LEAD_SONAME_libvlc = "libvlc.so.5"
92FILES_libvlc = "${libdir}/lib*.so.*"
93
94FILES_${PN} += "\
95 ${bindir}/vlc \
Brad Bishop19323692019-04-05 15:28:33 -040096 ${libdir}/vlc/vlc/libvlc_vdpau.so \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050097 ${datadir}/applications \
98 ${datadir}/vlc/ \
99 ${datadir}/icons \
Brad Bishop19323692019-04-05 15:28:33 -0400100 ${datadir}/metainfo/vlc.appdata.xml \
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