All packages built from the Kodi Git master branch:

https://github.com/xbmc/xbmc

Tag: 18.0rc4-Leia

1.: Download the proper ffmpeg to the corresponding subdir in source tree
2.: Add to cmakelists the ffmpeg compile options --enable-version3 --enable-libdrm --enable-rkmpp

Compiled with the following command line:

cmake -lpthread -DFFMPEG_URL=tools/depends/target/ffmpeg/4.0.3-Leia-Beta5.tar.gz -DENABLE_X11=OFF -DENABLE_INTERNAL_FFMPEG=ON -DENABLE_INTERNAL_FLATBUFFERS=OFF -DENABLE_VAAPI=OFF -DENABLE_VDPAU=OFF -DENABLE_OPENGLES=ON -DCORE_PLATFORM_NAME=gbm -DGBM_RENDER_SYSTEM=gles -DENABLE_OPENGL=OFF -DCPACK_GENERATOR=DEB -DDEBIAN_PACKAGE_VERSION=18.0rc4 -DDEBIAN_PACKAGE_REVISION=0bionic-rockchip1 -DDEB_PACKAGE_ARCHITECTURE=arm64 -DWITH_ARCH=arm -DWITH_CPU=cortex-a53 ../xbmc

cmake --build . -- -j6
cpack

Some minor tweaks were made to the resulting packages, to add GBM wrapper and correct dependency problems.
