2022-12-09 13:54:53 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2022-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="gst-plugins-base"
|
2022-12-29 22:20:38 +00:00
|
|
|
PKG_VERSION="$(get_pkg_version gstreamer)"
|
2022-12-09 13:54:53 +00:00
|
|
|
PKG_LICENSE="GPL-2.1-or-later"
|
|
|
|
PKG_SITE="https://gstreamer.freedesktop.org/modules/gst-plugins-base.html"
|
|
|
|
PKG_URL="https://gstreamer.freedesktop.org/src/gst-plugins-base/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain gstreamer"
|
|
|
|
PKG_LONGDESC="Base GStreamer plugins and helper libraries"
|
|
|
|
PKG_BUILD_FLAGS="-gold"
|
|
|
|
|
|
|
|
pre_configure_target() {
|
2022-12-29 22:20:38 +00:00
|
|
|
PKG_MESON_OPTS_TARGET="-Dexamples=disabled \
|
2022-12-09 13:54:53 +00:00
|
|
|
-Dtests=disabled \
|
|
|
|
-Dgobject-cast-checks=disabled \
|
|
|
|
-Dpackage-name=gst-plugins-base \
|
|
|
|
-Dpackage-origin=LibreELEC.tv \
|
2022-12-29 22:20:38 +00:00
|
|
|
-Ddoc=disabled \
|
|
|
|
-Dnls=disabled"
|
|
|
|
|
|
|
|
# Fix missing dispmanx
|
2023-02-16 22:40:39 +00:00
|
|
|
case ${DEVICE} in
|
2023-05-08 22:47:28 +00:00
|
|
|
RK3*|S922X*)
|
2023-02-16 22:40:39 +00:00
|
|
|
PKG_MESON_OPTS_TARGET+=" -Dgl-graphene=disabled"
|
|
|
|
;;
|
|
|
|
esac
|
2022-12-09 13:54:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
|
|
|
# clean up
|
2022-12-29 22:20:38 +00:00
|
|
|
safe_remove ${INSTALL}/usr/bin
|
|
|
|
safe_remove ${INSTALL}/usr/share
|
2022-12-09 13:54:53 +00:00
|
|
|
}
|