Commit 8a2aa343 authored by Bernd Kuhls's avatar Bernd Kuhls Committed by Thomas Petazzoni
Browse files
parent fdad2e56
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
config BR2_PACKAGE_LIBEPOXY
	bool "epoxy"
	depends on BR2_PACKAGE_MESA3D
	select BR2_PACKAGE_XLIB_LIBX11
	select BR2_PACKAGE_XUTIL_UTIL_MACROS
	depends on BR2_PACKAGE_HAS_LIBEGL
	help
	  Epoxy is a library for handling OpenGL function pointer management for you.
	  Epoxy is a library for handling OpenGL function pointer
	  management for you.

	  https://github.com/anholt/libepoxy

comment "epoxy needs an OpenGL EGL backend"
	depends on !BR2_PACKAGE_HAS_LIBEGL
+6 −1
Original line number Diff line number Diff line
@@ -8,8 +8,13 @@ LIBEPOXY_VERSION = v1.2
LIBEPOXY_SITE = $(call github,anholt,libepoxy,$(LIBEPOXY_VERSION))
LIBEPOXY_INSTALL_STAGING = YES
LIBEPOXY_AUTORECONF = YES
LIBEPOXY_DEPENDENCIES = mesa3d
LIBEPOXY_DEPENDENCIES = xlib_libX11 xutil_util-macros libegl \
	$(if $(BR2_PACKAGE_HAS_LIBGL),libgl)
LIBEPOXY_LICENSE = MIT
LIBEPOXY_LICENSE_FILES = COPYING

# needed for rpi-userland
LIBEPOXY_CFLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags egl`
LIBEPOXY_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) $(LIBEPOXY_CFLAGS)"

$(eval $(autotools-package))