Merge pull request #6172 from notgood/addlua

mpv-drmprime: enable Lua support for support of built-in stats OSD
This commit is contained in:
CvH 2022-03-04 11:59:55 +01:00 committed by GitHub
commit d35eed2fad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 2 deletions

View File

@ -7,14 +7,14 @@ PKG_SHA256="32ded8c13b6398310fa27767378193dc1db6d78b006b70dbcbd3123a1445e746"
PKG_LICENSE="GPL" PKG_LICENSE="GPL"
PKG_SITE="https://mpv.io/" PKG_SITE="https://mpv.io/"
PKG_URL="https://github.com/mpv-player/mpv/archive/v${PKG_VERSION}.tar.gz" PKG_URL="https://github.com/mpv-player/mpv/archive/v${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain waf:host alsa ffmpeg libass libdrm" PKG_DEPENDS_TARGET="toolchain waf:host alsa ffmpeg libass libdrm lua52"
PKG_LONGDESC="A media player based on MPlayer and mplayer2. It supports a wide variety of video file formats, audio and video codecs, and subtitle types." PKG_LONGDESC="A media player based on MPlayer and mplayer2. It supports a wide variety of video file formats, audio and video codecs, and subtitle types."
PKG_TOOLCHAIN="manual" PKG_TOOLCHAIN="manual"
PKG_BUILD_FLAGS="-sysroot" PKG_BUILD_FLAGS="-sysroot"
PKG_MANUAL_OPTS_TARGET="--prefix=/usr \ PKG_MANUAL_OPTS_TARGET="--prefix=/usr \
--disable-libarchive \ --disable-libarchive \
--disable-lua \ --enable-lua \
--disable-javascript \ --disable-javascript \
--disable-uchardet \ --disable-uchardet \
--disable-rubberband \ --disable-rubberband \

View File

@ -0,0 +1,10 @@
prefix=/usr
libdir=${prefix}/lib
includedir=${prefix}/include/lua@@VERSION_MM@@
Name: Lua
Description: An Extensible Extension Language
Version: @@VERSION@@
Requires:
Libs: -L${libdir} -llua@@VERSION_MM@@ -lm
Cflags: -I${includedir}

View File

@ -0,0 +1,29 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2022-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="lua52"
PKG_VERSION="5.2.4"
PKG_SHA256="b9e2e4aad6789b3b63a056d442f7b39f0ecfca3ae0f1fc0ae4e9614401b69f4b"
PKG_LICENSE="MIT"
PKG_SITE="https://www.lua.org"
PKG_URL="http://www.lua.org/ftp/lua-${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="Lua is a powerful, efficient, lightweight, embeddable scripting language."
make_target() {
make CC=${CC} AR="${AR} rcu" posix
}
makeinstall_target() {
mkdir -p ${SYSROOT_PREFIX}/usr/include/lua$(get_pkg_version_maj_min)
cp src/lua.h src/luaconf.h src/lualib.h src/lauxlib.h ${SYSROOT_PREFIX}/usr/include/lua$(get_pkg_version_maj_min)
mkdir -p ${SYSROOT_PREFIX}/usr/lib
cp src/liblua.a ${SYSROOT_PREFIX}/usr/lib/liblua$(get_pkg_version_maj_min).a
mkdir -p ${SYSROOT_PREFIX}/usr/lib/pkgconfig
cp ${PKG_DIR}/config/lua52.pc ${SYSROOT_PREFIX}/usr/lib/pkgconfig
sed -e "s/@@VERSION@@/${PKG_VERSION}/g" \
-e "s/@@VERSION_MM@@/$(get_pkg_version_maj_min)/g" \
-i ${SYSROOT_PREFIX}/usr/lib/pkgconfig/lua52.pc
}