blob: d25a20ae014bc0cc76e1e896f991b950b6c91503 [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
Patrick Williams03514f12024-04-05 07:04:11 -050019SRC_URI = "https://get.videolan.org/${BPN}/${PV}/${BP}.tar.xz \
Andrew Geissler9aee5002022-03-30 16:27:02 +000020 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 \
Patrick Williams03514f12024-04-05 07:04:11 -050026 file://taglib-2.patch \
27 file://0001-taglib-Fix-build-on-x86-32-bit.patch \
Andrew Geissler9aee5002022-03-30 16:27:02 +000028"
Patrick Williams03514f12024-04-05 07:04:11 -050029SRC_URI[sha256sum] = "adc7285b4d2721cddf40eb5270cada2aaa10a334cb546fd55a06353447ba29b5"
Andrew Geissler9aee5002022-03-30 16:27:02 +000030
31inherit autotools-brokensep features_check gettext pkgconfig mime-xdg
32
33REQUIRED_DISTRO_FEATURES = "x11"
34
35export BUILDCC = "${BUILD_CC}"
36EXTRA_OECONF = "\
37 --enable-run-as-root \
38 --enable-xvideo \
39 --disable-screen --disable-caca \
40 --enable-vlm \
41 --enable-freetype \
42 --enable-tremor \
43 --enable-v4l2 --disable-aa --disable-faad \
44 --enable-dbus \
45 --without-contrib \
46 --without-kde-solid \
47 --enable-realrtsp \
48 --disable-libtar \
49 --enable-avcodec \
50 ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/moc \
51 ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/rcc \
52 ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/uic \
53"
54
55PACKAGECONFIG ?= " \
56 live555 dc1394 dv1394 notify fontconfig fluidsynth freetype dvdread png \
57 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
58 x264 \
59"
60
61inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'qmake5_paths', '', d)}
62
63PACKAGECONFIG[mmal] = "--enable-omxil --enable-omxil-vout --enable-rpi-omxil --enable-mmal,,userland"
64PACKAGECONFIG[x264] = "--enable-x264,--disable-x264,x264"
65PACKAGECONFIG[fluidsynth] = ",,fluidsynth"
66PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad"
67PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52"
68PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack"
69PACKAGECONFIG[live555] = "--enable-live555 LIVE555_PREFIX=${STAGING_DIR_HOST}${prefix},--disable-live555,live555"
70PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass"
71PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc,libpostproc"
72PACKAGECONFIG[libva] = "--enable-libva,--disable-libva,libva"
73PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv"
74PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex"
75PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad"
76PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx"
77PACKAGECONFIG[qt5] = "--enable-qt,--disable-qt, qtbase-native qtx11extras qtsvg"
78PACKAGECONFIG[freerdp] = "--enable-freerdp,--disable-freerdp, freerdp"
79PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi"
80PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba"
81PACKAGECONFIG[upnp] = "--enable-upnp,--disable-upnp,libupnp"
82PACKAGECONFIG[dvdnav] = "--enable-dvdnav,--disable-dvdnav,libdvdnav libdvdcss"
83PACKAGECONFIG[sftp] = "--enable-sftp,--disable-sftp,libssh2"
84PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis libogg"
85PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libvorbis libogg"
86PACKAGECONFIG[dc1394] = "--enable-dc1394,--disable-dc1394,libdc1394"
87PACKAGECONFIG[dv1394] = "--enable-dv1394,--disable-dv1394,libraw1394 libavc1394"
88PACKAGECONFIG[svg] = "--enable-svg,--disable-svg,librsvg"
89PACKAGECONFIG[svgdec] = "--enable-svgdec,--disable-svgdec,librsvg cairo"
90PACKAGECONFIG[notify] = "--enable-notify,--disable-notify, libnotify gtk+3"
91PACKAGECONFIG[fontconfig] = "--enable-fontconfig,--disable-fontconfig, fontconfig"
92PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype, freetype"
93PACKAGECONFIG[dvdread] = "--enable-dvdread,--disable-dvdread, libdvdread libdvdcss"
94PACKAGECONFIG[vnc] = "--enable-vnc,--disable-vnc, libvncserver"
95PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb, xcb-util-keysyms libxpm libxinerama"
96PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng"
97PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
98PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland wayland-native"
99
100do_configure:append() {
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
Patrick Williamse760df82023-05-26 11:10:49 -0500105 sed -i -e 's|${WORKDIR}||g' ${B}/config.h
Andrew Geissler9aee5002022-03-30 16:27:02 +0000106}
107
108# This recipe packages vlc as a library as well, so qt4 dependencies
109# can be avoided when only the library is installed.
110PACKAGES =+ "libvlc"
111
112LEAD_SONAME_libvlc = "libvlc.so.5"
113FILES:libvlc = "${libdir}/lib*.so.*"
114
115FILES:${PN} += "\
116 ${bindir}/vlc \
117 ${libdir}/vlc/vlc/libvlc_vdpau.so \
118 ${datadir}/applications \
119 ${datadir}/vlc/ \
120 ${datadir}/icons \
121 ${datadir}/metainfo/vlc.appdata.xml \
122"
123
124FILES:${PN}-dbg += "\
125 ${libdir}/vlc/*/.debug \
126 ${libdir}/vlc/plugins/*/.debug \
127"
128
129FILES:${PN}-staticdev += "\
130 ${libdir}/vlc/plugins/*/*.a \
131"
132
133INSANE_SKIP:${PN} = "dev-so"
134
135EXCLUDE_FROM_WORLD = "${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "0", "1", d)}"