omxplayer: make samba support configureable

* samba depends on libpam and it might be useful to disable support
  for it in DISTROs without pam in DISTRO_FEATURES
* disable it by default

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Martin Jansa 2018-01-31 16:54:59 +00:00 committed by Andrei Gherzan
parent ea35d07b5b
commit 073f1e845e

View File

@ -7,7 +7,7 @@ SECTION = "console/utils"
LICENSE = "GPLv2" LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
DEPENDS = "libpcre libav virtual/egl boost freetype dbus openssl samba libssh libomxil coreutils-native curl-native" DEPENDS = "libpcre libav virtual/egl boost freetype dbus openssl libssh libomxil coreutils-native curl-native"
PR = "r4" PR = "r4"
SRCREV_default = "b8ff59dccd9307f10dad71bec2525a95bd6c603b" SRCREV_default = "b8ff59dccd9307f10dad71bec2525a95bd6c603b"
@ -40,6 +40,11 @@ COMPATIBLE_MACHINE_rpi = "(.*)"
inherit autotools-brokensep pkgconfig inherit autotools-brokensep pkgconfig
# This isn't used directly by omxplayer, but applied to Makefile.ffmpeg which
# runs the ffmpeg configuration
PACKAGECONFIG ??= ""
PACKAGECONFIG[samba] = "--enable-libsmbclient,--disable-libsmbclient,samba"
# Needed in ffmpeg configure # Needed in ffmpeg configure
export TEMPDIR = "${S}/tmp" export TEMPDIR = "${S}/tmp"
@ -66,6 +71,8 @@ do_compile() {
# Needed for compiler test in ffmpeg's configure # Needed for compiler test in ffmpeg's configure
mkdir -p tmp mkdir -p tmp
sed -i 's/--enable-libsmbclient/${@bb.utils.contains("PACKAGECONFIG", "samba", "--enable-libsmbclient", "--disable-libsmbclient", d)}/g' Makefile.ffmpeg
oe_runmake -f Makefile.ffmpeg oe_runmake -f Makefile.ffmpeg
oe_runmake -f Makefile.ffmpeg install oe_runmake -f Makefile.ffmpeg install
oe_runmake oe_runmake