distribution/packages/graphics/libglvnd/package.mk

32 lines
901 B
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="libglvnd"
PKG_VERSION="1.6.0"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/NVIDIA/libglvnd"
PKG_URL="https://github.com/NVIDIA/libglvnd/archive/v${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="libglvnd is a vendor-neutral dispatch layer for arbitrating OpenGL API calls between multiple vendors."
configure_package() {
if [ "${DISPLAYSERVER}" = "x11" ] || \
[ "${DISPLAYSERVER}" = "wl" ]; then
PKG_DEPENDS_TARGET+=" libX11 libXext xorgproto"
fi
}
pre_configure_target(){
if [ ! "${OPENGL}" = "no" ]
then
PKG_MESON_OPTS_TARGET+=" -Degl=true -Dheaders=true"
fi
if [ ! "${OPENGLES_SUPPORT}" = "no" ]
then
PKG_MESON_OPTS_TARGET+=" -Dgles1=true -Dgles2=true -Dheaders=true"
else
PKG_MESON_OPTS_TARGET+=" -Dgles2=false"
fi
}