From 5135f3911dcfbab5fa33bd804a1cd30bdb413d80 Mon Sep 17 00:00:00 2001 From: cvh Date: Fri, 22 Sep 2017 12:00:40 +0200 Subject: [PATCH] libvpx: initial package --- .../ffmpegx-depends/libvpx/package.mk | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 packages/addons/addon-depends/ffmpegx-depends/libvpx/package.mk diff --git a/packages/addons/addon-depends/ffmpegx-depends/libvpx/package.mk b/packages/addons/addon-depends/ffmpegx-depends/libvpx/package.mk new file mode 100644 index 0000000000..7658a655ff --- /dev/null +++ b/packages/addons/addon-depends/ffmpegx-depends/libvpx/package.mk @@ -0,0 +1,61 @@ +################################################################################ +# This file is part of LibreELEC - https://libreelec.tv +# Copyright (C) 2016-present Team LibreELEC +# +# LibreELEC is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# LibreELEC is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with LibreELEC. If not, see . +################################################################################ + +PKG_NAME="libvpx" +PKG_VERSION="1.6.1" +PKG_ARCH="any" +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_SECTION="multimedia" +PKG_SHORTDESC="WebM VP8/VP9 Codec SDK" +PKG_LONGDESC="The WebM Project is dedicated to developing a high-quality, open video format for the web that's freely available to everyone." +PKG_AUTORECONF="no" + +configure_target() { + + case $ARCH in + aarch64) + TARGET_NAME_LIBVPX="arm64-linux-gcc" + ;; + arm) + TARGET_NAME_LIBVPX="armv7-linux-gcc" + ;; + x86_64) + TARGET_NAME_LIBVPX="x86_64-linux-gcc" + ;; + esac + + $PKG_CONFIGURE_SCRIPT --prefix=/usr \ + --extra-cflags="$CFLAGS" \ + --as=yasm \ + --target=$TARGET_NAME_LIBVPX \ + --disable-docs \ + --disable-examples \ + --disable-shared \ + --disable-tools \ + --disable-unit-tests \ + --disable-vp8-decoder \ + --disable-vp9-decoder \ + --enable-ccache \ + --enable-pic \ + --enable-static \ + --enable-vp8 \ + --enable-vp9 +}