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
|
2024-04-07 18:41:54 -05:00
|
|
|
# Depends on: libass libcdio libdvdnav libmicrohttpd libva libvdpau mariadb mesa openjdk20-jdk samba spdlog swig taglib tinyxml tinyxml2
|
2020-05-20 23:49:14 -05:00
|
|
|
|
|
|
|
name=kodi
|
2024-08-18 14:19:08 -05:00
|
|
|
version=21.1
|
2024-02-20 14:44:00 -06:00
|
|
|
release=1
|
2024-04-07 18:41:54 -05:00
|
|
|
source=(https://github.com/xbmc/xbmc/archive/$version-Omega/$name-$version.tar.gz)
|
2020-05-20 23:49:14 -05:00
|
|
|
|
|
|
|
build() {
|
2024-04-07 18:41:54 -05:00
|
|
|
export PATH="/usr/lib/java/openjdk20-jdk/bin:$PATH"
|
2022-09-30 10:40:18 -05:00
|
|
|
|
2024-03-04 16:31:44 -06: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
|
|
|
|
2024-04-07 18:41:54 -05:00
|
|
|
sed -i -e 's,EGL/eglextchromium.h,EGL/eglext_angle.h,g' xbmc-$version-Omega/xbmc/windowing/X11/GLContextEGL.h
|
2022-09-30 10:40:18 -05:00
|
|
|
|
2024-03-04 16:31:44 -06:00
|
|
|
cmake -Bbuild \
|
|
|
|
-DVERBOSE=ON \
|
|
|
|
-DAPP_RENDER_SYSTEM=gl \
|
|
|
|
-DCORE_PLATFORM_NAME=x11 \
|
|
|
|
-DENABLE_DVDCSS=ON \
|
|
|
|
-DENABLE_OPTICAL=ON \
|
|
|
|
-DENABLE_PYTHON=ON \
|
|
|
|
-DENABLE_INTERNAL_FFMPEG=ON \
|
|
|
|
-DENABLE_INTERNAL_FLATBUFFERS=ON \
|
|
|
|
-DENABLE_INTERNAL_FSTRCMP=ON \
|
|
|
|
-DENABLE_INTERNAL_RapidJSON=ON \
|
|
|
|
-DENABLE_TESTING=OFF \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
|
|
|
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
|
|
|
-Wno-dev \
|
2024-04-07 18:41:54 -05:00
|
|
|
xbmc-$version-Omega
|
2024-03-04 16:31:44 -06:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2020-05-20 23:49:14 -05:00
|
|
|
|
2024-03-04 16:31:44 -06:00
|
|
|
find $PKG -name "README*" -delete
|
2020-05-20 23:49:14 -05:00
|
|
|
}
|