2020-05-21 06:49:14 +02:00
|
|
|
# Description: A free and open source software media player and entertainment hub
|
2020-05-29 01:50:35 +02:00
|
|
|
# URL: https://kodi.tv/
|
2020-05-21 06:49:14 +02:00
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
2021-02-22 02:27:14 +01:00
|
|
|
# Depends on: cmake ffmpeg fmt ghostscript giflib glu jdk8-bin libass libcdio libmicrohttpd mysql samba swig taglib tinyxml python spdlog
|
2020-05-21 06:49:14 +02:00
|
|
|
|
|
|
|
name=kodi
|
2021-11-09 02:42:23 +01:00
|
|
|
version=19.3
|
|
|
|
release=1
|
2021-08-15 00:07:14 +02:00
|
|
|
source=(https://github.com/xbmc/xbmc/archive/$version-Matrix/$name-$version.tar.gz gl-headers.patch fmt8.patch)
|
2020-05-21 06:49:14 +02:00
|
|
|
|
|
|
|
build() {
|
2020-10-18 21:52:41 +02:00
|
|
|
[[ -e /usr/lib/ccache ]] && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
|
2021-07-11 00:31:24 +02:00
|
|
|
patch -d xbmc-$version-Matrix -p1 -i $SRC/gl-headers.patch
|
2021-08-15 00:07:14 +02:00
|
|
|
patch -d xbmc-$version-Matrix -p1 -i $SRC/fmt8.patch
|
2020-11-08 17:21:11 +01:00
|
|
|
cmake -Bbuild \
|
2020-05-21 06:49:14 +02:00
|
|
|
-DVERBOSE=ON \
|
2021-02-22 02:27:14 +01:00
|
|
|
-DAPP_RENDER_SYSTEM=gl \
|
|
|
|
-DCORE_PLATFORM_NAME=x11 \
|
2020-05-21 06:49:14 +02:00
|
|
|
-DENABLE_DVDCSS=ON \
|
|
|
|
-DENABLE_OPTICAL=ON \
|
|
|
|
-DENABLE_PYTHON=ON \
|
|
|
|
-DENABLE_INTERNAL_FLATBUFFERS=ON \
|
|
|
|
-DENABLE_INTERNAL_FSTRCMP=ON \
|
|
|
|
-DENABLE_INTERNAL_RapidJSON=ON \
|
2021-02-22 02:27:14 +01:00
|
|
|
-DENABLE_TESTING=OFF \
|
2020-05-21 06:49:14 +02:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2020-10-18 21:52:41 +02:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
2020-11-08 17:21:11 +01:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
|
|
|
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
|
|
|
-Wno-dev \
|
2021-07-11 00:31:24 +02:00
|
|
|
xbmc-$version-Matrix
|
2020-11-08 17:21:11 +01:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2020-05-21 06:49:14 +02:00
|
|
|
|
|
|
|
find $PKG -name "README*" -delete
|
|
|
|
}
|