blob: 2250774f068811aeff7120d9c64492581c5ed7f2 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001DESCRIPTION = "Video player and streamer - davinci edition"
2HOMEPAGE = "http://www.videolan.org"
3SECTION = "multimedia"
4
5LICENSE = "GPL-2.0-only"
6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
7
8SRC_URI = "\
9 git://git@github.com/RPi-Distro/vlc;protocol=https;branch=buster-rpt \
10 file://0001-configure-fix-linking-on-RISC-V-ISA.patch \
11 file://0002-Revert-configure-Require-libmodplug-0.8.9.patch \
12 file://0003-CVE-2022-41325.patch \
13 file://0004-mmal_20.patch \
14 file://0005-mmal_exit_fix.patch \
15 file://0006-mmal_chain.patch \
16 file://0007-armv6.patch \
Andrew Geissler2daf84b2023-03-31 09:57:23 -050017 file://0008-configure-Disable-incompatible-function-pointer-type.patch \
Patrick Williams2a254922023-08-11 09:48:11 -050018 file://0009-demux-dash-include-cstdint-needed-for-uint64_t.patch \
Andrew Geissler517393d2023-01-13 08:55:19 -060019 file://2001-fix-luaL-checkint.patch \
20 file://2002-use-vorbisidec.patch \
21 file://3001-configure.ac-setup-for-OE-usage.patch \
22 file://3002-fix-EGL-macro-undeclared-and-EGLImageKHR.patch \
23 file://3003-codec-omxil_core-replace-opt-vc-path-with-usr-lib.patch \
24 file://3004-use-GLESv2-headers-over-GL-headers.patch \
25 file://3005-modules-remove-glspectrum-usage.patch \
26 file://3006-codec-omxil_core.h-fix-multiple-definition-of.patch \
27 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', 'file://3007-remove-xorg-related-link-libs.patch', d)} \
28 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '', 'file://3008-vo-Makefile.am-exclude-libgl_plugin.patch', d)} \
29 file://3009-vo-converter_vaapi-Fix-EGL-macro-undeclared.patch \
30 "
31
32SRCREV = "b276eb0d7bc3213363e97dbb681ef7c927be6c73"
33
34S = "${WORKDIR}/git"
35
36PROVIDES = "vlc"
37RPROVIDES:${PN} = "${PROVIDES}"
38DEPENDS = "coreutils-native fribidi libtool libgcrypt libgcrypt-native \
39 dbus libxml2 gnutls tremor faad2 ffmpeg flac alsa-lib libidn \
40 jpeg xz libmodplug mpeg2dec libmtp libopus orc libsamplerate0 \
41 avahi libusb1 schroedinger taglib tiff"
42
43inherit autotools gettext pkgconfig mime-xdg
44
45export BUILDCC = "${BUILD_CC} -std=c11"
46EXTRA_OECONF = "\
47 --enable-run-as-root \
48 --enable-xvideo \
49 --disable-lua \
50 --disable-screen \
51 --disable-caca \
52 --enable-vlm \
53 --enable-tremor \
54 --disable-aa \
55 --disable-faad \
56 --enable-dbus \
57 --without-contrib \
58 --without-kde-solid \
59 --enable-realrtsp \
60 --disable-libtar \
61 --enable-avcodec \
62 --disable-css \
63 "
64
65PACKAGECONFIG ?= "\
66 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
67 ${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'mmal', d)} \
68 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)} \
69 ${@bb.utils.contains_any('DISTRO_FEATURES', 'x11', 'notify', '', d)} \
70 live555 dv1394 fontconfig fluidsynth freetype png udev \
71 x264 alsa harfbuzz jack neon fribidi dvbpsi a52 v4l2 \
72 "
73
74PACKAGECONFIG[mmal] = "--enable-omxil --enable-omxil-vout --enable-rpi-omxil --enable-mmal --enable-mmal-avcodec,,userland"
75PACKAGECONFIG[x264] = "--enable-x264,--disable-x264,x264"
76PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad"
77PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52"
78PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack"
79PACKAGECONFIG[live555] = "--enable-live555 LIVE555_PREFIX=${STAGING_DIR_HOST}${prefix},--disable-live555,live555"
80PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass"
81PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc,libpostproc"
82PACKAGECONFIG[libva] = "--enable-libva,--disable-libva,libva"
83#PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv"
84PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex"
85PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad"
86PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx"
87#PACKAGECONFIG[freerdp] = "--enable-freerdp,--disable-freerdp, freerdp"
88PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi"
89#PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba"
90PACKAGECONFIG[upnp] = "--enable-upnp,--disable-upnp,libupnp"
91PACKAGECONFIG[dvdnav] = "--enable-dvdnav,--disable-dvdnav,libdvdnav libdvdcss"
92PACKAGECONFIG[sftp] = "--enable-sftp,--disable-sftp,libssh2"
93PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis libogg"
94PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libvorbis libogg"
95PACKAGECONFIG[dc1394] = "--enable-dc1394,--disable-dc1394,libdc1394"
96PACKAGECONFIG[dv1394] = "--enable-dv1394,--disable-dv1394,libraw1394 libavc1394"
97PACKAGECONFIG[svg] = "--enable-svg,--disable-svg,librsvg"
98PACKAGECONFIG[svgdec] = "--enable-svgdec,--disable-svgdec,librsvg cairo"
99PACKAGECONFIG[notify] = "--enable-notify,--disable-notify, libnotify gtk+3"
100PACKAGECONFIG[fontconfig] = "--enable-fontconfig,--disable-fontconfig, fontconfig"
101PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype, freetype"
102#PACKAGECONFIG[dvdread] = "--enable-dvdread,--disable-dvdread, libdvdread libdvdcss"
103PACKAGECONFIG[vnc] = "--enable-vnc,--disable-vnc, libvncserver"
104PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb, xcb-util-keysyms libxpm libxinerama"
105PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng"
106#PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
107#PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland wayland-native"
108PACKAGECONFIG[gles2] = "--enable-gles2,--disable-gles2,virtual/libgles2"
109#PACKAGECONFIG[dca] = "--enable-dca,--disable-dca,libdca"
110PACKAGECONFIG[fribidi] = "--enable-fribidi,,fribidi"
111PACKAGECONFIG[gnutls] = "--enable-gnutls,,gnutls"
112PACKAGECONFIG[fluidsynth] = "--enable-fluidsynth,,fluidsynth"
113PACKAGECONFIG[harfbuzz] = "--enable-harfbuzz,--disable-harfbuzz,harfbuzz"
114PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev"
115PACKAGECONFIG[neon] = "--enable-neon,--disable-neon,"
116PACKAGECONFIG[opus] = "--enable-opus,--disable-opus,libopus libogg"
117PACKAGECONFIG[ncurses] = "--enable-ncurses,--disable-ncurses,ncurses"
118PACKAGECONFIG[alsa] = "--enable-alsa,--disable-alsa,alsa-lib"
119PACKAGECONFIG[pulseaudio] = "--enable-pulse,--disable-pulse,pulseaudio"
120PACKAGECONFIG[sdl-image] = "--enable-sdl-image,,libsdl-image"
121PACKAGECONFIG[v4l2] = "--enable-v4l2,,v4l-utils"
122
123TARGET_CFLAGS:append = " -I${STAGING_INCDIR}/drm"
124TARGET_LDFLAGS:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '-lGLESv2', '', d)}"
125
126# Ensures the --enable-mmal-avcodec flag is available for usage
127do_configure:prepend() {
128 olddir=`pwd`
129 cd ${S}
130 ./bootstrap
131 cd $olddir
132}
133
134# This recipe packages vlc as a library as well, so qt4 dependencies
135# can be avoided when only the library is installed.
136PACKAGES =+ "libvlc"
137
138LEAD_SONAME_libvlc = "libvlc.so.5"
139FILES:libvlc = "${libdir}/lib*.so.*"
140
141FILES:${PN} += "\
142 ${bindir}/vlc \
143 ${libdir}/vlc \
144 ${datadir}/applications \
145 ${datadir}/vlc \
146 ${datadir}/icons \
147 ${datadir}/metainfo/vlc.appdata.xml \
148 "
149
150FILES:${PN}-dbg += "\
151 ${libdir}/vlc/*/.debug \
152 ${libdir}/vlc/plugins/*/.debug \
153 "
154
155FILES:${PN}-staticdev += "\
156 ${libdir}/vlc/plugins/*/*.a \
157 ${libdir}/vlc/libcompat.a \
158 "
159
160# Only enable it for rpi class of machines
161COMPATIBLE_HOST = "null"
162COMPATIBLE_HOST:rpi = "(.*)"
163
164INSANE_SKIP:${PN} = "dev-so"