logrotate: fix build with gcc 6
[buildroot-gz.git] / package / glmark2 / glmark2.mk
blob2f662fee9731be287e6e5fba9fffe939d4e1a870
1 ################################################################################
3 # glmark2
5 ################################################################################
7 GLMARK2_VERSION = fa71af2dfab711fac87b9504b6fc9862f44bf72a
8 GLMARK2_SITE = $(call github,glmark2,glmark2,$(GLMARK2_VERSION))
9 GLMARK2_LICENSE = GPLv3+ SGIv1
10 GLMARK2_LICENSE_FILES = COPYING COPYING.SGI
11 GLMARK2_DEPENDENCIES = host-pkgconf host-python jpeg libpng \
12 $(if $(BR2_PACKAGE_HAS_LIBEGL),libegl) \
13 $(if $(BR2_PACKAGE_HAS_LIBGLES),libgles) \
14 $(if $(BR2_PACKAGE_HAS_LIBGL),libgl)
16 ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
17 GLMARK2_DEPENDENCIES += xlib_libX11
18 ifeq ($(BR2_PACKAGE_HAS_LIBEGL)$(BR2_PACKAGE_HAS_LIBGLES),yy)
19 GLMARK2_FLAVORS += x11-glesv2
20 endif
21 ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
22 GLMARK2_FLAVORS += x11-gl
23 endif
24 endif
26 ifeq ($(BR2_PACKAGE_HAS_LIBEGL)$(BR2_PACKAGE_HAS_LIBGLES),yy)
27 GLMARK2_FLAVORS += drm-glesv2
28 endif
30 ifeq ($(BR2_PACKAGE_HAS_LIBEGL)$(BR2_PACKAGE_HAS_LIBGL),yy)
31 GLMARK2_FLAVORS += drm-gl
32 endif
34 ifeq ($(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_HAS_LIBEGL)$(BR2_PACKAGE_HAS_LIBGLES),yyy)
35 GLMARK2_DEPENDENCIES += wayland
36 GLMARK2_FLAVORS += wayland-glesv2
37 endif
39 ifeq ($(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_HAS_LIBEGL)$(BR2_PACKAGE_HAS_LIBGL),yyy)
40 GLMARK2_DEPENDENCIES += wayland
41 GLMARK2_FLAVORS += wayland-gl
42 endif
44 GLMARK2_CONF_OPTS += \
45 --prefix=/usr \
46 --with-flavors=$(subst $(space),$(comma),$(GLMARK2_FLAVORS))
48 define GLMARK2_CONFIGURE_CMDS
49 (cd $(@D); \
50 $(TARGET_CONFIGURE_OPTS) \
51 $(GLMARK2_CONF_ENV) \
52 $(HOST_DIR)/usr/bin/python2 ./waf configure $(GLMARK2_CONF_OPTS) \
54 endef
56 define GLMARK2_BUILD_CMDS
57 cd $(@D) && $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/python2 ./waf
58 endef
60 define GLMARK2_INSTALL_TARGET_CMDS
61 cd $(@D) && $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/python2 ./waf install --destdir=$(TARGET_DIR)
62 endef
64 $(eval $(generic-package))