blob: fa7174d3241a4d8a85315e5b5505dc16dc97ed69 [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 \
Brad Bishop26bdd442019-08-16 17:08:17 -04009 dbus libxml2 gnutls \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050010 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
Brad Bishop93c3acf2019-10-29 09:48:15 -040019SRC_URI = "http://download.videolan.org/pub/videolan/${BPN}/${PV}/${BP}.tar.xz \
20 file://0006-make-opencv-configurable.patch \
21 file://0007-use-vorbisidec.patch \
22 file://0008-fix-luaL-checkint.patch \
23"
24SRC_URI[md5sum] = "744442ec0c145453ea1d257914c8072e"
25SRC_URI[sha256sum] = "e0149ef4a20a19b9ecd87309c2d27787ee3f47dfd47c6639644bc1f6fd95bdf6"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050026
Brad Bishop8410d612019-11-25 09:40:59 -050027inherit autotools gettext pkgconfig features_check
Patrick Williamsb48b7b42016-08-17 15:04:38 -050028
29ARM_INSTRUCTION_SET = "arm"
Brad Bishop19323692019-04-05 15:28:33 -040030export BUILDCC = "${BUILD_CC}"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050031EXTRA_OECONF = "\
32 --enable-run-as-root \
Patrick Williamsddad1a12017-02-23 20:36:32 -060033 --enable-xvideo \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050034 --disable-screen --disable-caca \
Brad Bishop19323692019-04-05 15:28:33 -040035 --enable-vlm \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050036 --enable-freetype \
37 --enable-tremor \
38 --enable-v4l2 --disable-aa --disable-faad \
39 --enable-dbus \
40 --without-contrib \
41 --without-kde-solid \
42 --enable-realrtsp \
43 --disable-libtar \
Brad Bishop19323692019-04-05 15:28:33 -040044 --enable-avcodec \
Brad Bishopc342db32019-05-15 21:57:59 -040045 ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/moc \
46 ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/rcc \
47 ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/uic \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050048"
49
Brad Bishopc342db32019-05-15 21:57:59 -040050PACKAGECONFIG ?= " \
51 live555 dc1394 dv1394 notify fontconfig freetype dvdread png \
52 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
53"
54
55inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'qmake5_paths', '', d)}
Brad Bishop19323692019-04-05 15:28:33 -040056
Patrick Williamsb48b7b42016-08-17 15:04:38 -050057PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050058PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52"
59PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack"
Brad Bishop0f291cc2019-09-01 15:16:57 -040060PACKAGECONFIG[live555] = "--enable-live555 LIVE555_PREFIX=${STAGING_DIR_HOST}${prefix},--disable-live555,live555"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050061PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050062PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc,libpostproc"
Brad Bishop19323692019-04-05 15:28:33 -040063PACKAGECONFIG[libva] = "--enable-libva,--disable-libva,libva"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050064PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050065PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex"
66PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gst-plugins-bad"
67PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx"
Brad Bishopc342db32019-05-15 21:57:59 -040068PACKAGECONFIG[qt5] = "--enable-qt,--disable-qt, qtbase-native qtx11extras qtsvg"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050069PACKAGECONFIG[freerdp] = "--enable-freerdp,--disable-freerdp, freerdp"
70PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050071PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba"
72PACKAGECONFIG[upnp] = "--enable-upnp,--disable-upnp,libupnp"
73PACKAGECONFIG[dvdnav] = "--enable-dvdnav,--disable-dvdnav,libdvdnav libdvdcss"
74PACKAGECONFIG[sftp] = "--enable-sftp,--disable-sftp,libssh2"
75PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis libogg"
76PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libvorbis libogg"
77PACKAGECONFIG[dc1394] = "--enable-dc1394,--disable-dc1394,libdc1394"
78PACKAGECONFIG[dv1394] = "--enable-dv1394,--disable-dv1394,libraw1394 libavc1394"
79PACKAGECONFIG[svg] = "--enable-svg,--disable-svg,librsvg"
80PACKAGECONFIG[svgdec] = "--enable-svgdec,--disable-svgdec,librsvg cairo"
Brad Bishop26bdd442019-08-16 17:08:17 -040081PACKAGECONFIG[notify] = "--enable-notify,--disable-notify, libnotify gtk+3"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050082PACKAGECONFIG[fontconfig] = "--enable-fontconfig,--disable-fontconfig, fontconfig"
83PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype, freetype"
84PACKAGECONFIG[dvdread] = "--enable-dvdread,--disable-dvdread, libdvdread libdvdcss"
85PACKAGECONFIG[vnc] = "--enable-vnc,--disable-vnc, libvncserver"
86PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb, xcb-util-keysyms libxpm libxinerama"
87PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng"
Brad Bishop7f28bc52017-12-03 23:42:40 -050088PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050089
Patrick Williamsb48b7b42016-08-17 15:04:38 -050090do_configure_append() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050091 sed -i -e s:'${top_builddir_slash}libtool':'${top_builddir_slash}'${TARGET_SYS}-libtool:g ${B}/doltlibtool
Brad Bishopc342db32019-05-15 21:57:59 -040092
93 # moc needs support: precreate build paths
94 for qtpath in adapters components/epg components/playlist components/sout dialogs managers styles util/buttons; do
95 mkdir -p "${B}/modules/gui/qt/$qtpath"
96 done
Patrick Williamsb48b7b42016-08-17 15:04:38 -050097}
98
99# This recipe packages vlc as a library as well, so qt4 dependencies
100# can be avoided when only the library is installed.
101PACKAGES =+ "libvlc"
102
103LEAD_SONAME_libvlc = "libvlc.so.5"
104FILES_libvlc = "${libdir}/lib*.so.*"
105
106FILES_${PN} += "\
107 ${bindir}/vlc \
Brad Bishop19323692019-04-05 15:28:33 -0400108 ${libdir}/vlc/vlc/libvlc_vdpau.so \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500109 ${datadir}/applications \
110 ${datadir}/vlc/ \
111 ${datadir}/icons \
Brad Bishop19323692019-04-05 15:28:33 -0400112 ${datadir}/metainfo/vlc.appdata.xml \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500113"
114
115FILES_${PN}-dbg += "\
116 ${libdir}/vlc/*/.debug \
117 ${libdir}/vlc/plugins/*/.debug \
118"
119
120FILES_${PN}-staticdev += "\
121 ${libdir}/vlc/plugins/*/*.a \
122"
Brad Bishop7f28bc52017-12-03 23:42:40 -0500123
124INSANE_SKIP_${PN} = "dev-so"
125