30 lines
1012 B
Makefile
30 lines
1012 B
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
# 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.5"
|
|
PKG_SHA256="5d80a43a6524a1ebdd0c9c5d5105295546a0794681853c636a0c70f8f9c658ce"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="https://github.com/anholt/libepoxy"
|
|
PKG_URL="https://github.com/anholt/libepoxy/archive/${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
PKG_LONGDESC="Epoxy is a library for handling OpenGL function pointer management for you."
|
|
|
|
if [ "${OPENGL_SUPPORT}" = "yes" ]; then
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL}"
|
|
fi
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = "yes" ]; then
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
fi
|
|
|
|
if [ "${DISPLAYSERVER}" != "x11" ]; then
|
|
PKG_MESON_OPTS_TARGET="-Dglx=no"
|
|
fi
|