summaryrefslogtreecommitdiff
path: root/package/x11r7/mesa3d/mesa3d.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/x11r7/mesa3d/mesa3d.mk')
-rw-r--r--package/x11r7/mesa3d/mesa3d.mk16
1 files changed, 15 insertions, 1 deletions
diff --git a/package/x11r7/mesa3d/mesa3d.mk b/package/x11r7/mesa3d/mesa3d.mk
index b0d0b1c76..886644084 100644
--- a/package/x11r7/mesa3d/mesa3d.mk
+++ b/package/x11r7/mesa3d/mesa3d.mk
@@ -7,9 +7,23 @@ MESA3D_VERSION:=7.0.3
MESA3D_SOURCE:=MesaLib-$(MESA3D_VERSION).tar.gz
MESA3D_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/mesa3d
MESA3D_DIR:=$(BUILD_DIR)/Mesa-$(MESA3D_VERSION)
-MESA_TARGET=linux-dri-x86
+MESA_TARGET:=linux-dri
+
+ifeq ($(BR2_i386),y)
+MESA_TARGET:=linux-dri-x86
+endif
+
+ifeq ($(BR2_x86_64),y)
+MESA_TARGET:=linux-dri-x86-64
+endif
+
+ifeq ($(BR2_ppc),y)
+MESA_TARGET:=linux-dri-ppc
+endif
+
MESA_BUILD_ENV=$(TARGET_CONFIGURE_OPTS)
MESA_CONFIG_FILE=$(MESA3D_DIR)/configs/$(MESA_TARGET)
+
#MESA_DRIVERS= i810 i915 i965 mga mach64 r128 r200 r300 s3v savage sis ffb tdfx trident unichrome
MESA_DRIVERS=