blob: af256984cb5fae9aadfbf52f115384a66dfddd99 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -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 = "coreutils-native fribidi libtool libgcrypt libgcrypt-native \
9 dbus libxml2 gnutls \
10 tremor faad2 ffmpeg flac alsa-lib \
11 lua-native lua libidn \
12 avahi jpeg xz libmodplug mpeg2dec \
13 libmtp libopus orc libsamplerate0 libusb1 schroedinger taglib \
14 tiff"
15
Patrick Williams213cb262021-08-07 19:21:33 -050016LDFLAGS:append:riscv64 = " -latomic"
17LDFLAGS:append:riscv32 = " -latomic"
Andrew Geissler82c905d2020-04-13 13:39:40 -050018
Andrew Geissler82c905d2020-04-13 13:39:40 -050019SRC_URI = "http://download.videolan.org/pub/videolan/${BPN}/${PV}/${BP}.tar.xz \
Andrew Geissler89770b02020-06-13 10:40:47 -050020 file://0001-make-opencv-configurable.patch \
21 file://0002-use-vorbisidec.patch \
22 file://0003-fix-luaL-checkint.patch \
23 file://0004-Use-packageconfig-to-detect-mmal-support.patch \
Andrew Geisslereef63862021-01-29 15:58:13 -060024 file://0005-linux-thread-Use-SYS_futex-instead-of-__NR_futex.patch \
Andrew Geissler97771a32021-03-05 15:23:11 -060025 file://0001-include-limits-header.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050026"
Andrew Geisslereef63862021-01-29 15:58:13 -060027SRC_URI[sha256sum] = "eff458f38a92126094f44f2263c2bf2c7cdef271b48192d0fe7b1726388cf879"
Andrew Geissler82c905d2020-04-13 13:39:40 -050028
29inherit autotools features_check gettext pkgconfig mime-xdg
30
31REQUIRED_DISTRO_FEATURES = "x11"
32
33export BUILDCC = "${BUILD_CC}"
34EXTRA_OECONF = "\
35 --enable-run-as-root \
36 --enable-xvideo \
37 --disable-screen --disable-caca \
38 --enable-vlm \
39 --enable-freetype \
40 --enable-tremor \
41 --enable-v4l2 --disable-aa --disable-faad \
42 --enable-dbus \
43 --without-contrib \
44 --without-kde-solid \
45 --enable-realrtsp \
46 --disable-libtar \
47 --enable-avcodec \
48 ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/moc \
49 ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/rcc \
50 ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/uic \
51"
52
53PACKAGECONFIG ?= " \
54 live555 dc1394 dv1394 notify fontconfig fluidsynth freetype dvdread png \
55 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
56 x264 \
57"
58
59inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'qmake5_paths', '', d)}
60
61PACKAGECONFIG[mmal] = "--enable-omxil --enable-omxil-vout --enable-rpi-omxil --enable-mmal,,userland"
62PACKAGECONFIG[x264] = "--enable-x264,--disable-x264,x264"
63PACKAGECONFIG[fluidsynth] = ",,fluidsynth"
64PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad"
65PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52"
66PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack"
67PACKAGECONFIG[live555] = "--enable-live555 LIVE555_PREFIX=${STAGING_DIR_HOST}${prefix},--disable-live555,live555"
68PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass"
69PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc,libpostproc"
70PACKAGECONFIG[libva] = "--enable-libva,--disable-libva,libva"
71PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv"
72PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex"
73PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad"
74PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx"
75PACKAGECONFIG[qt5] = "--enable-qt,--disable-qt, qtbase-native qtx11extras qtsvg"
76PACKAGECONFIG[freerdp] = "--enable-freerdp,--disable-freerdp, freerdp"
77PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi"
78PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba"
79PACKAGECONFIG[upnp] = "--enable-upnp,--disable-upnp,libupnp"
80PACKAGECONFIG[dvdnav] = "--enable-dvdnav,--disable-dvdnav,libdvdnav libdvdcss"
81PACKAGECONFIG[sftp] = "--enable-sftp,--disable-sftp,libssh2"
82PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis libogg"
83PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libvorbis libogg"
84PACKAGECONFIG[dc1394] = "--enable-dc1394,--disable-dc1394,libdc1394"
85PACKAGECONFIG[dv1394] = "--enable-dv1394,--disable-dv1394,libraw1394 libavc1394"
86PACKAGECONFIG[svg] = "--enable-svg,--disable-svg,librsvg"
87PACKAGECONFIG[svgdec] = "--enable-svgdec,--disable-svgdec,librsvg cairo"
88PACKAGECONFIG[notify] = "--enable-notify,--disable-notify, libnotify gtk+3"
89PACKAGECONFIG[fontconfig] = "--enable-fontconfig,--disable-fontconfig, fontconfig"
90PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype, freetype"
91PACKAGECONFIG[dvdread] = "--enable-dvdread,--disable-dvdread, libdvdread libdvdcss"
92PACKAGECONFIG[vnc] = "--enable-vnc,--disable-vnc, libvncserver"
93PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb, xcb-util-keysyms libxpm libxinerama"
94PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng"
95PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
96PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland wayland-native"
97
Patrick Williams213cb262021-08-07 19:21:33 -050098do_configure:append() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050099 sed -i -e s:'${top_builddir_slash}libtool':'${top_builddir_slash}'${TARGET_SYS}-libtool:g ${B}/doltlibtool
100
101 # moc needs support: precreate build paths
102 for qtpath in adapters components/epg components/playlist components/sout dialogs managers styles util/buttons; do
103 mkdir -p "${B}/modules/gui/qt/$qtpath"
104 done
105}
106
107# This recipe packages vlc as a library as well, so qt4 dependencies
108# can be avoided when only the library is installed.
109PACKAGES =+ "libvlc"
110
111LEAD_SONAME_libvlc = "libvlc.so.5"
Patrick Williams213cb262021-08-07 19:21:33 -0500112FILES:libvlc = "${libdir}/lib*.so.*"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500113
Patrick Williams213cb262021-08-07 19:21:33 -0500114FILES:${PN} += "\
Andrew Geissler82c905d2020-04-13 13:39:40 -0500115 ${bindir}/vlc \
116 ${libdir}/vlc/vlc/libvlc_vdpau.so \
117 ${datadir}/applications \
118 ${datadir}/vlc/ \
119 ${datadir}/icons \
120 ${datadir}/metainfo/vlc.appdata.xml \
121"
122
Patrick Williams213cb262021-08-07 19:21:33 -0500123FILES:${PN}-dbg += "\
Andrew Geissler82c905d2020-04-13 13:39:40 -0500124 ${libdir}/vlc/*/.debug \
125 ${libdir}/vlc/plugins/*/.debug \
126"
127
Patrick Williams213cb262021-08-07 19:21:33 -0500128FILES:${PN}-staticdev += "\
Andrew Geissler82c905d2020-04-13 13:39:40 -0500129 ${libdir}/vlc/plugins/*/*.a \
130"
131
Patrick Williams213cb262021-08-07 19:21:33 -0500132INSANE_SKIP:${PN} = "dev-so"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500133
Andrew Geissler32b11992021-03-31 13:37:05 -0500134EXCLUDE_FROM_WORLD = "${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", "commercial", "0", "1", d)}"