Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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:= 2
  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_HOST_OPENBSD),y)
  28. PYTHON:=/usr/local/bin/python2.7
  29. endif
  30. ifeq ($(ADK_HOST_CYGWIN),y)
  31. PYTHON:=/usr/bin/python2.7
  32. endif
  33. ifeq (${ADK_TARGET_SYSTEM_IBM_X40},y)
  34. DRI_DRIVERS:=i915
  35. endif
  36. AUTOTOOL_STYLE:= autoreconf
  37. CONFIGURE_ARGS+= --disable-static \
  38. --disable-gallium-llvm \
  39. --with-gallium-drivers=swrast \
  40. --disable-gles1 \
  41. --disable-gles2 \
  42. --with-dri-drivers=${DRI_DRIVERS},swrast
  43. CONFIGURE_ENV+= MISSING="echo" \
  44. PYTHON2=$(PYTHON)
  45. XAKE_FLAGS+= HOST_CC=${CC_FOR_BUILD}
  46. mesalib-install:
  47. $(INSTALL_DIR) $(IDIR_MESALIB)/usr/lib/dri
  48. $(CP) $(WRKINST)/usr/lib/libGL*.so* \
  49. $(IDIR_MESALIB)/usr/lib
  50. ${CP} $(WRKINST)/usr/lib/dri/swrast_dri.so \
  51. ${IDIR_MESALIB}/usr/lib/dri/
  52. ifeq (${ADK_TARGET_SYSTEM_IBM_X40},y)
  53. ${CP} $(WRKINST)/usr/lib/dri/i915_dri.so \
  54. ${IDIR_MESALIB}/usr/lib/dri/
  55. endif
  56. include ${TOPDIR}/mk/pkg-bottom.mk