From 87b1eb2d1da9ea0297dc4d2e4f42f4942cae905e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sat, 30 Aug 2025 15:30:35 +0700 Subject: [PATCH] kodi: use chroot's cmake --- srcpkgs/kodi/template | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/srcpkgs/kodi/template b/srcpkgs/kodi/template index 4a8893a9e63..9357b7cabcc 100644 --- a/srcpkgs/kodi/template +++ b/srcpkgs/kodi/template @@ -8,6 +8,9 @@ _dvdcss_ver="1.4.3-Next-Nexus-Alpha2-2" _dvdread_ver="6.1.3-Next-Nexus-Alpha2-2" _dvdnav_ver="6.1.1-Next-Nexus-Alpha2-2" _udfread_ver="1.1.2" +_groovy=4.0.16 +_common_lang=3.14.0 +_common_text=1.11.0 build_style=cmake # XXX: some vendored libraries aren't found if CMAKE_BUILD_TYPE=None # because there is special handling for =Release @@ -24,8 +27,10 @@ configure_args="-DWITH_FFMPEG=/usr -DENABLE_LDGOLD=OFF -DAPP_RENDER_SYSTEM=gl -D -Dlibdvdread_URL=${XBPS_SRCDISTDIR}/${pkgname}-${version}/libdvdread-${_dvdread_ver}.tar.gz -DUDFREAD_URL=${XBPS_SRCDISTDIR}/${pkgname}-${version}/libudfread-${_udfread_ver}.tar.gz" make_build_target="all" -hostmakedepends="automake libtool pkg-config gperf cmake gettext zip unzip nasm yasm python3-devel python3-packaging-bootstrap - gettext-devel libltdl-devel curl flatbuffers swig openjdk11 which wayland-scanner++ cross-aarch64-linux-gnu cross-aarch64-linux-gnu-libc" +hostmakedepends="automake libtool pkg-config gperf gettext zip + nasm yasm python3-devel python3-packaging-bootstrap + gettext-devel libltdl-devel curl flatbuffers swig openjdk11 which + wayland-scanner++" makedepends="eudev-libudev-devel pcre-devel expat-devel libpng-devel libjpeg-turbo-devel libXrandr-devel avahi-libs-devel pulseaudio-devel samba-devel tiff-devel libmariadbclient-devel libmpeg2-devel wavpack-devel zlib-devel lzo-devel @@ -52,18 +57,27 @@ distfiles="https://github.com/xbmc/xbmc/archive/${version}-${_codename}.tar.gz https://github.com/xbmc/libdvdcss/archive/${_dvdcss_ver}.tar.gz>libdvdcss-${_dvdcss_ver}.tar.gz https://github.com/xbmc/libdvdread/archive/${_dvdread_ver}.tar.gz>libdvdread-${_dvdread_ver}.tar.gz https://github.com/xbmc/libdvdnav/archive/${_dvdnav_ver}.tar.gz>libdvdnav-${_dvdnav_ver}.tar.gz - https://mirrors.kodi.tv/build-deps/sources/libudfread-${_udfread_ver}.tar.gz" + https://mirrors.kodi.tv/build-deps/sources/libudfread-${_udfread_ver}.tar.gz + http://mirrors.kodi.tv/build-deps/sources/commons-lang3-${_common_lang}-bin.tar.gz + http://mirrors.kodi.tv/build-deps/sources/commons-text-${_common_text}-bin.tar.gz + http://mirrors.kodi.tv/build-deps/sources/apache-groovy-binary-${_groovy}.zip" checksum="da3a5df663684664b9383b65f1c06568222629d935084a59e4e641fcdcb6c383 6be27e0b3a4907f0cd3cfadec255ee1b925569e1bd06e67a4d2f4267299b69c4 f38c4a4e7a4f4da6d8e83b8852489aa3bb6588a915dc41f5ee89d9aad305a06e 719130091e3adc9725ba72df808f24a14737a009dca5a4c38c601c0c76449b62 584f62a3896794408d46368e2ecf2c6217ab9c676ce85921b2d68b8961f49dfc - 2bf16726ac98d093156195bb049a663e07d3323e079c26912546f4e05c77bac5" + 2bf16726ac98d093156195bb049a663e07d3323e079c26912546f4e05c77bac5 + 317c3e3fcd5fcca3781a7996ff1e0c50c13244ee961e94e5f6f6d84b84733b16 + 4169cb90571fb28fad4c5eea7c1c994c18f1995452f73e8ea7a86087c0e3822e + b8c3bec88a3f5a62235d9429a97e371032bf7216f3e28724823a9169dd10befc" skip_extraction="crossguid-${_crossguid_ver}.tar.gz libdvdcss-${_dvdcss_ver}.tar.gz libdvdread-${_dvdread_ver}.tar.gz libdvdnav-${_dvdnav_ver}.tar.gz - libudfread-${_udfread_ver}.tar.gz" + libudfread-${_udfread_ver}.tar.gz + commons-lang3-${_common_lang}-bin.tar.gz + commons-text-${_common_text}-bin.tar.gz + apache-groovy-binary-${_groovy}.zip" lib32disabled=yes python_version=3 LDFLAGS="-Wl,-z,stack-size=1048576" @@ -136,6 +150,13 @@ pre_configure() { configure_args+=" -DWITH_JSONSCHEMABUILDER:PATH=$wrksrc/tools/JsonSchemaBuilder" configure_args+=" -DXBPS_TRIPLET=${XBPS_TRIPLET} -DXBPS_CROSS_TRIPLET=${XBPS_CROSS_TRIPLET}" fi + mkdir -p xbps/groovy xbps/common-lang xbps/common-text + vsrcextract -C xbps/groovy apache-groovy-binary-${_groovy}.zip + vsrcextract -C xbps/common-lang commons-lang3-${_common_lang}-bin.tar.gz + vsrcextract -C xbps/common-text commons-text-${_common_text}-bin.tar.gz + configure_args+=" -Dgroovy_SOURCE_DIR=$wrksrc/xbps/groovy" + configure_args+=" -Dapache-commons-lang_SOURCE_DIR=$wrksrc/xbps/common-lang" + configure_args+=" -Dapache-commons-text_SOURCE_DIR=$wrksrc/xbps/common-text" } do_check() {