contrib/kodi/Pkgfile

42 lines
1.4 KiB
Plaintext
Raw Normal View History

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
# Depends on: libass libcdio libdvdnav libmicrohttpd libva libvdpau mariadb mesa openjdk20-jdk samba spdlog swig taglib tinyxml tinyxml2
2020-05-21 06:49:14 +02:00
name=kodi
version=21.0
2024-02-20 21:44:00 +01:00
release=1
source=(https://github.com/xbmc/xbmc/archive/$version-Omega/$name-$version.tar.gz)
2020-05-21 06:49:14 +02:00
build() {
export PATH="/usr/lib/java/openjdk20-jdk/bin:$PATH"
2024-03-04 23:31:44 +01:00
[[ -e /usr/lib/ccache ]] && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
sed -i -e 's,EGL/eglextchromium.h,EGL/eglext_angle.h,g' xbmc-$version-Omega/xbmc/windowing/X11/GLContextEGL.h
2024-03-04 23:31:44 +01: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 \
xbmc-$version-Omega
2024-03-04 23:31:44 +01:00
cmake --build build
DESTDIR=$PKG cmake --install build
2020-05-21 06:49:14 +02:00
2024-03-04 23:31:44 +01:00
find $PKG -name "README*" -delete
2020-05-21 06:49:14 +02:00
}