distribution/packages/graphics/libglvnd/package.mk

34 lines
979 B
Makefile
Raw Normal View History

2022-07-01 18:56:04 +00:00
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="libglvnd"
PKG_VERSION="1.4.0"
PKG_SHA256="1eb5c2be8d213ad5d31cfb4efbb331d42f3d9f5617c885ce7e89f572ec2bb4b8"
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
2022-07-01 18:56:04 +00:00
PKG_DEPENDS_TARGET+=" libX11 libXext xorgproto"
fi
}
pre_configure_target(){
2022-09-01 00:32:15 +00:00
if [ ! "${OPENGL}" = "no" ]
then
2022-09-21 10:46:31 +00:00
PKG_MESON_OPTS_TARGET+=" -Degl=true -Dheaders=true"
2022-09-01 00:32:15 +00:00
fi
2022-09-21 10:46:31 +00:00
if [ ! "${OPENGLES_SUPPORT}" = "no" ]
then
PKG_MESON_OPTS_TARGET+=" -Dgles1=true -Dgles2=true -Dheaders=true"
else
2022-07-01 18:56:04 +00:00
PKG_MESON_OPTS_TARGET+=" -Dgles2=false"
fi
}