From 0bfeb5a83e4df158d06d0815553d893bbc6fa1de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 5 Feb 2020 09:58:34 +0100 Subject: kodi: build only rpi version --- kodi/APKBUILD | 122 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 62 insertions(+), 60 deletions(-) diff --git a/kodi/APKBUILD b/kodi/APKBUILD index 2eb30d1..e1c677f 100644 --- a/kodi/APKBUILD +++ b/kodi/APKBUILD @@ -92,7 +92,8 @@ makedepends="$depends_dev tar openjdk8-jre-base wayland-protocols" -subpackages="$pkgname-dev $pkgname-doc $pkgname-openrc $pkgname-dbg $pkgname-bin $pkgname-wayland $pkgname-gbm $pkgname-rpi $pkgname-polkit::noarch" +#subpackages="$pkgname-dev $pkgname-doc $pkgname-openrc $pkgname-dbg $pkgname-bin $pkgname-wayland $pkgname-gbm $pkgname-rpi $pkgname-polkit::noarch" +subpackages="$pkgname-dev $pkgname-doc $pkgname-openrc $pkgname-dbg $pkgname-rpi $pkgname-polkit::noarch" replaces="xbmc" options="ldpath-recursive !check" # No testsuite source="https://github.com/xbmc/xbmc/archive/$pkgver-$_realname.tar.gz @@ -119,71 +120,72 @@ prepare() { mkdir "$builddir"/build-x11 mkdir "$builddir"/build-wayland mkdir "$builddir"/build-gbm + mkdir "$builddir"/build-rpi } build() { make -C tools/depends/target/crossguid PREFIX="$PWD"/usr # X11 - cd "$builddir"/build-x11 - cmake "$builddir" \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib \ - -DENABLE_INTERNAL_CROSSGUID=ON \ - -DENABLE_INTERNAL_FFMPEG=OFF \ - -DENABLE_INTERNAL_RapidJSON=OFF \ - -DENABLE_INTERNAL_FMT=OFF \ - -DENABLE_INTERNAL_FSTRCMP=OFF \ - -DENABLE_INTERNAL_FLATBUFFERS=OFF \ - -Dlibdvdcss_URL="$srcdir"/libdvdcss-$_libdvdcss_pkgver.tar.gz \ - -Dlibdvdread_URL="$srcdir"/libdvdread-$_libdvdread_pkgver.tar.gz \ - -Dlibdvdnav_URL="$srcdir"/libdvdnav-$_libdvdnav_pkgver.tar.gz \ - -DCROSSGUID_URL="$srcdir"/crossguid-$_crossguid_hash.tar.gz - make - make preinstall + #cd "$builddir"/build-x11 + #cmake "$builddir" \ + # -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + # -DCMAKE_INSTALL_PREFIX=/usr \ + # -DCMAKE_INSTALL_LIBDIR=lib \ + # -DENABLE_INTERNAL_CROSSGUID=ON \ + # -DENABLE_INTERNAL_FFMPEG=OFF \ + # -DENABLE_INTERNAL_RapidJSON=OFF \ + # -DENABLE_INTERNAL_FMT=OFF \ + # -DENABLE_INTERNAL_FSTRCMP=OFF \ + # -DENABLE_INTERNAL_FLATBUFFERS=OFF \ + # -Dlibdvdcss_URL="$srcdir"/libdvdcss-$_libdvdcss_pkgver.tar.gz \ + # -Dlibdvdread_URL="$srcdir"/libdvdread-$_libdvdread_pkgver.tar.gz \ + # -Dlibdvdnav_URL="$srcdir"/libdvdnav-$_libdvdnav_pkgver.tar.gz \ + # -DCROSSGUID_URL="$srcdir"/crossguid-$_crossguid_hash.tar.gz + #make + #make preinstall - # Wayland - cd "$builddir"/build-wayland - cmake "$builddir" \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib \ - -DENABLE_INTERNAL_CROSSGUID=ON \ - -DENABLE_INTERNAL_FFMPEG=OFF \ - -DENABLE_INTERNAL_RapidJSON=OFF \ - -DENABLE_INTERNAL_FMT=OFF \ - -DENABLE_INTERNAL_FSTRCMP=OFF \ - -DENABLE_INTERNAL_FLATBUFFERS=OFF \ - -Dlibdvdcss_URL="$srcdir"/libdvdcss-$_libdvdcss_pkgver.tar.gz \ - -Dlibdvdread_URL="$srcdir"/libdvdread-$_libdvdread_pkgver.tar.gz \ - -Dlibdvdnav_URL="$srcdir"/libdvdnav-$_libdvdnav_pkgver.tar.gz \ - -DCROSSGUID_URL="$srcdir"/crossguid-$_crossguid_hash.tar.gz \ - -DCORE_PLATFORM_NAME=wayland \ - -DWAYLAND_RENDER_SYSTEM=gl - make - make preinstall + ## Wayland + #cd "$builddir"/build-wayland + #cmake "$builddir" \ + # -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + # -DCMAKE_INSTALL_PREFIX=/usr \ + # -DCMAKE_INSTALL_LIBDIR=lib \ + # -DENABLE_INTERNAL_CROSSGUID=ON \ + # -DENABLE_INTERNAL_FFMPEG=OFF \ + # -DENABLE_INTERNAL_RapidJSON=OFF \ + # -DENABLE_INTERNAL_FMT=OFF \ + # -DENABLE_INTERNAL_FSTRCMP=OFF \ + # -DENABLE_INTERNAL_FLATBUFFERS=OFF \ + # -Dlibdvdcss_URL="$srcdir"/libdvdcss-$_libdvdcss_pkgver.tar.gz \ + # -Dlibdvdread_URL="$srcdir"/libdvdread-$_libdvdread_pkgver.tar.gz \ + # -Dlibdvdnav_URL="$srcdir"/libdvdnav-$_libdvdnav_pkgver.tar.gz \ + # -DCROSSGUID_URL="$srcdir"/crossguid-$_crossguid_hash.tar.gz \ + # -DCORE_PLATFORM_NAME=wayland \ + # -DWAYLAND_RENDER_SYSTEM=gl + #make + #make preinstall - # GBM - cd "$builddir"/build-gbm - cmake "$builddir" \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib \ - -DENABLE_INTERNAL_CROSSGUID=ON \ - -DENABLE_INTERNAL_FFMPEG=OFF \ - -DENABLE_INTERNAL_RapidJSON=OFF \ - -DENABLE_INTERNAL_FMT=OFF \ - -DENABLE_INTERNAL_FSTRCMP=OFF \ - -DENABLE_INTERNAL_FLATBUFFERS=OFF \ - -Dlibdvdcss_URL="$srcdir"/libdvdcss-$_libdvdcss_pkgver.tar.gz \ - -Dlibdvdread_URL="$srcdir"/libdvdread-$_libdvdread_pkgver.tar.gz \ - -Dlibdvdnav_URL="$srcdir"/libdvdnav-$_libdvdnav_pkgver.tar.gz \ - -DCROSSGUID_URL="$srcdir"/crossguid-$_crossguid_hash.tar.gz \ - -DCORE_PLATFORM_NAME=gbm \ - -DGBM_RENDER_SYSTEM=gles - make - make preinstall + ## GBM + #cd "$builddir"/build-gbm + #cmake "$builddir" \ + # -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + # -DCMAKE_INSTALL_PREFIX=/usr \ + # -DCMAKE_INSTALL_LIBDIR=lib \ + # -DENABLE_INTERNAL_CROSSGUID=ON \ + # -DENABLE_INTERNAL_FFMPEG=OFF \ + # -DENABLE_INTERNAL_RapidJSON=OFF \ + # -DENABLE_INTERNAL_FMT=OFF \ + # -DENABLE_INTERNAL_FSTRCMP=OFF \ + # -DENABLE_INTERNAL_FLATBUFFERS=OFF \ + # -Dlibdvdcss_URL="$srcdir"/libdvdcss-$_libdvdcss_pkgver.tar.gz \ + # -Dlibdvdread_URL="$srcdir"/libdvdread-$_libdvdread_pkgver.tar.gz \ + # -Dlibdvdnav_URL="$srcdir"/libdvdnav-$_libdvdnav_pkgver.tar.gz \ + # -DCROSSGUID_URL="$srcdir"/crossguid-$_crossguid_hash.tar.gz \ + # -DCORE_PLATFORM_NAME=gbm \ + # -DGBM_RENDER_SYSTEM=gles + #make + #make preinstall # Raspberry Pi @@ -211,9 +213,9 @@ build() { } package() { - depends="$pkgname-bin" + depends="$pkgname-rpi" - cd "$builddir"/build-x11 + cd "$builddir"/build-rpi make DESTDIR="$pkgdir" install install -Dm755 "$srcdir"/kodi.initd "$pkgdir"/etc/init.d/kodi -- cgit v1.2.3