Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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:= 10.1.0
  6. PKG_SUBVER:= 10.1
  7. PKG_RELEASE:= 3
  8. PKG_MD5SUM:= 08e796ec7122aa299d32d4f67a254315
  9. PKG_DESCR:= MESA 3D graphics library
  10. PKG_SECTION:= libs
  11. PKG_DEPENDS:= libxdamage libxfixes libdrm libxxf86vm libexpat
  12. PKG_DEPENDS+= libxml2 libxml2-python
  13. PKG_BUILDDEP:= autotool python2 libxml2 libXdamage libXfixes
  14. PKG_BUILDDEP+= libXxf86vm libdrm dri2proto glproto expat libXext
  15. PKG_BUILDDEP+= eudev dri3proto presentproto xcb-proto libxcb
  16. PKG_BUILDDEP+= libxshmfence
  17. PKG_URL:= http://www.mesa3d.org/
  18. PKG_SITES:= ftp://ftp.freedesktop.org/pub/mesa/${PKG_SUBVER}/
  19. PKG_NEED_CXX:= 1
  20. PKG_LIBNAME:= mesalib
  21. PKG_OPTS:= dev
  22. PKG_ARCH_DEPENDS:= x86 x86_64 mips mipsel mips64 mips64el arm
  23. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  24. WRKDIST= ${WRKDIR}/Mesa-${PKG_VERSION}
  25. include $(TOPDIR)/mk/package.mk
  26. $(eval $(call PKG_template,MESALIB,mesalib,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  27. include $(TOPDIR)/mk/python.mk
  28. ifeq ($(ADK_HOST_DARWIN),y)
  29. PYTHON:=/opt/local/bin/python2.7
  30. endif
  31. ifeq ($(ADK_HOST_OPENBSD),y)
  32. PYTHON:=/usr/local/bin/python2.7
  33. endif
  34. ifeq ($(ADK_HOST_CYGWIN),y)
  35. PYTHON:=/usr/bin/python2.7
  36. endif
  37. ifeq (${ADK_TARGET_SYSTEM_IBM_X40},y)
  38. DRI_DRIVERS:=i915
  39. endif
  40. AUTOTOOL_STYLE:= autoreconf
  41. CONFIGURE_ARGS+= --disable-static \
  42. --disable-gallium-llvm \
  43. --with-gallium-drivers=swrast \
  44. --disable-gles1 \
  45. --disable-gles2 \
  46. --with-dri-drivers=${DRI_DRIVERS},swrast
  47. CONFIGURE_ENV+= MISSING="echo" \
  48. PYTHON2=$(PYTHON)
  49. XAKE_FLAGS+= HOST_CC=${CC_FOR_BUILD}
  50. mesalib-install:
  51. $(INSTALL_DIR) $(IDIR_MESALIB)/usr/lib/dri
  52. $(CP) $(WRKINST)/usr/lib/libGL*.so* \
  53. $(IDIR_MESALIB)/usr/lib
  54. $(CP) $(WRKINST)/usr/lib/libglapi.so* \
  55. $(IDIR_MESALIB)/usr/lib
  56. ${CP} $(WRKINST)/usr/lib/dri/swrast_dri.so \
  57. ${IDIR_MESALIB}/usr/lib/dri/
  58. ifeq (${ADK_TARGET_SYSTEM_IBM_X40},y)
  59. ${CP} $(WRKINST)/usr/lib/dri/i915_dri.so \
  60. ${IDIR_MESALIB}/usr/lib/dri/
  61. endif
  62. include ${TOPDIR}/mk/pkg-bottom.mk