Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= MesaLib
  5. PKG_VERSION:= 9.2.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= df801a975045150790e10e2ccf32193f
  8. PKG_DESCR:= MESA 3D graphics library
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libxdamage libxfixes libdrm libxxf86vm libexpat
  11. PKG_DEPENDS+= libxml2 libxml2-python
  12. PKG_BUILDDEP:= autotool python2 libxml2 libXdamage libXfixes libXxf86vm libdrm
  13. PKG_BUILDDEP+= dri2proto glproto expat libXext
  14. PKG_URL:= http://www.mesa3d.org/
  15. PKG_SITES:= ftp://ftp.freedesktop.org/pub/mesa/${PKG_VERSION}/
  16. PKG_NEED_CXX:= 1
  17. PKG_LIBNAME:= mesalib
  18. PKG_OPTS:= dev
  19. PKG_ARCH_DEPENDS:= x86 x86_64 mips mipsel mips64 mips64el arm
  20. WRKDIST= ${WRKDIR}/Mesa-${PKG_VERSION}
  21. include $(TOPDIR)/mk/package.mk
  22. $(eval $(call PKG_template,MESALIB,mesalib,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  23. include $(TOPDIR)/mk/python.mk
  24. ifeq ($(ADK_HOST_DARWIN),y)
  25. PYTHON:=/opt/local/bin/python2.7
  26. endif
  27. ifeq (${ADK_TARGET_SYSTEM_IBM_X40},y)
  28. DRI_DRIVERS:=i915
  29. endif
  30. AUTOTOOL_STYLE:= autoreconf
  31. CONFIGURE_ARGS+= --disable-static \
  32. --disable-gallium-llvm \
  33. --with-gallium-drivers=swrast \
  34. --disable-gles1 \
  35. --disable-gles2 \
  36. --with-dri-drivers=${DRI_DRIVERS},swrast
  37. CONFIGURE_ENV+= MISSING="echo" \
  38. PYTHON2=$(PYTHON)
  39. XAKE_FLAGS+= HOST_CC=${CC_FOR_BUILD}
  40. ifeq ($(ADK_NATIVE),y)
  41. XAKE_FLAGS+= RANLIB=ranlib AR=ar
  42. endif
  43. mesalib-install:
  44. $(INSTALL_DIR) $(IDIR_MESALIB)/usr/lib/dri
  45. $(CP) $(WRKINST)/usr/lib/libGL*.so* \
  46. $(IDIR_MESALIB)/usr/lib
  47. ${CP} $(WRKINST)/usr/lib/dri/swrast_dri.so \
  48. ${IDIR_MESALIB}/usr/lib/dri/
  49. ifeq (${ADK_TARGET_SYSTEM_IBM_X40},y)
  50. ${CP} $(WRKINST)/usr/lib/dri/i915_dri.so \
  51. ${IDIR_MESALIB}/usr/lib/dri/
  52. endif
  53. include ${TOPDIR}/mk/pkg-bottom.mk