Makefile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 libstdcxx
  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_LIBNAME:= mesalib
  20. PKG_OPTS:= dev
  21. PKG_ARCH_DEPENDS:= x86 x86_64 mips mipsel mips64 mips64el arm
  22. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  23. WRKDIST= ${WRKDIR}/Mesa-${PKG_VERSION}
  24. include $(TOPDIR)/mk/package.mk
  25. $(eval $(call PKG_template,MESALIB,mesalib,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  26. include $(TOPDIR)/mk/python.mk
  27. ifeq ($(ADK_HOST_DARWIN),y)
  28. PYTHON:=/opt/local/bin/python2.7
  29. endif
  30. ifeq ($(ADK_HOST_OPENBSD),y)
  31. PYTHON:=/usr/local/bin/python2.7
  32. endif
  33. ifeq ($(ADK_HOST_CYGWIN),y)
  34. PYTHON:=/usr/bin/python2.7
  35. endif
  36. ifeq (${ADK_TARGET_SYSTEM_IBM_X40},y)
  37. DRI_DRIVERS:=i915
  38. endif
  39. AUTOTOOL_STYLE:= autoreconf
  40. CONFIGURE_ARGS+= --disable-static \
  41. --disable-gallium-llvm \
  42. --with-gallium-drivers=swrast \
  43. --disable-gles1 \
  44. --disable-gles2 \
  45. --with-dri-drivers=${DRI_DRIVERS},swrast
  46. CONFIGURE_ENV+= MISSING="echo" \
  47. PYTHON2=$(PYTHON)
  48. XAKE_FLAGS+= HOST_CC=${CC_FOR_BUILD}
  49. mesalib-install:
  50. $(INSTALL_DIR) $(IDIR_MESALIB)/usr/lib/dri
  51. $(CP) $(WRKINST)/usr/lib/libGL*.so* \
  52. $(IDIR_MESALIB)/usr/lib
  53. $(CP) $(WRKINST)/usr/lib/libglapi.so* \
  54. $(IDIR_MESALIB)/usr/lib
  55. ${CP} $(WRKINST)/usr/lib/dri/swrast_dri.so \
  56. ${IDIR_MESALIB}/usr/lib/dri/
  57. ifeq (${ADK_TARGET_SYSTEM_IBM_X40},y)
  58. ${CP} $(WRKINST)/usr/lib/dri/i915_dri.so \
  59. ${IDIR_MESALIB}/usr/lib/dri/
  60. endif
  61. include ${TOPDIR}/mk/pkg-bottom.mk