diff options
author | Phil Sutter <phil@nwl.cc> | 2010-06-12 19:15:14 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2010-06-20 16:20:56 +0200 |
commit | 0549414af010737828696592acec9b263cd0513a (patch) | |
tree | d12737f7fc45403d9ef2697cce053384dedb529e /package/MesaLib/Makefile | |
parent | 2d9d093cdedc57643f3ef2c1a6a5b20d96f7e080 (diff) |
MesaLib: enable for lemote
No render support for siliconmotion, so use swraster driver. Also the
obligatory SAREA fix is needed here.
Diffstat (limited to 'package/MesaLib/Makefile')
-rw-r--r-- | package/MesaLib/Makefile | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/package/MesaLib/Makefile b/package/MesaLib/Makefile index 0a4ff3b9a..a5f624374 100644 --- a/package/MesaLib/Makefile +++ b/package/MesaLib/Makefile @@ -23,11 +23,22 @@ include $(TOPDIR)/mk/package.mk $(eval $(call PKG_template,MESALIB,mesalib,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +ifeq (${ADK_LINUX_X86_IBMX40},y) +DRI_DRIVERS:=i810 +endif + +# Lemote's SMI712 is not directly supported by Mesa, +# and at least some SIS driver fails to build when +# keeping the driver auto-selection intact. +ifeq (${ADK_LINUX_MIPS64_LEMOTE},y) +DRI_DRIVERS:=swrast +endif + CONFIGURE_ARGS+= --disable-static \ --disable-gallium \ --disable-glw \ --with-driver=dri \ - --with-dri-drivers=i810 \ + --with-dri-drivers=${DRI_DRIVERS} \ --without-demos XAKE_FLAGS+= APP_CC=${HOSTCC} HOST_CC=${HOSTCC} @@ -48,8 +59,12 @@ pre-configure: ${MAKE} -C ${WRKBUILD}/src/glsl clean post-install: - $(INSTALL_DIR) $(IDIR_MESALIB)/usr/lib + $(INSTALL_DIR) $(IDIR_MESALIB)/usr/lib/dri $(CP) $(WRKINST)/usr/lib/libGL*.so* \ $(IDIR_MESALIB)/usr/lib +ifeq (${ADK_LINUX_MIPS64_LEMOTE},y) + $(INSTALL_BIN) $(WRKINST)/usr/lib/dri/swrast_dri.so \ + ${IDIR_MESALIB}/usr/lib/dri/ +endif include ${TOPDIR}/mk/pkg-bottom.mk |