1 ################################################################################
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
+= \
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
22 MESA3D_DEMOS_CONF_OPTS
+= --disable-gl
--disable-x11
25 ifeq ($(BR2_PACKAGE_HAS_LIBEGL
),y
)
26 MESA3D_DEMOS_DEPENDENCIES
+= libegl
27 MESA3D_DEMOS_CONF_OPTS
+= --enable-egl
29 MESA3D_DEMOS_CONF_OPTS
+= --disable-egl
32 ifeq ($(BR2_PACKAGE_HAS_LIBGLES
),y
)
33 MESA3D_DEMOS_DEPENDENCIES
+= libgles
34 MESA3D_DEMOS_CONF_OPTS
+= --enable-gles2
36 MESA3D_DEMOS_CONF_OPTS
+= --disable-gles2
39 ifeq ($(BR2_PACKAGE_HAS_LIBOPENVG
),y
)
40 MESA3D_DEMOS_DEPENDENCIES
+= libopenvg
41 MESA3D_DEMOS_CONF_OPTS
+= --enable-vg
43 MESA3D_DEMOS_CONF_OPTS
+= --disable-vg
46 ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL
),y
)
47 MESA3D_DEMOS_DEPENDENCIES
+= mesa3d
48 MESA3D_DEMOS_CONF_OPTS
+= --enable-gbm
50 MESA3D_DEMOS_CONF_OPTS
+= --disable-gbm
53 ifeq ($(BR2_PACKAGE_FREETYPE
),y
)
54 MESA3D_DEMOS_DEPENDENCIES
+= freetype
55 MESA3D_DEMOS_CONF_OPTS
+= --enable-freetype2
57 MESA3D_DEMOS_CONF_OPTS
+= --disable-freetype2
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
67 MESA3D_DEMOS_CONF_OPTS
+= --disable-osmesa
70 MESA3D_DEMOS_CONF_OPTS
+= --without-glut
--disable-osmesa
73 ifeq ($(BR2_PACKAGE_WAYLAND
),y
)
74 MESA3D_DEMOS_DEPENDENCIES
+= wayland
75 MESA3D_DEMOS_CONF_OPTS
+= --enable-wayland
77 MESA3D_DEMOS_CONF_OPTS
+= --disable-wayland
80 $(eval
$(autotools-package
))