Skip to content

Commit

Permalink
Merge pull request #3148 from antonlacon/yasm-to-nasm
Browse files Browse the repository at this point in the history
generic: switch from yasm to nasm; update libass to 0.14.0 to support
  • Loading branch information
CvH authored Dec 6, 2018
2 parents 9f45a80 + 625709c commit 0abc2e5
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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 \
Expand Down
32 changes: 22 additions & 10 deletions packages/addons/addon-depends/ffmpegx-depends/x264/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
--host="$TARGET_NAME" \
--prefix="/usr" \
--sysroot="$SYSROOT_PREFIX" \
$PKG_X264_ASM \
--disable-cli \
--enable-static \
--enable-strip \
--disable-asm \
--enable-lto \
--enable-pic \
--host="$TARGET_NAME" \
--cross-prefix="$TARGET_PREFIX" \
--sysroot="$SYSROOT_PREFIX"
--enable-static \
--enable-strip
}
4 changes: 4 additions & 0 deletions packages/addons/addon-depends/ffmpegx/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions packages/lang/nasm/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
25 changes: 0 additions & 25 deletions packages/lang/yasm/package.mk

This file was deleted.

13 changes: 11 additions & 2 deletions packages/multimedia/SDL2/package.mk
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
# 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"
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 \
Expand Down
7 changes: 2 additions & 5 deletions packages/multimedia/ffmpeg/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -189,7 +187,6 @@ configure_target() {
--enable-asm \
--disable-altivec \
$PKG_FFMPEG_FPU \
$PKG_FFMPEG_X86ASM \
--disable-symver
}

Expand Down
9 changes: 5 additions & 4 deletions packages/multimedia/libass/package.mk
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
2 changes: 1 addition & 1 deletion packages/virtual/toolchain/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 0abc2e5

Please sign in to comment.