xref: /OK3568_Linux_fs/buildroot/package/mesa3d-demos/mesa3d-demos.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# mesa3d-demos
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunMESA3D_DEMOS_VERSION = 8.4.0
8*4882a593SmuzhiyunMESA3D_DEMOS_SOURCE = mesa-demos-$(MESA3D_DEMOS_VERSION).tar.bz2
9*4882a593SmuzhiyunMESA3D_DEMOS_SITE = ftp://ftp.freedesktop.org/pub/mesa/demos
10*4882a593Smuzhiyun# 0001-demos-makes-opengl-an-optional-component.patch
11*4882a593SmuzhiyunMESA3D_DEMOS_AUTORECONF = YES
12*4882a593SmuzhiyunMESA3D_DEMOS_DEPENDENCIES = host-pkgconf
13*4882a593SmuzhiyunMESA3D_DEMOS_LICENSE = MIT
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += \
16*4882a593Smuzhiyun	--disable-gles1
17*4882a593Smuzhiyun
18*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_XORG7)$(BR2_PACKAGE_HAS_LIBGL),yy)
19*4882a593SmuzhiyunMESA3D_DEMOS_DEPENDENCIES += libgl libglew libglu xlib_libX11 xlib_libXext
20*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += --enable-gl --enable-x11
21*4882a593Smuzhiyunelse
22*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += --disable-gl --disable-x11
23*4882a593Smuzhiyunendif
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_HAS_LIBEGL),y)
26*4882a593SmuzhiyunMESA3D_DEMOS_DEPENDENCIES += libegl
27*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += --enable-egl
28*4882a593Smuzhiyunelse
29*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += --disable-egl
30*4882a593Smuzhiyunendif
31*4882a593Smuzhiyun
32*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
33*4882a593SmuzhiyunMESA3D_DEMOS_DEPENDENCIES += libgles
34*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += --enable-gles2
35*4882a593Smuzhiyunelse
36*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += --disable-gles2
37*4882a593Smuzhiyunendif
38*4882a593Smuzhiyun
39*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_HAS_LIBOPENVG),y)
40*4882a593SmuzhiyunMESA3D_DEMOS_DEPENDENCIES += libopenvg
41*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += --enable-vg
42*4882a593Smuzhiyunelse
43*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += --disable-vg
44*4882a593Smuzhiyunendif
45*4882a593Smuzhiyun
46*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_MESA3D_GBM),y)
47*4882a593SmuzhiyunMESA3D_DEMOS_DEPENDENCIES += mesa3d
48*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += --enable-gbm
49*4882a593Smuzhiyunelse
50*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += --disable-gbm
51*4882a593Smuzhiyunendif
52*4882a593Smuzhiyun
53*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_FREETYPE),y)
54*4882a593SmuzhiyunMESA3D_DEMOS_DEPENDENCIES += freetype
55*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += --enable-freetype2
56*4882a593Smuzhiyunelse
57*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += --disable-freetype2
58*4882a593Smuzhiyunendif
59*4882a593Smuzhiyun
60*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBFREEGLUT),y)
61*4882a593SmuzhiyunMESA3D_DEMOS_DEPENDENCIES += libfreeglut
62*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += --with-glut=$(STAGING_DIR)/usr
63*4882a593Smuzhiyun# osmesa support depends on glut
64*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_MESA3D_OSMESA_GALLIUM),y)
65*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += --enable-osmesa
66*4882a593Smuzhiyunelse
67*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += --disable-osmesa
68*4882a593Smuzhiyunendif
69*4882a593Smuzhiyunelse
70*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += --without-glut --disable-osmesa
71*4882a593Smuzhiyunendif
72*4882a593Smuzhiyun
73*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_WAYLAND),y)
74*4882a593SmuzhiyunMESA3D_DEMOS_DEPENDENCIES += wayland
75*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += --enable-wayland
76*4882a593Smuzhiyunelse
77*4882a593SmuzhiyunMESA3D_DEMOS_CONF_OPTS += --disable-wayland
78*4882a593Smuzhiyunendif
79*4882a593Smuzhiyun
80*4882a593Smuzhiyun$(eval $(autotools-package))
81