mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
Merge pull request #3148 from antonlacon/yasm-to-nasm
generic: switch from yasm to nasm; update libass to 0.14.0 to support
This commit is contained in:
commit
0abc2e5367
@ -7,7 +7,7 @@ PKG_SHA256="1fec931eb5c94279ad219a5b6e0202358e94a93a90cfb1603578c326abfc1238"
|
||||
PKG_LICENSE="BSD"
|
||||
PKG_SITE="https://www.webmproject.org"
|
||||
PKG_URL="https://github.com/webmproject/libvpx/archive/v${PKG_VERSION}.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain yasm:host"
|
||||
PKG_DEPENDS_TARGET="toolchain"
|
||||
PKG_LONGDESC="WebM VP8/VP9 Codec"
|
||||
|
||||
configure_target() {
|
||||
@ -20,13 +20,14 @@ configure_target() {
|
||||
PKG_TARGET_NAME_LIBVPX="armv7-linux-gcc"
|
||||
;;
|
||||
x86_64)
|
||||
PKG_DEPENDS_TARGET+=" nasm:host"
|
||||
PKG_TARGET_NAME_LIBVPX="x86_64-linux-gcc"
|
||||
;;
|
||||
esac
|
||||
|
||||
$PKG_CONFIGURE_SCRIPT --prefix=/usr \
|
||||
--extra-cflags="$CFLAGS" \
|
||||
--as=yasm \
|
||||
--as=nasm \
|
||||
--target=$PKG_TARGET_NAME_LIBVPX \
|
||||
--disable-docs \
|
||||
--disable-examples \
|
||||
|
@ -2,30 +2,42 @@
|
||||
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="x264"
|
||||
PKG_VERSION="20181120"
|
||||
PKG_SHA256="03ea83026c999d30bc8724eb7c230303ff94897abf759b6fc6829d303b74bcc3"
|
||||
PKG_VERSION="545de2ffec6ae9a80738de1b2c8cf820249a2530"
|
||||
PKG_SHA256="74725cf7036b2c96387c2c014ef00d181942d00230f21e16277f11d2d9683adc"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.videolan.org/developers/x264.html"
|
||||
PKG_URL="https://download.videolan.org/x264/snapshots/$PKG_NAME-snapshot-$PKG_VERSION-2245.tar.bz2"
|
||||
PKG_URL="http://repo.or.cz/x264.git/snapshot/$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain"
|
||||
PKG_LONGDESC="x264 codec"
|
||||
|
||||
if [ "$TARGET_ARCH" = "x86_64" ]; then
|
||||
PKG_DEPENDS_TARGET+=" nasm:host"
|
||||
fi
|
||||
|
||||
pre_configure_target() {
|
||||
cd $PKG_BUILD
|
||||
rm -rf .$TARGET_NAME
|
||||
|
||||
if [ "$TARGET_ARCH" = "x86_64" ]; then
|
||||
export AS="$TOOLCHAIN/bin/nasm"
|
||||
PKG_X264_ASM="--enable-asm"
|
||||
else
|
||||
PKG_X264_ASM="--disable-asm"
|
||||
fi
|
||||
}
|
||||
|
||||
configure_target() {
|
||||
./configure \
|
||||
--prefix="/usr" \
|
||||
--cross-prefix="$TARGET_PREFIX" \
|
||||
--extra-cflags="$CFLAGS" \
|
||||
--extra-ldflags="$LDFLAGS" \
|
||||
--disable-cli \
|
||||
--enable-static \
|
||||
--enable-strip \
|
||||
--disable-asm \
|
||||
--enable-pic \
|
||||
--host="$TARGET_NAME" \
|
||||
--cross-prefix="$TARGET_PREFIX" \
|
||||
--sysroot="$SYSROOT_PREFIX"
|
||||
--prefix="/usr" \
|
||||
--sysroot="$SYSROOT_PREFIX" \
|
||||
$PKG_X264_ASM \
|
||||
--disable-cli \
|
||||
--enable-lto \
|
||||
--enable-pic \
|
||||
--enable-static \
|
||||
--enable-strip
|
||||
}
|
||||
|
@ -18,6 +18,10 @@ if [ "$KODIPLAYER_DRIVER" == "bcm2835-driver" ]; then
|
||||
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET bcm2835-driver"
|
||||
fi
|
||||
|
||||
if [ "$TARGET_ARCH" = "x86_64" ]; then
|
||||
PKG_DEPENDS_TARGET+=" nasm:host"
|
||||
fi
|
||||
|
||||
if [[ ! $TARGET_ARCH = arm ]] || target_has_feature neon; then
|
||||
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET libvpx"
|
||||
fi
|
||||
|
@ -5,6 +5,7 @@
|
||||
PKG_NAME="nasm"
|
||||
PKG_VERSION="2.14"
|
||||
PKG_SHA256="97c615dbf02ef80e4e2b6c385f7e28368d51efc214daa98e600ca4572500eec0"
|
||||
PKG_ARCH="x86_64"
|
||||
PKG_LICENSE="BSD"
|
||||
PKG_SITE="https://www.nasm.us/"
|
||||
PKG_URL="http://www.nasm.us/pub/nasm/releasebuilds/${PKG_VERSION}/nasm-${PKG_VERSION}.tar.xz"
|
||||
|
@ -1,25 +0,0 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
|
||||
PKG_NAME="yasm"
|
||||
PKG_VERSION="1.3.0"
|
||||
PKG_SHA256="3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f"
|
||||
PKG_LICENSE="BSD"
|
||||
PKG_SITE="http://www.tortall.net/projects/yasm/"
|
||||
PKG_URL="http://www.tortall.net/projects/yasm/releases/$PKG_NAME-$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS_HOST="ccache:host"
|
||||
PKG_LONGDESC="A complete rewrite of the NASM assembler under the new BSD License."
|
||||
PKG_TOOLCHAIN="configure"
|
||||
|
||||
PKG_CONFIGURE_OPTS_HOST="--disable-debug \
|
||||
--disable-warnerror \
|
||||
--disable-profiling \
|
||||
--disable-gcov \
|
||||
--disable-python \
|
||||
--disable-python-bindings \
|
||||
--enable-nls \
|
||||
--disable-rpath \
|
||||
--without-dmalloc \
|
||||
--with-gnu-ld \
|
||||
--without-libiconv-prefix \
|
||||
--without-libintl-prefix"
|
@ -1,5 +1,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="SDL2"
|
||||
PKG_VERSION="2.0.8"
|
||||
@ -7,15 +8,23 @@ PKG_SHA256="edc77c57308661d576e843344d8638e025a7818bff73f8fbfab09c3c5fd092ec"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://www.libsdl.org/"
|
||||
PKG_URL="https://www.libsdl.org/release/$PKG_NAME-$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain yasm:host alsa-lib systemd dbus"
|
||||
PKG_DEPENDS_TARGET="toolchain alsa-lib systemd dbus"
|
||||
PKG_LONGDESC="A cross-platform multimedia library designed to provide fast access to the graphics framebuffer and audio device. "
|
||||
PKG_BUILD_FLAGS="+pic"
|
||||
|
||||
if [ "$TARGET_ARCH" = "x86_64" ]; then
|
||||
PKG_DEPENDS_TARGET+=" nasm:host"
|
||||
PKG_SDL2_X86ASM="-DASSEMBLY=ON"
|
||||
else
|
||||
# Only x86(-64) and ppc assembly present as of 2.0.8
|
||||
PKG_SDL2_X86ASM="-DASSEMBLY=OFF"
|
||||
fi
|
||||
|
||||
PKG_CMAKE_OPTS_TARGET="-DSDL_STATIC=ON \
|
||||
-DSDL_SHARED=OFF \
|
||||
-DLIBC=ON \
|
||||
-DGCC_ATOMICS=ON \
|
||||
-DASSEMBLY=ON \
|
||||
$PKG_SDL2_X86ASM \
|
||||
-DALTIVEC=OFF \
|
||||
-DOSS=OFF \
|
||||
-DALSA=ON \
|
||||
|
@ -9,7 +9,7 @@ PKG_SHA256="f25559d4b803321483b28ac9b513671200bdc8e3531c02f0affdd622846a9c5e"
|
||||
PKG_LICENSE="LGPLv2.1+"
|
||||
PKG_SITE="https://ffmpeg.org"
|
||||
PKG_URL="https://github.com/xbmc/FFmpeg/archive/${PKG_VERSION}.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain yasm:host zlib bzip2 openssl speex"
|
||||
PKG_DEPENDS_TARGET="toolchain zlib bzip2 openssl speex"
|
||||
PKG_LONGDESC="FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video."
|
||||
PKG_BUILD_FLAGS="-gold"
|
||||
|
||||
@ -61,9 +61,7 @@ else
|
||||
fi
|
||||
|
||||
if [ "$TARGET_ARCH" = "x86_64" ]; then
|
||||
PKG_FFMPEG_X86ASM="--enable-x86asm --x86asmexe=yasm"
|
||||
else
|
||||
PKG_FFMPEG_X86ASM="--disable-x86asm"
|
||||
PKG_DEPENDS_TARGET+=" nasm:host"
|
||||
fi
|
||||
|
||||
if target_has_feature "(neon|sse)"; then
|
||||
@ -189,7 +187,6 @@ configure_target() {
|
||||
--enable-asm \
|
||||
--disable-altivec \
|
||||
$PKG_FFMPEG_FPU \
|
||||
$PKG_FFMPEG_X86ASM \
|
||||
--disable-symver
|
||||
}
|
||||
|
||||
|
@ -1,9 +1,10 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="libass"
|
||||
PKG_VERSION="0.13.7"
|
||||
PKG_SHA256="7065e5f5fb76e46f2042a62e7c68d81e5482dbeeda24644db1bd066e44da7e9d"
|
||||
PKG_VERSION="0.14.0"
|
||||
PKG_SHA256="881f2382af48aead75b7a0e02e65d88c5ebd369fe46bc77d9270a94aa8fd38a2"
|
||||
PKG_LICENSE="BSD"
|
||||
PKG_SITE="https://github.com/libass/libass"
|
||||
PKG_URL="https://github.com/libass/libass/releases/download/$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||
@ -17,6 +18,6 @@ PKG_CONFIGURE_OPTS_TARGET="--disable-test \
|
||||
--with-gnu-ld"
|
||||
|
||||
if [ $TARGET_ARCH = "x86_64" ]; then
|
||||
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET yasm:host"
|
||||
PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET --enable-asm"
|
||||
PKG_DEPENDS_TARGET+=" nasm:host"
|
||||
PKG_CONFIGURE_OPTS_TARGET+=" --enable-asm"
|
||||
fi
|
||||
|
@ -6,6 +6,6 @@ PKG_VERSION=""
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://libreelec.tv"
|
||||
PKG_URL=""
|
||||
PKG_DEPENDS_TARGET="configtools:host make:host xz:host sed:host pkg-config:host autoconf:host automake:host intltool:host libtool:host autoconf-archive:host gcc:host bison:host flex:host cmake:host xmlstarlet:host yasm:host p7zip:host ninja:host meson:host"
|
||||
PKG_DEPENDS_TARGET="configtools:host make:host xz:host sed:host pkg-config:host autoconf:host automake:host intltool:host libtool:host autoconf-archive:host gcc:host bison:host flex:host cmake:host xmlstarlet:host p7zip:host ninja:host meson:host"
|
||||
PKG_SECTION="virtual"
|
||||
PKG_LONGDESC="LibreELEC.tv' toolchain to compile all packages"
|
||||
|
Loading…
x
Reference in New Issue
Block a user