distribution/packages/graphics/libepoxy/package.mk

31 lines
1,012 B
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2018 Team LibreELEC (https://libreelec.tv)
# Copyright (C) 2018-present Team CoreELEC (https://coreelec.org)
# libepoxy (actually) needs to be built shared, to avoid
# (EE) Failed to load /usr/lib/xorg/modules/libglamoregl.so:
# /usr/lib/xorg/modules/libglamoregl.so: undefined symbol: epoxy_eglCreateImageKHR
# in Xorg.log
PKG_NAME="libepoxy"
PKG_VERSION="1.5.10"
2022-02-05 14:23:32 +00:00
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/anholt/libepoxy"
PKG_URL="${PKG_SITE}/archive/refs/tags/${PKG_VERSION}.tar.gz"
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="Epoxy is a library for handling OpenGL function pointer management for you."
if [ "${OPENGL}" != "no" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGL}"
2022-02-05 14:23:32 +00:00
fi
if [ "${OPENGLES}" != "no" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
2022-02-05 14:23:32 +00:00
fi
if [ "${DISPLAYSERVER}" != "x11" ] && \
[ "${DISPLAYSERVER}" != "wl" ]; then
2022-02-05 14:23:32 +00:00
PKG_CONFIGURE_OPTS_TARGET="--disable-glx"
fi