blob: 7308465b1b9a1b09b5511c28d9e65ab74ac8ac56 [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
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 \
Brad Bishopc342db32019-05-15 21:57:59 -040039 ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/moc \
40 ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/rcc \
41 ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/uic \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050042"
43
Brad Bishopc342db32019-05-15 21:57:59 -040044PACKAGECONFIG ?= " \
45 live555 dc1394 dv1394 notify fontconfig freetype dvdread png \
46 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
47"
48
49inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'qmake5_paths', '', d)}
Brad Bishop19323692019-04-05 15:28:33 -040050
Patrick Williamsb48b7b42016-08-17 15:04:38 -050051PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050052PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52"
53PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack"
Brad Bishop0f291cc2019-09-01 15:16:57 -040054PACKAGECONFIG[live555] = "--enable-live555 LIVE555_PREFIX=${STAGING_DIR_HOST}${prefix},--disable-live555,live555"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050055PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050056PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc,libpostproc"
Brad Bishop19323692019-04-05 15:28:33 -040057PACKAGECONFIG[libva] = "--enable-libva,--disable-libva,libva"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050058PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050059PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex"
60PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gst-plugins-bad"
61PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx"
Brad Bishopc342db32019-05-15 21:57:59 -040062PACKAGECONFIG[qt5] = "--enable-qt,--disable-qt, qtbase-native qtx11extras qtsvg"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050063PACKAGECONFIG[freerdp] = "--enable-freerdp,--disable-freerdp, freerdp"
64PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050065PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba"
66PACKAGECONFIG[upnp] = "--enable-upnp,--disable-upnp,libupnp"
67PACKAGECONFIG[dvdnav] = "--enable-dvdnav,--disable-dvdnav,libdvdnav libdvdcss"
68PACKAGECONFIG[sftp] = "--enable-sftp,--disable-sftp,libssh2"
69PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis libogg"
70PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libvorbis libogg"
71PACKAGECONFIG[dc1394] = "--enable-dc1394,--disable-dc1394,libdc1394"
72PACKAGECONFIG[dv1394] = "--enable-dv1394,--disable-dv1394,libraw1394 libavc1394"
73PACKAGECONFIG[svg] = "--enable-svg,--disable-svg,librsvg"
74PACKAGECONFIG[svgdec] = "--enable-svgdec,--disable-svgdec,librsvg cairo"
Brad Bishop26bdd442019-08-16 17:08:17 -040075PACKAGECONFIG[notify] = "--enable-notify,--disable-notify, libnotify gtk+3"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050076PACKAGECONFIG[fontconfig] = "--enable-fontconfig,--disable-fontconfig, fontconfig"
77PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype, freetype"
78PACKAGECONFIG[dvdread] = "--enable-dvdread,--disable-dvdread, libdvdread libdvdcss"
79PACKAGECONFIG[vnc] = "--enable-vnc,--disable-vnc, libvncserver"
80PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb, xcb-util-keysyms libxpm libxinerama"
81PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng"
Brad Bishop7f28bc52017-12-03 23:42:40 -050082PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050083
Patrick Williamsb48b7b42016-08-17 15:04:38 -050084do_configure_append() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050085 sed -i -e s:'${top_builddir_slash}libtool':'${top_builddir_slash}'${TARGET_SYS}-libtool:g ${B}/doltlibtool
Brad Bishopc342db32019-05-15 21:57:59 -040086
87 # moc needs support: precreate build paths
88 for qtpath in adapters components/epg components/playlist components/sout dialogs managers styles util/buttons; do
89 mkdir -p "${B}/modules/gui/qt/$qtpath"
90 done
Patrick Williamsb48b7b42016-08-17 15:04:38 -050091}
92
93# This recipe packages vlc as a library as well, so qt4 dependencies
94# can be avoided when only the library is installed.
95PACKAGES =+ "libvlc"
96
97LEAD_SONAME_libvlc = "libvlc.so.5"
98FILES_libvlc = "${libdir}/lib*.so.*"
99
100FILES_${PN} += "\
101 ${bindir}/vlc \
Brad Bishop19323692019-04-05 15:28:33 -0400102 ${libdir}/vlc/vlc/libvlc_vdpau.so \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500103 ${datadir}/applications \
104 ${datadir}/vlc/ \
105 ${datadir}/icons \
Brad Bishop19323692019-04-05 15:28:33 -0400106 ${datadir}/metainfo/vlc.appdata.xml \
Patrick Williamsb48b7b42016-08-17 15:04:38 -0500107"
108
109FILES_${PN}-dbg += "\
110 ${libdir}/vlc/*/.debug \
111 ${libdir}/vlc/plugins/*/.debug \
112"
113
114FILES_${PN}-staticdev += "\
115 ${libdir}/vlc/plugins/*/*.a \
116"
Brad Bishop7f28bc52017-12-03 23:42:40 -0500117
118INSANE_SKIP_${PN} = "dev-so"
119