blob: 8142e16510bd2af4fbac1e93e878c8235d4a4303 [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
8DEPENDS = "libfribidi libtool libgcrypt libgcrypt-native \
9 dbus dbus-glib libxml2 gnutls \
10 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
16SRC_URI = "http://download.videolan.org/pub/videolan/${BPN}/${PV}/${BP}.tar.xz"
17
18inherit autotools gettext pkgconfig distro_features_check
19
20ARM_INSTRUCTION_SET = "arm"
21
22EXTRA_OECONF = "\
23 --enable-run-as-root \
24 --enable-xvideo \
25 --disable-screen --disable-caca \
26 --enable-httpd --enable-vlm \
27 --enable-freetype \
28 --enable-tremor \
29 --enable-v4l2 --disable-aa --disable-faad \
30 --enable-dbus \
31 --without-contrib \
32 --without-kde-solid \
33 --enable-realrtsp \
34 --disable-libtar \
35 ac_cv_path_MOC=${STAGING_BINDIR_NATIVE}/moc4 \
36 ac_cv_path_RCC=${STAGING_BINDIR_NATIVE}/rcc4 \
37 ac_cv_path_UIC=${STAGING_BINDIR_NATIVE}/uic4 \
38"
39
40PACKAGECONFIG ?= " live555 dc1394 dv1394 notify fontconfig freetype dvdread png ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 sdl', '', d)}"
41PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad"
42PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl libsdl-image "
43PACKAGECONFIG[a52] = "--enable-a52,--disable-a52,liba52"
44PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack"
45PACKAGECONFIG[live555] = "--enable-live555,--disable-live555,live555"
46PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass"
47PACKAGECONFIG[mkv] = "--enable-mkv,--disable-mkv,libmatroska libebml"
48PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc,libpostproc"
49PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv"
50PACKAGECONFIG[libva] = "--enable-libva --enable-avcodec,--disable-libva --disable-avcodec,libva libav"
51PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex"
52PACKAGECONFIG[gstreamer] = "--enable-gst-decode,--disable-gst-decode,gstreamer1.0 gstreamer1.0-plugins-base gst-plugins-bad"
53PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx, libvpx"
54PACKAGECONFIG[qt4] = "--enable-qt,--disable-qt, qt4-x11-free"
55PACKAGECONFIG[freerdp] = "--enable-freerdp,--disable-freerdp, freerdp"
56PACKAGECONFIG[dvbpsi] = "--enable-dvbpsi,--disable-dvbpsi, libdvbpsi"
57PACKAGECONFIG[gnome-vfs] = "--enable-gnomevfs,--disable-gnomevfs, gnome-vfs"
58PACKAGECONFIG[samba] = "--enable-smbclient,--disable-smbclient, samba"
59PACKAGECONFIG[upnp] = "--enable-upnp,--disable-upnp,libupnp"
60PACKAGECONFIG[dvdnav] = "--enable-dvdnav,--disable-dvdnav,libdvdnav libdvdcss"
61PACKAGECONFIG[sftp] = "--enable-sftp,--disable-sftp,libssh2"
62PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis libogg"
63PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libvorbis libogg"
64PACKAGECONFIG[dc1394] = "--enable-dc1394,--disable-dc1394,libdc1394"
65PACKAGECONFIG[dv1394] = "--enable-dv1394,--disable-dv1394,libraw1394 libavc1394"
66PACKAGECONFIG[svg] = "--enable-svg,--disable-svg,librsvg"
67PACKAGECONFIG[svgdec] = "--enable-svgdec,--disable-svgdec,librsvg cairo"
68PACKAGECONFIG[notify] = "--enable-notify,--disable-notify, libnotify gtk+"
69PACKAGECONFIG[fontconfig] = "--enable-fontconfig,--disable-fontconfig, fontconfig"
70PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype, freetype"
71PACKAGECONFIG[dvdread] = "--enable-dvdread,--disable-dvdread, libdvdread libdvdcss"
72PACKAGECONFIG[vnc] = "--enable-vnc,--disable-vnc, libvncserver"
73PACKAGECONFIG[x11] = "--with-x --enable-xcb,--without-x --disable-xcb, xcb-util-keysyms libxpm libxinerama"
74PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng"
75
76do_configure_prepend() {
77 cp ${STAGING_DATADIR}/libtool/config.* ${S}/autotools/ || true
78}
79
80do_configure_append() {
81 sed -i -e s:'$(MOC) $(DEFS) $(CPPFLAGS)':'$(MOC) $(DEFS)'\ -I${B}/include\ -DSYS_LINUX:g ${B}/modules/gui/qt4/Makefile
82 sed -i -e s:'${top_builddir_slash}libtool':'${top_builddir_slash}'${TARGET_SYS}-libtool:g ${B}/doltlibtool
83}
84
85# This recipe packages vlc as a library as well, so qt4 dependencies
86# can be avoided when only the library is installed.
87PACKAGES =+ "libvlc"
88
89LEAD_SONAME_libvlc = "libvlc.so.5"
90FILES_libvlc = "${libdir}/lib*.so.*"
91
92FILES_${PN} += "\
93 ${bindir}/vlc \
94 ${datadir}/applications \
95 ${datadir}/vlc/ \
96 ${datadir}/icons \
97"
98
99FILES_${PN}-dbg += "\
100 ${libdir}/vlc/*/.debug \
101 ${libdir}/vlc/plugins/*/.debug \
102"
103
104FILES_${PN}-staticdev += "\
105 ${libdir}/vlc/plugins/*/*.a \
106"