media-tv/kodi: fork official ebuild to support standalone mode (without X) and odroid-c1/c1+

This commit is contained in:
nemunaire 2017-11-21 07:53:53 +01:00
parent c48c034e12
commit 66adeddb1e
9 changed files with 934 additions and 0 deletions

14
media-tv/kodi/Manifest Normal file
View File

@ -0,0 +1,14 @@
AUX 10-odroid.rules 314 SHA256 23985ab01a7f859b78479adc8f5c17a6174d10aec42c45b1febfefd5067fd416 SHA512 c2cdbe58d8dbe37acc295aef6bd89fdf26b4549d56b8f238ad871917ddcdd9dab8d2f00b907dca16b5d8d4c168342c6967671c66b04b5eb6a790bd04aa0e6af6 WHIRLPOOL 1ea56deff97707b136ee570724fea2278d997acdc05b7ccbe6d74d7d31e50d3928274767b6ff2ea7accc00f035d7be7310cbe5cc42f70d59be87c2e383782762
AUX 10-vchiq-permissions.rules 45 SHA256 16b5ac87a5fedd967428e9654d5487b5a68817a14859983673542257b335dfb0 SHA512 088ab5931eb700d7deb84a53ab986e9dc9772137958b521c5a3746a5f22cacad28aee0b1ded61cc05ff7fcd59a8e71cb095a4ff93ec022033b9a5da41f845912 WHIRLPOOL 501cdcf18157e800c5a81d921eb76bce70d6aa011d794101807a51feb1b2860ed7f0f46936055aa9d42470927c5dd8fb3825b3918309ecfa90d2290e53852808
AUX 60-kodi.rules 507 SHA256 7aa5fcbf160f0241c5763ebb295a878d3290f4a2434c388074fc70312f536ed4 SHA512 63a8847a0a11433d517761e51093e526a9dc2db03281eeefb8ef966fe6cd5c6dbf504de858f9ad70362caba8cef2a0976186bd604e708ef4a6ceb527ee904272 WHIRLPOOL b47abf10f758a8f764c3bbe3e78c22aceeb1bf5b88ffec65830d1fcddb2d76d9252ca25c324477af77f23748c54a1f5fb46ad3ea31ce11008ec1122e3880c8a9
AUX 99-input.rules 47 SHA256 3536f0cf669cd5d64e70047b7ad814e156d0481bcc89e1bfa2a36fa5f4df9a73 SHA512 257bff5d197cb9e50c3abe3aa3d15309f4f3b282eb8091022f6bf0084b3aa9bc4620b8fc6402af494d086b06169c23596cef224006e29baa0e38840e0cb5e07a WHIRLPOOL 918c2e0c4ced8c2572f6be12179bd586193c82bd9b93c13e3ae5cc409f8cfa0109f4c07fc39b8a8f9de87a4870776a9382a2c52cc19c331ce0db9bdc07a52d23
AUX kodi-cmake-no-java.patch 2297 SHA256 571c477b39531c3d924a18f3f404485875fe4e7752d700984cc4140db804fce5 SHA512 9eb7d64694411ce7e47976291fabce96b055c8b4b60bdd7cd37f992d8a3c813de1ef828464e6996124303b015b5c64eccbade10290747180f4ac1fe6a1747d19 WHIRLPOOL 68cceb70ec22cd636586e7bdbe27f1dcd27d689647e7482d15497882a228f3aa73750436926ab3b16008119c9faca65511486fcaa235ce35e566d267f1b63c44
AUX kodi-confd 116 SHA256 420dc83530630c436ba4ee11887edf15921074be96b98a307202d132e9df3b56 SHA512 2ee2c692791960152135c8b9aa6c01a5b5192e2b126377e5d035bdfa426f15fccee70b70f037473ee75def3e58c1010297ea8c368e3b9b61c50caa2c69957a11 WHIRLPOOL 3e8f0aa392bfcc5f12d99429cd2802a7aa92d03c0593ae43f048e92d5879784289d994a0d775f161d992b64aab7a08483e105eaa0db1b320766878bdb6149b50
AUX kodi-initd 544 SHA256 dd764c4aaf37618731221011fdfc002f25faa37ea6193ee147bc7c6ad0e3fd01 SHA512 84eac1256ca4c82851f12d3b9852a9e2e3c5d441e114b702d1a8be1b02bba1c8240ce2aa985fd47f416644b00533a26107a37892bfa90f764213b58141c6d272 WHIRLPOOL e866864a03348fe16d35987382406e0b38f2dacf4dee0487c2225483ed76ae83e3d43f80b4ed8545232ead36d0ba8afe2f0c2f7a7da6657f8e5b4849fb92e27c
DIST ffmpeg-kodi-3.1.11-Krypton-17.5.tar.gz 11188798 SHA256 7df8bce40765b39de5766ca9d08b5b9ac1f498c65c805c989461b907cee6b7c0 SHA512 b28bb6970c6767213f34e5f4f3e48ad5219a6c668a5264ff7de0a42712cb7393f389ddd88f56785a2dc8089f8231ae5fd05adfa10dbf15ea3e0ad7bc2ccd4d73 WHIRLPOOL 34055af438910a82ee7f2571c2bc5515d6988af51b4f5a2e0eb8f183f6a7e9ea3cdc4b16a6d8d166ad52f46d29a9625fbb72e8f47ed95c732482b33393445f7a
DIST kodi-17.6-generated-addons.tar.xz 57564 SHA256 05d6fbc355ba780eabb378f3935e4c6712d03689d77dc2be9e24f30e060d418f SHA512 ee1344e859b2871f9dd3e2f2f75f9c0f9f787ac111a6b9ab8f80af6524a786d51baeb4f247a8c5b35001073be49bf4289d1c63e3114625143f3747aa9b1f4be2 WHIRLPOOL 28d77591807d95427bb30a3706e7c944d106dc680613c185e4b352bd66d00add731dc557d58e7aa544a166b22104bc64c7a4f7e53239d4b530ba6bf03e45bb0b
DIST kodi-17.6.tar.gz 58275293 SHA256 c8312fe92e5bab1cdac1da93d60baed88fa1574146c50c44e3c86d01671c2b1d SHA512 1f1ba91e6129ab423f9ad47b63d7bb75775dbf18638a96413a572aaa790f4f0d738ca35486513e158a7f55d501f78f08dd9d68aabe2fbb80a729c6091b264111 WHIRLPOOL f3e9b4590db40caaa6b3afad0e4d2e134004915b16716a44ddd08530236d2caba22836203f1591cd3f50055fc61538d3789453786c01793691598f53cd3287f6
DIST libdvdcss-2f12236bc1c92f73c21e973363f79eb300de603f.tar.gz 95395 SHA256 b6eb2d929ff56cb051152c32010afc5e7cf5fe8c5ae32dca412a2b46b6b57e34 SHA512 12ba7aa653fcb26d5336bf2a8110c924d634cec79f684bbf19dc38ea33f69fb68c22c97f4c09e5ca7c35f95f6c324a6d70ccc2c501a99122a9321cafd33b2cd9 WHIRLPOOL 8570ad8d2b6e629cc1c7e544be2853cab3bb50fd73438cea47c7a0919b251cecf906f7446ef3714c54ee3e636278dc0dabab47f772440624ff49877068b7b50a
DIST libdvdnav-43b5f81f5fe30bceae3b7cecf2b0ca57fc930dac.tar.gz 130603 SHA256 8e3f0563e16df898fe115e1723e3f78dbc953f6e9cf4f04568add215371d9ed2 SHA512 901c6f24afa1d78b6ed78d1ee30daf634ca0bbc0467ef9cc3416bcab4fbc4fda6869ffa051791d85c0b510de748805328627681ef044668a7857299f0035232e WHIRLPOOL 588d060f418f18ef193061ff88260ac7929647b2babde5b78ab73141ffc7f3782ce1254bfee1234ec0da8bb28bc16ede301b4ec1e2d3073b9c6d22cb526f06ca
DIST libdvdread-17d99db97e7b8f23077b342369d3c22a6250affd.tar.gz 124326 SHA256 e7179b2054163652596a56301c9f025515cb08c6d6310b42b897c3ad11c0199b SHA512 e59ae0bfdc62698e407e3d70503c6a7c5e308545c9dae7843e25db3b5b62d9b26256be77ef4e884263add6b4abec3438c324bfd5715f6ca2ce7fa5962d43a6c2 WHIRLPOOL b42130027d201e545fabc27677bd4238d04bcbc5a0e622ca6da396ac340ea94b5c60004557334464a31dac880603dab99e2f189e41d6cddbe9e32728c626085a
EBUILD kodi-17.6.ebuild 10170 SHA256 ae2199095f54c3fba64db43bc0521b127b421b383919eb7008284e045f53a9b5 SHA512 1a62b2f4b6d0692141ff7392d9a84f3884d5c98afed0daf419a9849952c7624db26fe26e83035914067e68ea5d08193c67593a822ea408ca9fec36f47470efd2 WHIRLPOOL 422fc380ff05424908b602cacc1ede2087c85f75c8ad2e6ac2e7bf9be143dea262b3dc67b3d91f995b9d8b5d6a134921a367441db6bebaefd9704cdf0282149d

View File

@ -0,0 +1,8 @@
KERNEL=="mali",SUBSYSTEM=="misc",MODE="0777"
KERNEL=="mali0",SUBSYSTEM=="misc",MODE="0777"
KERNEL=="ump",SUBSYSTEM=="ump",MODE="0777"
KERNEL=="ttySAC0", SYMLINK+="ttyACM99"
KERNEL=="event*", SUBSYSTEM=="input", MODE="0777"
KERNEL=="CEC", MODE="0777"
KERNEL=="amvideo", MODE="0666"
KERNEL=="amstream*", MODE="0666"

View File

@ -0,0 +1,17 @@
polkit.addRule(function(action, subject) {
if (subject.user == "YourUsernameHere") {
polkit.log("action=" + action);
polkit.log("subject=" + subject);
if (action.id.indexOf("org.freedesktop.login1.") == 0) {
return polkit.Result.YES;
}
if (action.id.indexOf("org.freedesktop.udisks.") == 0) {
return polkit.Result.YES;
}
if (action.id.indexOf("org.freedesktop.upower.") == 0) {
return polkit.Result.YES;
}
}
});

View File

@ -0,0 +1 @@
SUBSYSTEM=="input", GROUP="input", MODE="0660"

View File

@ -0,0 +1,56 @@
diff --git a/xbmc/interfaces/swig/CMakeLists.txt b/xbmc/interfaces/swig/CMakeLists.txt
index 6e676159eb..d45a2ecbab 100644
--- a/xbmc/interfaces/swig/CMakeLists.txt
+++ b/xbmc/interfaces/swig/CMakeLists.txt
@@ -1,43 +1,21 @@
function(generate_file file)
- set(classpath ${GROOVY_DIR}/groovy-all-${GROOVY_VER}.jar
- ${GROOVY_DIR}/commons-lang-${COMMONS_VER}.jar
- ${CORE_SOURCE_DIR}/tools/codegenerator
- ${CMAKE_CURRENT_SOURCE_DIR}/../python)
- if(NOT CORE_SYSTEM_NAME STREQUAL windows)
- set(devnull "/dev/null")
- string(REPLACE ";" ":" classpath "${classpath}")
- else()
- set(devnull "nul")
- endif()
-
- set(CPP_FILE ${file}.cpp)
- add_custom_command(OUTPUT ${CPP_FILE}
- COMMAND ${SWIG_EXECUTABLE}
- ARGS -w401 -c++ -o ${file}.xml -xml -I${CORE_SOURCE_DIR}/xbmc -xmllang python ${CMAKE_CURRENT_SOURCE_DIR}/../swig/${file}
- COMMAND ${Java_JAVA_EXECUTABLE}
- ARGS -cp "${classpath}" groovy.ui.GroovyMain ${CORE_SOURCE_DIR}/tools/codegenerator/Generator.groovy ${file}.xml ${CMAKE_CURRENT_SOURCE_DIR}/../python/PythonSwig.cpp.template ${file}.cpp > ${devnull}
- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../swig/${file})
+ set(CPP_FILE ${CORE_SOURCE_DIR}/xbmc/interfaces/python/generated/${file}.cpp)
set(SOURCES ${SOURCES} "${CPP_FILE}" PARENT_SCOPE)
endfunction()
-find_package(Java COMPONENTS Runtime REQUIRED)
find_package(SWIG REQUIRED)
# The generated bindings
-set(INPUTS AddonModuleXbmcaddon.i
- AddonModuleXbmcgui.i
- AddonModuleXbmc.i
- AddonModuleXbmcplugin.i
- AddonModuleXbmcvfs.i
- AddonModuleXbmcwsgi.i)
-
-set(GROOVY_DIR ${CORE_SOURCE_DIR}/tools/codegenerator/groovy)
-set(GROOVY_VER 2.4.4)
-set(COMMONS_VER 2.6)
+set(INPUTS AddonModuleXbmcaddon
+ AddonModuleXbmcgui
+ AddonModuleXbmc
+ AddonModuleXbmcplugin
+ AddonModuleXbmcvfs
+ AddonModuleXbmcwsgi)
foreach(INPUT IN LISTS INPUTS)
generate_file(${INPUT})
- list(APPEND GEN_SRCS ${CMAKE_CURRENT_BINARY_DIR}/${INPUT}.cpp)
+ list(APPEND GEN_SRCS ${CMAKE_CURRENT_BINARY_DIR}/${INPUT}.i.cpp)
endforeach()
add_library(python_binding STATIC ${SOURCES})

View File

@ -0,0 +1,7 @@
#Configuration file for /etc/init.d/kodi
#User to start kodi
KODI_USER=""
#Optional options for kodi
KODI_OPTS=""

View File

@ -0,0 +1,27 @@
#!/sbin/openrc-run
# Distributed under the terms of the GNU General Public License v2
description="Start and stop Kodi"
depend() {
need net
need localmount
need local
}
start() {
ebegin "Starting kodi"
if [ -z "${KODI_USER}" ]; then
eend "No user defined in /etc/conf.d/kodi"
fi
start-stop-daemon --start --background --make-pidfile --pidfile /var/run/kodi.pid -u "${KODI_USER}" --exec /usr/lib/kodi/kodi.bin -- --standalone ${KODI_OPTS}
eend $?
}
stop() {
ebegin "Stopping kodi"
start-stop-daemon --stop --pidfile /var/run/kodi.pid
eend $?
}

View File

@ -0,0 +1,343 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
# Does not work with py3 here
PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE="sqlite"
inherit autotools cmake-utils eutils linux-info pax-utils python-single-r1 versionator
LIBDVDCSS_COMMIT="2f12236bc1c92f73c21e973363f79eb300de603f"
LIBDVDREAD_COMMIT="17d99db97e7b8f23077b342369d3c22a6250affd"
LIBDVDNAV_COMMIT="43b5f81f5fe30bceae3b7cecf2b0ca57fc930dac"
FFMPEG_VERSION="3.1.11"
FFMPEG_KODI_VERSION="17.5"
CODENAME="Krypton"
SRC_URI="https://github.com/xbmc/libdvdcss/archive/${LIBDVDCSS_COMMIT}.tar.gz -> libdvdcss-${LIBDVDCSS_COMMIT}.tar.gz
https://github.com/xbmc/libdvdread/archive/${LIBDVDREAD_COMMIT}.tar.gz -> libdvdread-${LIBDVDREAD_COMMIT}.tar.gz
https://github.com/xbmc/libdvdnav/archive/${LIBDVDNAV_COMMIT}.tar.gz -> libdvdnav-${LIBDVDNAV_COMMIT}.tar.gz
!system-ffmpeg? ( https://github.com/xbmc/FFmpeg/archive/${FFMPEG_VERSION}-${CODENAME}-${FFMPEG_KODI_VERSION}.tar.gz -> ffmpeg-${PN}-${FFMPEG_VERSION}-${CODENAME}-${FFMPEG_KODI_VERSION}.tar.gz )"
DESCRIPTION="Kodi is a free and open source media-player and entertainment hub (build for odroid-C1/C1+)"
HOMEPAGE="https://kodi.tv/ http://kodi.wiki/"
LICENSE="GPL-2"
SLOT="0"
# use flag is called libusb so that it doesn't fool people in thinking that
# it is _required_ for USB support. Otherwise they'll disable udev and
# that's going to be worse.
IUSE="airplay alsa amlibs bluetooth bluray caps cec +css dbus debug dvd gles lcms libressl libusb lirc mysql nfs nonfree +opengl pulseaudio samba sftp systemd +system-ffmpeg test +udev udisks upnp upower vaapi vdpau webserver +X +xslt zeroconf"
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
|| ( gles opengl )
udev? ( !libusb )
udisks? ( dbus )
upower? ( dbus )
"
COMMON_DEPEND="${PYTHON_DEPS}
airplay? (
app-pda/libplist
net-libs/shairplay
)
alsa? ( media-libs/alsa-lib )
bluetooth? ( net-wireless/bluez )
bluray? ( >=media-libs/libbluray-0.7.0 )
caps? ( sys-libs/libcap )
dbus? ( sys-apps/dbus )
dev-db/sqlite
dev-libs/expat
dev-libs/fribidi
cec? ( >=dev-libs/libcec-4.0 )
dev-libs/libpcre[cxx]
dev-libs/libxml2
>=dev-libs/lzo-2.04
dev-libs/tinyxml[stl]
>=dev-libs/yajl-2
dev-python/pillow[${PYTHON_USEDEP}]
dev-libs/libcdio
lcms? ( media-libs/lcms:2 )
libusb? ( virtual/libusb:1 )
media-fonts/corefonts
>=media-fonts/noto-20160531
media-fonts/roboto
media-libs/fontconfig
media-libs/freetype
>=media-libs/libass-0.13.4
>=media-libs/taglib-1.11.1
system-ffmpeg? (
>=media-video/ffmpeg-${FFMPEG_VERSION}:=[encode,openssl,postproc]
<media-video/ffmpeg-3.4
)
mysql? ( virtual/mysql )
>=net-misc/curl-7.51.0
nfs? ( net-fs/libnfs:= )
opengl? ( media-libs/glu )
!libressl? ( >=dev-libs/openssl-1.0.2j:0= )
libressl? ( dev-libs/libressl:0= )
pulseaudio? ( media-sound/pulseaudio )
samba? ( >=net-fs/samba-3.4.6[smbclient(+)] )
sftp? ( net-libs/libssh[sftp] )
sys-libs/zlib
udev? ( virtual/udev )
vaapi? ( x11-libs/libva[opengl] )
vdpau? (
|| ( >=x11-libs/libvdpau-1.1 >=x11-drivers/nvidia-drivers-180.51 )
system-ffmpeg? ( media-video/ffmpeg[vdpau] )
)
webserver? ( >=net-libs/libmicrohttpd-0.9.50[messages] )
X? (
media-libs/mesa[egl]
gles? ( media-libs/mesa[gles2] )
x11-libs/libdrm
x11-libs/libX11
x11-libs/libXrandr
x11-libs/libXrender
)
xslt? ( dev-libs/libxslt )
zeroconf? ( net-dns/avahi[dbus] )
amlibs? ( media-libs/aml-odroidc1 media-libs/odroidc1-mali-fb )
"
RDEPEND="${COMMON_DEPEND}
lirc? (
|| ( app-misc/lirc app-misc/inputlircd )
)
!media-tv/xbmc
udisks? ( sys-fs/udisks:0 )
upower? (
systemd? ( sys-power/upower )
!systemd? (
|| ( sys-power/upower-pm-utils sys-power/upower )
)
)
"
DEPEND="${COMMON_DEPEND}
app-arch/bzip2
app-arch/unzip
app-arch/xz-utils
app-arch/zip
dev-lang/swig
dev-libs/crossguid
dev-util/cmake
dev-util/gperf
media-libs/giflib
>=media-libs/libjpeg-turbo-1.5.1:=
>=media-libs/libpng-1.6.26:0=
test? ( dev-cpp/gtest )
virtual/pkgconfig
x86? ( dev-lang/nasm )
"
case ${PV} in
9999)
EGIT_REPO_URI="https://github.com/xbmc/xbmc.git"
inherit git-r3
# Force java for latest git version to avoid having to hand maintain the
# generated addons package. #488118
DEPEND+="
virtual/jre
"
;;
*)
MY_PV=${PV/_p/_r}
MY_PV=${MY_PV/_alpha/a}
MY_PV=${MY_PV/_beta/b}
MY_PV=${MY_PV/_rc/rc}
MY_P="${PN}-${MY_PV}"
SRC_URI+=" https://github.com/xbmc/xbmc/archive/${MY_PV}-${CODENAME}.tar.gz -> ${MY_P}.tar.gz
!java? ( https://github.com/candrews/gentoo-kodi/raw/master/${MY_P}-generated-addons.tar.xz )"
KEYWORDS="~arm"
IUSE+=" java"
DEPEND+="
java? ( virtual/jre )
"
S=${WORKDIR}/xbmc-${MY_PV}-${CODENAME}
;;
esac
CONFIG_CHECK="~IP_MULTICAST"
ERROR_IP_MULTICAST="
In some cases Kodi needs to access multicast addresses.
Please consider enabling IP_MULTICAST under Networking options.
"
CMAKE_USE_DIR=$S/project/cmake/
pkg_setup() {
check_extra_config
python-single-r1_pkg_setup
}
src_prepare() {
if in_iuse java && use !java; then
eapply "${FILESDIR}"/${PN}-cmake-no-java.patch
fi
cmake-utils_src_prepare
# avoid long delays when powerkit isn't running #348580
sed -i \
-e '/dbus_connection_send_with_reply_and_block/s:-1:3000:' \
xbmc/linux/*.cpp || die
# Prepare tools and libs witch are configured with autotools during compile time
AUTOTOOLS_DIRS=(
"${S}"/lib/cpluff
"${S}"/tools/depends/native/TexturePacker/src
"${S}"/tools/depends/native/JsonSchemaBuilder/src
)
local d
for d in "${AUTOTOOLS_DIRS[@]}" ; do
pushd ${d} >/dev/null || die
AT_NOELIBTOOLIZE="yes" AT_TOPLEVEL_EAUTORECONF="yes" eautoreconf
popd >/dev/null || die
done
elibtoolize
# Prevent autoreconf rerun
sed -e 's/autoreconf -vif/echo "autoreconf already done in src_prepare()"/' -i \
"${S}"/project/cmake/modules/FindCpluff.cmake \
"${S}"/tools/depends/native/TexturePacker/src/autogen.sh \
"${S}"/tools/depends/native/JsonSchemaBuilder/src/autogen.sh \
|| die
}
src_configure() {
local CMAKE_BUILD_TYPE=$(usex debug Debug RelWithDebInfo)
local mycmakeargs=(
-Ddocdir="${EPREFIX}/usr/share/doc/${PF}"
-DENABLE_LDGOLD=OFF # https://bugs.gentoo.org/show_bug.cgi?id=606124
-DENABLE_ALSA=$(usex alsa)
-DENABLE_AML=$(usex amlibs)
-DENABLE_AIRTUNES=$(usex airplay)
-DENABLE_AVAHI=$(usex zeroconf)
-DENABLE_BLUETOOTH=$(usex bluetooth)
-DENABLE_BLURAY=$(usex bluray)
-DENABLE_CCACHE=OFF
-DENABLE_CEC=$(usex cec)
-DENABLE_DBUS=$(usex dbus)
-DENABLE_DVDCSS=$(usex css)
-DENABLE_INTERNAL_CROSSGUID=OFF
-DENABLE_INTERNAL_FFMPEG="$(usex !system-ffmpeg)"
-DENABLE_CAP=$(usex caps)
-DENABLE_LCMS2=$(usex lcms)
-DENABLE_LIRC=$(usex lirc)
-DENABLE_MICROHTTPD=$(usex webserver)
-DENABLE_MYSQLCLIENT=$(usex mysql)
-DENABLE_NFS=$(usex nfs)
-DENABLE_NONFREE=$(usex nonfree)
-DENABLE_OPENGLES=$(usex gles)
-DENABLE_OPENGL=$(usex opengl)
-DENABLE_OPENSSL=ON
-DENABLE_OPTICAL=$(usex dvd)
-DENABLE_PLIST=$(usex airplay)
-DENABLE_PULSEAUDIO=$(usex pulseaudio)
-DENABLE_SMBCLIENT=$(usex samba)
-DENABLE_SSH=$(usex sftp)
-DENABLE_UDEV=$(usex udev)
-DENABLE_UPNP=$(usex upnp)
-DENABLE_VAAPI=$(usex vaapi)
-DENABLE_VDPAU=$(usex vdpau)
-DENABLE_X11=$(usex X)
-DENABLE_XSLT=$(usex xslt)
-Dlibdvdread_URL="${DISTDIR}/libdvdread-${LIBDVDREAD_COMMIT}.tar.gz"
-Dlibdvdnav_URL="${DISTDIR}/libdvdnav-${LIBDVDNAV_COMMIT}.tar.gz"
-Dlibdvdcss_URL="${DISTDIR}/libdvdcss-${LIBDVDCSS_COMMIT}.tar.gz"
)
use libusb && mycmakeargs+=( -DENABLE_LIBUSB=$(usex libusb) )
if use system-ffmpeg; then
mycmakeargs+=( -DWITH_FFMPEG="yes" )
else
mycmakeargs+=( -DFFMPEG_URL="${DISTDIR}/ffmpeg-${PN}-${FFMPEG_VERSION}-${CODENAME}-${FFMPEG_KODI_VERSION}.tar.gz" )
fi
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile all
use test && emake -C "${BUILD_DIR}" kodi-test
}
src_test() {
emake -C "${BUILD_DIR}" test
}
src_install() {
cmake-utils_src_install
pax-mark Em "${ED%/}"/usr/$(get_libdir)/${PN}/${PN}.bin
rm "${ED%/}"/usr/share/doc/*/{LICENSE.GPL,copying.txt}* || die
newicon media/icon48x48.png kodi.png
# Replace bundled fonts with system ones.
rm "${ED%/}"/usr/share/kodi/addons/skin.estouchy/fonts/NotoSans-Regular.ttf || die
dosym ../../../../fonts/noto/NotoSans-Regular.ttf \
usr/share/kodi/addons/skin.estouchy/fonts/NotoSans-Regular.ttf
local f
for f in NotoMono-Regular.ttf NotoSans-Bold.ttf NotoSans-Regular.ttf ; do
rm "${ED%/}"/usr/share/kodi/addons/skin.estuary/fonts/"${f}" || die
dosym ../../../../fonts/noto/"${f}" \
usr/share/kodi/addons/skin.estuary/fonts/"${f}"
done
rm "${ED%/}"/usr/share/kodi/addons/skin.estuary/fonts/Roboto-Thin.ttf || die
dosym ../../../../fonts/roboto/Roboto-Thin.ttf \
usr/share/kodi/addons/skin.estuary/fonts/Roboto-Thin.ttf
python_domodule tools/EventClients/lib/python/xbmcclient.py
python_newscript "tools/EventClients/Clients/Kodi Send/kodi-send.py" kodi-send
# initd-script and config file
newinitd "${FILESDIR}/kodi-initd" kodi
newconfd "${FILESDIR}/kodi-confd" kodi
# polkit rules
if use upower; then
dodir /usr/share/kodi/polkit-configs
insinto /usr/share/kodi/polkit-configs
doins ${FILESDIR}/60-kodi.rules
fi
# udev related stuff
if use udev; then
dodir /etc/udev/rules.d
insinto /etc/udev/rules.d
doins ${FILESDIR}/99-input.rules
if use amlibs; then
doins ${FILESDIR}/10-odroid.rules
fi
fi
}
pkg_postinst() {
if use upower; then
elog "A polkit-rule was installed to /usr/share/kodi/polkit-rules"
elog "If you want to shutdown from the kodi menu, copy it to"
elog "/etc/polkit-1/rules.d/60-kodi.rules"
elog "and replace \"YourUsernameHere\" with the username which is kodi running"
elog ""
fi
if use udev; then
elog "Some udev-rules has installed in \"/usr/share/kodi/udev-configs\"."
elog "Also add your user to the group \"input\" to use a keyboard or mouse in kodi"
elog "Also add your user to the group \"video\" that you can start kodi."
elog ""
fi
elog "An init.d-script called \"kodi\" has been installed."
elog "Edit \"/etc/conf.d/kodi\" and add your username."
elog "Then add the init.d-Script to a runlevel."
elog "\$ rc-update add kodi default"
elog ""
}

View File

@ -0,0 +1,461 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
# Subslot: libavutil major.libavcodec major.libavformat major
# Since FFmpeg ships several libraries, subslot is kind of limited here.
# Most consumers will use those three libraries, if a "less used" library
# changes its soname, consumers will have to be rebuilt the old way
# (preserve-libs).
# If, for example, a package does not link to libavformat and only libavformat
# changes its ABI then this package will be rebuilt needlessly. Hence, such a
# package is free _not_ to := depend on FFmpeg but I would strongly encourage
# doing so since such a case is unlikely.
FFMPEG_SUBSLOT=55.57.57
SCM=""
if [ "${PV#9999}" != "${PV}" ] ; then
SCM="git-r3"
EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git"
fi
inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM}
DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec"
HOMEPAGE="http://ffmpeg.org/"
if [ "${PV#9999}" != "${PV}" ] ; then
SRC_URI=""
elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
SRC_URI="mirror://gentoo/${P}.tar.bz2"
else # Release
SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2"
fi
FFMPEG_REVISION="${PV#*_p}"
SLOT="0/${FFMPEG_SUBSLOT}"
LICENSE="
!gpl? ( LGPL-2.1 )
gpl? ( GPL-2 )
amr? (
gpl? ( GPL-3 )
!gpl? ( LGPL-3 )
)
gmp? (
gpl? ( GPL-3 )
!gpl? ( LGPL-3 )
)
encode? (
amrenc? (
gpl? ( GPL-3 )
!gpl? ( LGPL-3 )
)
)
samba? ( GPL-3 )
"
if [ "${PV#9999}" = "${PV}" ] ; then
KEYWORDS="~amd64 ~hppa ~mips ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
fi
# Options to use as use_enable in the foo[:bar] form.
# This will feed configure with $(use_enable foo bar)
# or $(use_enable foo foo) if no :bar is set.
# foo is added to IUSE.
FFMPEG_FLAG_MAP=(
+bzip2:bzlib cpudetection:runtime-cpudetect debug gcrypt gnutls gmp
+gpl +hardcoded-tables +iconv lzma +network openssl +postproc
samba:libsmbclient sdl:ffplay vaapi vdpau X:xlib xcb:libxcb
xcb:libxcb-shm xcb:libxcb-xfixes +zlib
# libavdevice options
cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal
opengl
# indevs
libv4l:libv4l2 pulseaudio:libpulse
# decoders
amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac
jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm
mmal omx-rpi modplug:libmodplug opus:libopus libilbc librtmp ssh:libssh
schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx
zvbi:libzvbi
# libavfilter options
bs2b:libbs2b chromaprint ebur128:libebur128 flite:libflite frei0r
fribidi:libfribidi fontconfig ladspa libass truetype:libfreetype
rubberband:librubberband zimg:libzimg
# libswresample options
libsoxr
# Threads; we only support pthread for now but ffmpeg supports more
+threads:pthreads
)
# Same as above but for encoders, i.e. they do something only with USE=encode.
FFMPEG_ENCODER_FLAG_MAP=(
amrenc:libvo-amrwbenc mp3:libmp3lame
kvazaar:libkvazaar nvenc:nvenc
openh264:libopenh264 snappy:libsnappy theora:libtheora twolame:libtwolame
wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid
)
IUSE="
alsa doc +encode jack oss pic static-libs test v4l omx-rpi mmal
${FFMPEG_FLAG_MAP[@]%:*}
${FFMPEG_ENCODER_FLAG_MAP[@]%:*}
"
# Strings for CPU features in the useflag[:configure_option] form
# if :configure_option isn't set, it will use 'useflag' as configure option
ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp )
MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu )
PPC_CPU_FEATURES=( altivec )
X86_CPU_FEATURES_RAW=( 3dnow:amd3dnow 3dnowext:amd3dnowext aes:aesni avx:avx avx2:avx2 fma3:fma3 fma4:fma4 mmx:mmx mmxext:mmxext sse:sse sse2:sse2 sse3:sse3 ssse3:ssse3 sse4_1:sse4 sse4_2:sse42 xop:xop )
X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} )
X86_CPU_REQUIRED_USE="
cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
cpu_flags_x86_fma4? ( cpu_flags_x86_avx )
cpu_flags_x86_fma3? ( cpu_flags_x86_avx )
cpu_flags_x86_xop? ( cpu_flags_x86_avx )
cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 )
cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 )
cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 )
cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 )
cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 )
cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 )
cpu_flags_x86_sse2? ( cpu_flags_x86_sse )
cpu_flags_x86_sse? ( cpu_flags_x86_mmxext )
cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx )
cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow )
cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx )
"
IUSE="${IUSE}
${ARM_CPU_FEATURES[@]%:*}
${MIPS_CPU_FEATURES[@]%:*}
${PPC_CPU_FEATURES[@]%:*}
${X86_CPU_FEATURES[@]%:*}
"
CPU_REQUIRED_USE="
${X86_CPU_REQUIRED_USE}
"
# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to
# $(tc-arch).
CPU_FEATURES_MAP="
arm:ARM
arm64:ARM
mips:MIPS
ppc:PPC
ppc64:PPC
x86:X86
amd64:X86
"
FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher )
IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}"
RDEPEND="
alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] )
bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] )
bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] )
bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] )
celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] )
chromaprint? ( >=media-libs/chromaprint-1.2-r1[${MULTILIB_USEDEP}] )
ebur128? ( >=media-libs/libebur128-1.1.0[${MULTILIB_USEDEP}] )
encode? (
amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] )
kvazaar? ( media-libs/kvazaar[${MULTILIB_USEDEP}] )
mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] )
nvenc? ( media-video/nvidia_video_sdk )
openh264? ( >=media-libs/openh264-1.4.0-r1[${MULTILIB_USEDEP}] )
snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] )
theora? (
>=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}]
>=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
)
twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] )
wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] )
webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )
x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] )
x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] )
xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] )
)
fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] )
flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] )
fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
frei0r? ( media-plugins/frei0r-plugins )
fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] )
gcrypt? ( >=dev-libs/libgcrypt-1.6:0=[${MULTILIB_USEDEP}] )
gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] )
gmp? ( >=dev-libs/gmp-6:0=[${MULTILIB_USEDEP}] )
gnutls? ( >=net-libs/gnutls-2.12.23-r6:=[${MULTILIB_USEDEP}] )
gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] )
iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
iec61883? (
>=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}]
>=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
>=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}]
)
ieee1394? (
>=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}]
>=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
)
jack? ( virtual/jack[${MULTILIB_USEDEP}] )
jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] )
libass? ( >=media-libs/libass-0.10.2:=[${MULTILIB_USEDEP}] )
libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] )
libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] )
libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] )
libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
mmal? ( media-libs/raspberrypi-userland )
modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] )
openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] )
opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] )
openssl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] )
pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )
librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] )
rubberband? ( >=media-libs/rubberband-1.8.1-r1[${MULTILIB_USEDEP}] )
samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] )
schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] )
sdl? ( media-libs/libsdl[sound,video,${MULTILIB_USEDEP}] )
speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] )
ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] )
truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] )
vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] )
vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] )
vorbis? (
>=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
>=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
)
vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] )
X? (
>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
>=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
!xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] )
>=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}]
)
xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] )
zimg? ( media-libs/zimg[${MULTILIB_USEDEP}] )
zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] )
!media-video/qt-faststart
postproc? ( !media-libs/libpostproc )
mmal? ( media-libs/raspberrypi-userland )
"
DEPEND="${RDEPEND}
>=sys-devel/make-3.81
doc? ( sys-apps/texinfo )
>=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] )
cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 )
test? ( net-misc/wget sys-devel/bc )
v4l? ( sys-kernel/linux-headers )
"
RDEPEND="${RDEPEND}
abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3
!app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
# Code requiring FFmpeg to be built under gpl license
GPL_REQUIRED_USE="
postproc? ( gpl )
frei0r? ( gpl )
cdio? ( gpl )
samba? ( gpl )
encode? (
x264? ( gpl )
x265? ( gpl )
xvid? ( gpl )
X? ( !xcb? ( gpl ) )
)
"
REQUIRED_USE="
libv4l? ( v4l )
fftools_cws2fws? ( zlib )
test? ( encode )
${GPL_REQUIRED_USE}
${CPU_REQUIRED_USE}"
RESTRICT="
gpl? ( openssl? ( bindist ) fdk? ( bindist ) )
"
S=${WORKDIR}/${P/_/-}
MULTILIB_WRAPPED_HEADERS=(
/usr/include/libavutil/avconfig.h
)
src_prepare() {
if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot
export revision=git-N-${FFMPEG_REVISION}
fi
default
}
multilib_src_configure() {
local myconf=( ${EXTRA_FFMPEG_CONF} )
local ffuse=( "${FFMPEG_FLAG_MAP[@]}" )
use openssl && use gpl && myconf+=( --enable-nonfree )
use samba && myconf+=( --enable-version3 )
use mmal && myconf+=( --enable-mmal --enable-hwaccel=h264_mmal )
use omx-rpi && myconf+=( --enable-omx-rpi )
# Encoders
if use encode ; then
ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" )
# Licensing.
if use amrenc ; then
myconf+=( --enable-version3 )
fi
else
myconf+=( --disable-encoders )
fi
# Indevs
use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 )
for i in alsa oss jack ; do
use ${i} || myconf+=( --disable-indev=${i} )
done
use xcb || ffuse+=( X:x11grab )
# Outdevs
for i in alsa oss sdl ; do
use ${i} || myconf+=( --disable-outdev=${i} )
done
# Decoders
use amr && myconf+=( --enable-version3 )
use gmp && myconf+=( --enable-version3 )
use fdk && use gpl && myconf+=( --enable-nonfree )
for i in "${ffuse[@]#+}" ; do
myconf+=( $(use_enable ${i%:*} ${i#*:}) )
done
# (temporarily) disable non-multilib deps
if ! multilib_is_native_abi; then
for i in frei0r ; do
myconf+=( --disable-${i} )
done
fi
# CPU features
for i in ${CPU_FEATURES_MAP} ; do
if [ "$(tc-arch)" = "${i%:*}" ] ; then
local var="${i#*:}_CPU_FEATURES[@]"
for j in ${!var} ; do
use ${j%:*} || myconf+=( --disable-${j#*:} )
done
fi
done
if use pic ; then
myconf+=( --enable-pic )
# disable asm code if PIC is required
# as the provided asm decidedly is not PIC for x86.
[[ ${ABI} == x86 ]] && myconf+=( --disable-asm )
fi
[[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004
# Try to get cpu type based on CFLAGS.
# Bug #172723
# We need to do this so that features of that CPU will be better used
# If they contain an unknown CPU it will not hurt since ffmpeg's configure
# will just ignore it.
for i in $(get-flag mcpu) $(get-flag march) ; do
[[ ${i} = native ]] && i="host" # bug #273421
myconf+=( --cpu=${i} )
break
done
# LTO support, bug #566282
is-flagq "-flto*" && myconf+=( "--enable-lto" )
# Mandatory configuration
myconf=(
--enable-avfilter
--enable-avresample
--disable-stripping
"${myconf[@]}"
)
# cross compile support
if tc-is-cross-compiler ; then
myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
case ${CHOST} in
*freebsd*)
myconf+=( --target-os=freebsd )
;;
*mingw32*)
myconf+=( --target-os=mingw32 )
;;
*linux*)
myconf+=( --target-os=linux )
;;
esac
fi
# doc
myconf+=(
$(multilib_native_use_enable doc)
$(multilib_native_use_enable doc htmlpages)
$(multilib_native_enable manpages)
)
set -- "${S}/configure" \
--prefix="${EPREFIX}/usr" \
--libdir="${EPREFIX}/usr/$(get_libdir)" \
--shlibdir="${EPREFIX}/usr/$(get_libdir)" \
--docdir="${EPREFIX}/usr/share/doc/${PF}/html" \
--mandir="${EPREFIX}/usr/share/man" \
--enable-shared \
--cc="$(tc-getCC)" \
--cxx="$(tc-getCXX)" \
--ar="$(tc-getAR)" \
--optflags="${CFLAGS}" \
$(use_enable static-libs static) \
"${myconf[@]}"
echo "${@}"
"${@}" || die
}
multilib_src_compile() {
emake V=1
if multilib_is_native_abi; then
for i in "${FFTOOLS[@]}" ; do
if use fftools_${i} ; then
emake V=1 tools/${i}
fi
done
fi
}
multilib_src_install() {
emake V=1 DESTDIR="${D}" install install-doc
if multilib_is_native_abi; then
for i in "${FFTOOLS[@]}" ; do
if use fftools_${i} ; then
dobin tools/${i}
fi
done
fi
}
multilib_src_install_all() {
dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges
[ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES"
}
multilib_src_test() {
LD_LIBRARY_PATH="${BUILD_DIR}/libpostproc:${BUILD_DIR}/libswscale:${BUILD_DIR}/libswresample:${BUILD_DIR}/libavcodec:${BUILD_DIR}/libavdevice:${BUILD_DIR}/libavfilter:${BUILD_DIR}/libavformat:${BUILD_DIR}/libavutil:${BUILD_DIR}/libavresample" \
emake V=1 fate
}