summaryrefslogtreecommitdiff
path: root/kodi/APKBUILD
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2020-02-05 09:58:34 +0100
committerKarel Kočí <karel.koci@nic.cz>2020-02-05 09:59:44 +0100
commit0bfeb5a83e4df158d06d0815553d893bbc6fa1de (patch)
tree25b2397f50a99df3922a3010f4cb5bf8e25aea53 /kodi/APKBUILD
parent9a3b1f92250fd7ae0a8159b5be6a8f3e132e73f0 (diff)
downloadalpine-personal-pkgs-0bfeb5a83e4df158d06d0815553d893bbc6fa1de.tar.gz
alpine-personal-pkgs-0bfeb5a83e4df158d06d0815553d893bbc6fa1de.tar.bz2
alpine-personal-pkgs-0bfeb5a83e4df158d06d0815553d893bbc6fa1de.zip
kodi: build only rpi version
Diffstat (limited to 'kodi/APKBUILD')
-rw-r--r--kodi/APKBUILD122
1 files 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