Makefile 2.0 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 $(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. ifeq ($(ADK_NATIVE),y)
  47. XAKE_FLAGS+= RANLIB=ranlib AR=ar
  48. endif
  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/dri/swrast_dri.so \
  54. ${IDIR_MESALIB}/usr/lib/dri/
  55. ifeq (${ADK_TARGET_SYSTEM_IBM_X40},y)
  56. ${CP} $(WRKINST)/usr/lib/dri/i915_dri.so \
  57. ${IDIR_MESALIB}/usr/lib/dri/
  58. endif
  59. include ${TOPDIR}/mk/pkg-bottom.mk