Makefile 2.1 KB

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