distribution/packages/multimedia/gstreamer/gst-plugins-base/package.mk
2022-12-29 14:20:38 -08:00

36 lines
1.2 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2022-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="gst-plugins-base"
PKG_VERSION="$(get_pkg_version gstreamer)"
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() {
PKG_MESON_OPTS_TARGET="-Dexamples=disabled \
-Dtests=disabled \
-Dgobject-cast-checks=disabled \
-Dpackage-name=gst-plugins-base \
-Dpackage-origin=LibreELEC.tv \
-Ddoc=disabled \
-Dnls=disabled"
# Fix undefined symbol glPointSizePointerOES
if [ "${OPENGLES}" = "bcm2835-driver" ]; then
TARGET_LDFLAGS+=" -lEGL -lGLESv2"
fi
# Fix missing dispmanx
if [ "${DEVICE}" = "RPi4" -o "${DEVICE}" = "RPi3" ]; then
PKG_MESON_OPTS_TARGET+=" -Dgl_winsys="egl""
fi
}
post_makeinstall_target() {
# clean up
safe_remove ${INSTALL}/usr/bin
safe_remove ${INSTALL}/usr/share
}