distribution/packages/graphics/libglvnd/package.mk

33 lines
935 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"
2023-10-26 15:45:17 +00:00
PKG_VERSION="1.7.0"
2022-07-01 18:56:04 +00:00
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(){
2023-10-26 15:45:17 +00:00
if [ "${OPENGL_SUPPORT}" = "yes" ]
2022-09-01 00:32:15 +00:00
then
2023-10-26 15:45:17 +00:00
PKG_MESON_OPTS_TARGET+=" -Degl=true -Dglx=enabled -Dheaders=true"
2022-09-01 00:32:15 +00:00
fi
2023-10-26 15:45:17 +00:00
if [ "${OPENGLES_SUPPORT}" = "yes" ]
2022-09-21 10:46:31 +00:00
then
PKG_MESON_OPTS_TARGET+=" -Dgles1=true -Dgles2=true -Dheaders=true"
else
2023-10-26 15:45:17 +00:00
PKG_MESON_OPTS_TARGET+=" -Dgles1=false -Dgles2=false"
2022-07-01 18:56:04 +00:00
fi
}