-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3734 from MilhouseVH/le92_backports4
le92 backports (9.1.003)
- Loading branch information
Showing
21 changed files
with
206 additions
and
14 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
packages/addons/addon-depends/jre-depends/apache-ant/package.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# Copyright (C) 2019-present Peter Vicman (peter.vicman@gmail.com) | ||
|
||
PKG_NAME="apache-ant" | ||
PKG_VERSION="1.10.6" | ||
PKG_SHA256="a4adf371696089e1730d4f55fd4d0c6f3784dea1eee402fcc981f2330f8d6fc1" | ||
PKG_LICENSE="Apache License 2.0" | ||
PKG_SITE="https://ant.apache.org/" | ||
PKG_URL="https://archive.apache.org/dist/ant/source/${PKG_NAME}-${PKG_VERSION}-src.tar.xz" | ||
PKG_DEPENDS_HOST="jdk-x86_64-zulu:host" | ||
PKG_LONGDESC="Apache Ant is a Java library and command-line tool that help building software." | ||
PKG_TOOLCHAIN="manual" | ||
|
||
make_host() { | ||
( | ||
export JAVA_HOME=$(get_build_dir jdk-x86_64-zulu) | ||
|
||
./bootstrap.sh | ||
./bootstrap/bin/ant -f fetch.xml -Ddest=optional | ||
./build.sh -Ddist.dir=${PKG_BUILD}/binary dist | ||
|
||
cp binary/bin/ant ${TOOLCHAIN}/bin | ||
cp -r binary/lib ${TOOLCHAIN} | ||
) | ||
} |
15 changes: 15 additions & 0 deletions
15
packages/addons/addon-depends/jre-depends/jdk-aarch64-zulu/package.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# Copyright (C) 2019-present Peter Vicman (peter.vicman@gmail.com) | ||
|
||
PKG_NAME="jdk-aarch64-zulu" | ||
PKG_VERSION="8.38.0.162-1.8.0_212" | ||
PKG_SHA256="2afa6b9a86fea6f9275856506b5cc1efd8420f674c5e2dc3e1b04e140d6ad852" | ||
PKG_LICENSE="GPLv2" | ||
PKG_SITE="https://www.azul.com/products/zulu-embedded/" | ||
PKG_URL="http://cdn.azul.com/zulu-embedded/bin/zulu${PKG_VERSION%%-*}-ca-jdk${PKG_VERSION##*-}-linux_aarch64.tar.gz" | ||
PKG_LONGDESC="Zulu, the open Java(TM) platform from Azul Systems." | ||
PKG_TOOLCHAIN="manual" | ||
|
||
post_unpack() { | ||
rm -f $PKG_BUILD/src.zip | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/addons/addon-depends/jre-depends/jdk-arm-zulu/package.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# Copyright (C) 2019-present Peter Vicman (peter.vicman@gmail.com) | ||
|
||
PKG_NAME="jdk-arm-zulu" | ||
PKG_VERSION="8.38.0.163-1.8.0_212" | ||
PKG_SHA256="bc45f41eab6e55c4e740e980001831c5e35db85745ec61a2b110e816e1074715" | ||
PKG_LICENSE="GPLv2" | ||
PKG_SITE="https://www.azul.com/products/zulu-embedded/" | ||
PKG_URL="https://cdn.azul.com/zulu-embedded/bin/zulu${PKG_VERSION%%-*}-ca-jdk${PKG_VERSION##*-}-linux_aarch32hf.tar.gz" | ||
PKG_LONGDESC="Zulu, the open Java(TM) platform from Azul Systems." | ||
PKG_TOOLCHAIN="manual" | ||
|
||
post_unpack() { | ||
rm -f $PKG_BUILD/src.zip | ||
|
||
# libbluray needs arm/server | ||
mv $PKG_BUILD/jre/lib/aarch32 $PKG_BUILD/jre/lib/arm | ||
mv $PKG_BUILD/jre/lib/arm/client $PKG_BUILD/jre/lib/arm/server | ||
} |
15 changes: 15 additions & 0 deletions
15
packages/addons/addon-depends/jre-depends/jdk-x86_64-zulu/package.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# Copyright (C) 2019-present Peter Vicman (peter.vicman@gmail.com) | ||
|
||
PKG_NAME="jdk-x86_64-zulu" | ||
PKG_VERSION="8.38.0.13-8.0.212" | ||
PKG_SHA256="568e7578f1b20b1e62a8ed2c374bad4eb0e75d221323ccfa6ba8d7bc56cf33cf" | ||
PKG_LICENSE="GPLv2" | ||
PKG_SITE="https://www.azul.com/products/zulu-enterprise/" | ||
PKG_URL="https://cdn.azul.com/zulu/bin/zulu${PKG_VERSION%%-*}-ca-jdk${PKG_VERSION##*-}-linux_x64.tar.gz" | ||
PKG_LONGDESC="Zulu, the open Java(TM) platform from Azul Systems." | ||
PKG_TOOLCHAIN="manual" | ||
|
||
post_unpack() { | ||
rm -f $PKG_BUILD/src.zip | ||
} |
20 changes: 20 additions & 0 deletions
20
packages/addons/addon-depends/jre-depends/jre-libXinerama/package.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv) | ||
|
||
. $(get_pkg_directory libXinerama)/package.mk | ||
|
||
PKG_NAME="jre-libXinerama" | ||
PKG_LONGDESC="libXinerama for JRE" | ||
PKG_URL="" | ||
PKG_DEPENDS_UNPACK+=" libXinerama" | ||
|
||
PKG_CONFIGURE_OPTS_TARGET+=" --disable-static --enable-shared" | ||
|
||
unpack() { | ||
mkdir -p $PKG_BUILD | ||
tar --strip-components=1 -xf $SOURCES/${PKG_NAME:4}/${PKG_NAME:4}-$PKG_VERSION.tar.bz2 -C $PKG_BUILD | ||
} | ||
|
||
makeinstall_target() { | ||
: | ||
} |
33 changes: 33 additions & 0 deletions
33
packages/addons/addon-depends/jre-depends/jre-libbluray/package.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv) | ||
|
||
. $(get_pkg_directory libbluray)/package.mk | ||
|
||
PKG_NAME="jre-libbluray" | ||
PKG_DEPENDS_TARGET+=" jdk-x86_64-zulu:host apache-ant:host" | ||
PKG_LONGDESC="libbluray jar for BD-J menus" | ||
PKG_URL="" | ||
PKG_DEPENDS_UNPACK+=" libbluray" | ||
PKG_PATCH_DIRS+=" $(get_pkg_directory libbluray)/patches" | ||
|
||
unpack() { | ||
mkdir -p $PKG_BUILD | ||
tar --strip-components=1 -xf $SOURCES/${PKG_NAME:4}/${PKG_NAME:4}-$PKG_VERSION.tar.bz2 -C $PKG_BUILD | ||
} | ||
|
||
pre_configure_target() { | ||
# build also jar | ||
PKG_CONFIGURE_OPTS_TARGET="${PKG_CONFIGURE_OPTS_TARGET/disable-bdjava-jar/enable-bdjava-jar}" | ||
} | ||
|
||
make_target() { | ||
( | ||
export JAVA_HOME="$(get_build_dir jdk-x86_64-zulu)" | ||
|
||
make all-local | ||
) | ||
} | ||
|
||
makeinstall_target() { | ||
: | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
100 | ||
- Initial release |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# Copyright (C) 2019-present Peter Vicman (peter.vicman@gmail.com) | ||
|
||
PKG_NAME="jre.zulu" | ||
PKG_VERSION="1.0" | ||
PKG_REV="100" | ||
PKG_LICENSE="GPL2" | ||
PKG_DEPENDS_TARGET="jdk-${TARGET_ARCH}-zulu jre-libbluray libXext chrome-libXtst chrome-libXi chrome-libXrender jre-libXinerama" | ||
PKG_SECTION="tools" | ||
PKG_SHORTDESC="Java Runtime Environment 8 for Blu-ray Disc Java menus from Azul Systems." | ||
PKG_LONGDESC="$PKG_SHORTDESC" | ||
PKG_TOOLCHAIN="manual" | ||
|
||
PKG_IS_ADDON="yes" | ||
PKG_ADDON_NAME="JRE for BD-J menus" | ||
PKG_ADDON_TYPE="xbmc.python.script" | ||
|
||
# find $1.so.[0-9]* in $2 and copy it to dest | ||
_pkg_copy_lib() { | ||
find "$2" -regextype sed -regex ".*/$1\.so\.[0-9]*" \ | ||
-exec cp {} "$ADDON_BUILD/$PKG_ADDON_ID/lib" \; | ||
} | ||
|
||
addon() { | ||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/lib | ||
|
||
cp -a $(get_build_dir jdk-${TARGET_ARCH}-zulu)/jre \ | ||
$(get_build_dir jre-libbluray)/.$TARGET_NAME/.libs/*.jar \ | ||
${PKG_DIR}/profile.d \ | ||
$ADDON_BUILD/$PKG_ADDON_ID | ||
|
||
# copy required libraries for JRE | ||
_pkg_copy_lib libXtst $(get_build_dir chrome-libXtst)/.$TARGET_NAME/src/.libs | ||
_pkg_copy_lib libXi $(get_build_dir chrome-libXi)/.$TARGET_NAME/src/.libs | ||
_pkg_copy_lib libXrender $(get_build_dir chrome-libXrender)/.$TARGET_NAME/src/.libs | ||
_pkg_copy_lib libXinerama $(get_build_dir jre-libXinerama)/.$TARGET_NAME/src/.libs | ||
|
||
if [ "$TARGET_ARCH" = "arm" ]; then | ||
_pkg_copy_lib libX11 $(get_build_dir libX11)/.$TARGET_NAME/src/.libs | ||
_pkg_copy_lib libXext $(get_build_dir libXext)/.$TARGET_NAME/src/.libs | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# point to folder with jre | ||
export JAVA_HOME="/storage/.kodi/addons/tools.jre.zulu" | ||
|
||
# libbluray-*.jar in this folder (need / at the end) | ||
export LIBBLURAY_CP="/storage/.kodi/addons/tools.jre.zulu/" | ||
|
||
# or set file directly | ||
# export LIBBLURAY_CP="/storage/.kodi/addons/tools.jre.zulu/libbluray-j2se-1.0.2.jar" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SUSPEND_MODULES="jme asix anysee rtl8192se imon r8712u cx23885 cdc_acm ddbridge brcmfmac 8812au" | ||
SUSPEND_MODULES="jme asix anysee rtl8192se imon r8712u cx23885 cdc_acm ddbridge brcmfmac 8812au xpad" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters