diff --git a/packages/addons/addon-depends/emby-depends/x264/package.mk b/packages/addons/addon-depends/emby-depends/x264/package.mk new file mode 100644 index 0000000000..f032be49cf --- /dev/null +++ b/packages/addons/addon-depends/emby-depends/x264/package.mk @@ -0,0 +1,53 @@ +################################################################################ +# This file is part of LibreELEC - https://libreelec.tv +# Copyright (C) 2016 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="x264" +PKG_VERSION="snapshot-20160623-2245" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.videolan.org/developers/x264.html" +PKG_URL="ftp://ftp.videolan.org/pub/videolan/x264/snapshots/$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_DEPENDS_TARGET="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="multimedia" +PKG_SHORTDESC="x264" +PKG_LONGDESC="x264" + +PKG_IS_ADDON="no" +PKG_AUTORECONF="no" + +pre_configure_target() { + cd $ROOT/$PKG_BUILD + rm -rf .$TARGET_NAME +} + +configure_target() { + ./configure \ + --prefix="/usr" \ + --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" +}