python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / mesa3d-demos / mesa3d-demos.mk
blobcbc15c3b696fc2a65a931693317b735cd0394bcb
1 ################################################################################
3 # mesa3d-demos
5 ################################################################################
7 MESA3D_DEMOS_VERSION = 8.3.0
8 MESA3D_DEMOS_SOURCE = mesa-demos-$(MESA3D_DEMOS_VERSION).tar.bz2
9 MESA3D_DEMOS_SITE = ftp://ftp.freedesktop.org/pub/mesa/demos/$(MESA3D_DEMOS_VERSION)
10 MESA3D_DEMOS_AUTORECONF = YES
11 MESA3D_DEMOS_DEPENDENCIES = host-pkgconf
12 MESA3D_DEMOS_LICENSE = MIT
14 MESA3D_DEMOS_CONF_OPTS += \
15 --disable-osmesa \
16 --disable-gles1
18 ifeq ($(BR2_PACKAGE_XORG7)$(BR2_PACKAGE_HAS_LIBGL),yy)
19 MESA3D_DEMOS_DEPENDENCIES += libgl libglew libglu xlib_libX11 xlib_libXext
20 MESA3D_DEMOS_CONF_OPTS += --enable-gl --enable-x11
21 else
22 MESA3D_DEMOS_CONF_OPTS += --disable-gl --disable-x11
23 endif
25 ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y)
26 MESA3D_DEMOS_DEPENDENCIES += libegl
27 MESA3D_DEMOS_CONF_OPTS += --enable-egl
28 else
29 MESA3D_DEMOS_CONF_OPTS += --disable-egl
30 endif
32 ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
33 MESA3D_DEMOS_DEPENDENCIES += libgles
34 MESA3D_DEMOS_CONF_OPTS += --enable-gles2
35 else
36 MESA3D_DEMOS_CONF_OPTS += --disable-gles2
37 endif
39 ifeq ($(BR2_PACKAGE_HAS_LIBOPENVG),y)
40 MESA3D_DEMOS_DEPENDENCIES += libopenvg
41 MESA3D_DEMOS_CONF_OPTS += --enable-vg
42 else
43 MESA3D_DEMOS_CONF_OPTS += --disable-vg
44 endif
46 ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
47 MESA3D_DEMOS_DEPENDENCIES += mesa3d
48 MESA3D_DEMOS_CONF_OPTS += --enable-gbm
49 else
50 MESA3D_DEMOS_CONF_OPTS += --disable-gbm
51 endif
53 ifeq ($(BR2_PACKAGE_FREETYPE),y)
54 MESA3D_DEMOS_DEPENDENCIES += freetype
55 MESA3D_DEMOS_CONF_OPTS += --enable-freetype2
56 else
57 MESA3D_DEMOS_CONF_OPTS += --disable-freetype2
58 endif
60 ifeq ($(BR2_PACKAGE_LIBFREEGLUT),y)
61 MESA3D_DEMOS_DEPENDENCIES += libfreeglut
62 MESA3D_DEMOS_CONF_OPTS += --with-glut=$(STAGING_DIR)/usr
63 # osmesa support depends on glut
64 ifeq ($(BR2_PACKAGE_MESA3D_OSMESA),y)
65 MESA3D_DEMOS_CONF_OPTS += --enable-osmesa
66 else
67 MESA3D_DEMOS_CONF_OPTS += --disable-osmesa
68 endif
69 else
70 MESA3D_DEMOS_CONF_OPTS += --without-glut --disable-osmesa
71 endif
73 ifeq ($(BR2_PACKAGE_WAYLAND),y)
74 MESA3D_DEMOS_DEPENDENCIES += wayland
75 MESA3D_DEMOS_CONF_OPTS += --enable-wayland
76 else
77 MESA3D_DEMOS_CONF_OPTS += --disable-wayland
78 endif
80 $(eval $(autotools-package))