blob: dd6eceae5186a3338333556c7355ff5ec5bce8a6 [file] [log] [blame]
Andrew Geissler9aee5002022-03-30 16:27:02 +00001DESCRIPTION = "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
8DEPENDS = "coreutils-native fribidi libtool libgcrypt libgcrypt-native bison-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
16LDFLAGS:append:riscv64 = " -latomic"
17LDFLAGS:append:riscv32 = " -latomic"
18
19SRC_URI = "git://github.com/videolan/vlc.git;protocol=https;branch=3.0.x \
20 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 Geisslerfc113ea2023-03-31 09:59:46 -050024 file://0005-ioctl-does-not-have-same-signature-between-glibc-and.patch \
25 file://0006-configure-Disable-incompatible-function-pointer-type.patch \
Andrew Geissler9aee5002022-03-30 16:27:02 +000026"
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050027SRCREV = "e9eceaed4d838dbd84638bfb2e4bdd08294163b1"
Andrew Geissler9aee5002022-03-30 16:27:02 +000028S = "${WORKDIR}/git"
29
30inherit autotools-brokensep features_check gettext pkgconfig mime-xdg
31
32REQUIRED_DISTRO_FEATURES = "x11"
33
34export BUILDCC = "${BUILD_CC}"
35EXTRA_OECONF = "\
36 --enable-run-as-root \
37 --enable-xvideo \
38 --disable-screen --disable-caca \
39 --enable-vlm \
40 --enable-freetype \
41 --enable-tremor \
42 --enable-v4l2 --disable-aa --disable-faad \
43 --enable-dbus \
44 --without-contrib \
45 --without-kde-solid \
46 --enable-realrtsp \
47 --disable-libtar \
48 --enable-avcodec \
49 ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/moc \
50 ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/rcc \
51 ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/uic \
52"
53
54PACKAGECONFIG ?= " \
55 live555 dc1394 dv1394 notify fontconfig fluidsynth freetype dvdread png \
56 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
57 x264 \
58"
59
60inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'qmake5_paths', '', d)}
61
62PACKAGECONFIG[mmal] = "--enable-omxil --enable-omxil-vout --enable-rpi-omxil --enable-mmal,,userland"
63PACKAGECONFIG[x264] = "--enable-x264,--disable-x264,x264"
64PACKAGECONFIG[fluidsynth] = ",,fluidsynth"
65PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad"
66PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52"
67PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack"
68PACKAGECONFIG[live555] = "--enable-live555 LIVE555_PREFIX=${STAGING_DIR_HOST}${prefix},--disable-live555,live555"
69PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass"
70PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc,libpostproc"
71PACKAGECONFIG[libva] = "--enable-libva,--disable-libva,libva"
72PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv"
73PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex"
74PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad"
75PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx"
76PACKAGECONFIG[qt5] = "--enable-qt,--disable-qt, qtbase-native qtx11extras qtsvg"
77PACKAGECONFIG[freerdp] = "--enable-freerdp,--disable-freerdp, freerdp"
78PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi"
79PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba"
80PACKAGECONFIG[upnp] = "--enable-upnp,--disable-upnp,libupnp"
81PACKAGECONFIG[dvdnav] = "--enable-dvdnav,--disable-dvdnav,libdvdnav libdvdcss"
82PACKAGECONFIG[sftp] = "--enable-sftp,--disable-sftp,libssh2"
83PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis libogg"
84PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libvorbis libogg"
85PACKAGECONFIG[dc1394] = "--enable-dc1394,--disable-dc1394,libdc1394"
86PACKAGECONFIG[dv1394] = "--enable-dv1394,--disable-dv1394,libraw1394 libavc1394"
87PACKAGECONFIG[svg] = "--enable-svg,--disable-svg,librsvg"
88PACKAGECONFIG[svgdec] = "--enable-svgdec,--disable-svgdec,librsvg cairo"
89PACKAGECONFIG[notify] = "--enable-notify,--disable-notify, libnotify gtk+3"
90PACKAGECONFIG[fontconfig] = "--enable-fontconfig,--disable-fontconfig, fontconfig"
91PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype, freetype"
92PACKAGECONFIG[dvdread] = "--enable-dvdread,--disable-dvdread, libdvdread libdvdcss"
93PACKAGECONFIG[vnc] = "--enable-vnc,--disable-vnc, libvncserver"
94PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb, xcb-util-keysyms libxpm libxinerama"
95PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng"
96PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
97PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland wayland-native"
98
99do_configure:append() {
100 # moc needs support: precreate build paths
101 for qtpath in adapters components/epg components/playlist components/sout dialogs managers styles util/buttons; do
102 mkdir -p "${B}/modules/gui/qt/$qtpath"
103 done
104}
105
106# This recipe packages vlc as a library as well, so qt4 dependencies
107# can be avoided when only the library is installed.
108PACKAGES =+ "libvlc"
109
110LEAD_SONAME_libvlc = "libvlc.so.5"
111FILES:libvlc = "${libdir}/lib*.so.*"
112
113FILES:${PN} += "\
114 ${bindir}/vlc \
115 ${libdir}/vlc/vlc/libvlc_vdpau.so \
116 ${datadir}/applications \
117 ${datadir}/vlc/ \
118 ${datadir}/icons \
119 ${datadir}/metainfo/vlc.appdata.xml \
120"
121
122FILES:${PN}-dbg += "\
123 ${libdir}/vlc/*/.debug \
124 ${libdir}/vlc/plugins/*/.debug \
125"
126
127FILES:${PN}-staticdev += "\
128 ${libdir}/vlc/plugins/*/*.a \
129"
130
131INSANE_SKIP:${PN} = "dev-so"
132
133EXCLUDE_FROM_WORLD = "${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "0", "1", d)}"