2020-05-20 23:49:14 -05:00
|
|
|
# Description: A free and open source software media player and entertainment hub
|
2020-05-28 18:50:35 -05:00
|
|
|
# URL: https://kodi.tv/
|
2020-05-20 23:49:14 -05:00
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
2022-09-30 10:40:18 -05:00
|
|
|
# Depends on: cmake fmt ghostscript giflib glu openjdk17-jdk libass libcdio libmicrohttpd mariadb samba swig taglib tinyxml spdlog libva libvdpau libdvdnav
|
2020-05-20 23:49:14 -05:00
|
|
|
|
|
|
|
name=kodi
|
2023-03-14 13:36:26 -05:00
|
|
|
version=20.1
|
2021-11-08 19:42:23 -06:00
|
|
|
release=1
|
2023-01-23 15:59:26 -06:00
|
|
|
source=(https://github.com/xbmc/xbmc/archive/$version-Nexus/$name-$version.tar.gz gl-headers.patch)
|
2020-05-20 23:49:14 -05:00
|
|
|
|
|
|
|
build() {
|
2022-09-30 10:40:18 -05:00
|
|
|
export PATH="/usr/lib/java/openjdk17-jdk/bin:$PATH"
|
|
|
|
|
2020-10-18 14:52:41 -05:00
|
|
|
[[ -e /usr/lib/ccache ]] && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
|
2022-09-30 10:40:18 -05:00
|
|
|
|
2023-01-23 15:59:26 -06:00
|
|
|
patch -d xbmc-$version-Nexus -p1 -i $SRC/gl-headers.patch
|
2022-09-30 10:40:18 -05:00
|
|
|
|
2020-11-08 10:21:11 -06:00
|
|
|
cmake -Bbuild \
|
2020-05-20 23:49:14 -05:00
|
|
|
-DVERBOSE=ON \
|
2021-02-21 19:27:14 -06:00
|
|
|
-DAPP_RENDER_SYSTEM=gl \
|
|
|
|
-DCORE_PLATFORM_NAME=x11 \
|
2020-05-20 23:49:14 -05:00
|
|
|
-DENABLE_DVDCSS=ON \
|
|
|
|
-DENABLE_OPTICAL=ON \
|
|
|
|
-DENABLE_PYTHON=ON \
|
2022-03-02 15:13:57 -06:00
|
|
|
-DENABLE_INTERNAL_FFMPEG=ON \
|
2020-05-20 23:49:14 -05:00
|
|
|
-DENABLE_INTERNAL_FLATBUFFERS=ON \
|
|
|
|
-DENABLE_INTERNAL_FSTRCMP=ON \
|
|
|
|
-DENABLE_INTERNAL_RapidJSON=ON \
|
2021-02-21 19:27:14 -06:00
|
|
|
-DENABLE_TESTING=OFF \
|
2020-05-20 23:49:14 -05:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2020-10-18 14:52:41 -05:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
2020-11-08 10:21:11 -06:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
|
|
|
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
|
|
|
-Wno-dev \
|
2023-01-23 15:59:26 -06:00
|
|
|
xbmc-$version-Nexus
|
2020-11-08 10:21:11 -06:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2020-05-20 23:49:14 -05:00
|
|
|
|
|
|
|
find $PKG -name "README*" -delete
|
|
|
|
}
|