1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
9 PKG_HASH
:= 518307c0057fa3cee8b58df78be431d4df5aafa7edc60d09278b2d7a0a80f3b4
10 PKG_DESCR
:= 3d graphics library
11 PKG_SECTION
:= libs
/video
12 PKG_DEPENDS
:= libxdamage libxfixes libdrm libxxf86vm libexpat
14 PKG_BUILDDEP
:= python3 libxml2 libXdamage libXfixes libXrandr
15 PKG_BUILDDEP
+= libXxf86vm libdrm dri2proto glproto expat libXext
16 PKG_BUILDDEP
+= eudev dri3proto presentproto xcb-proto libxcb
17 PKG_BUILDDEP
+= libxshmfence python-mako-host
19 PKG_URL
:= http
://www.mesa3d.org
/
20 PKG_SITES
:= ftp
://ftp.freedesktop.org
/pub
/mesa
/
24 PKG_ARCH_DEPENDS
:= x86 x86_64 mips mipsel mips64 mips64el arm aarch64
26 include $(ADK_TOPDIR
)/mk
/package.mk
28 $(eval
$(call PKG_template
,MESA
,mesa
,$(PKG_VERSION
)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
30 WRKBUILD
= $(WRKDIR
)/$(PKG_NAME
)-obj
35 MESON_FLAGS
+= -Dllvm
=disabled \
36 -Dgallium-drivers
=swrast
,panfrost
,vc4
,v3d \
42 $(INSTALL_DIR
) $(IDIR_MESA
)/usr
/lib
/dri
43 $(CP
) $(WRKINST
)/usr
/lib
/libEGL
*.so
* \
45 $(CP
) $(WRKINST
)/usr
/lib
/libGL
*.so
* \
47 $(CP
) $(WRKINST
)/usr
/lib
/libglapi.so
* \
49 $(CP
) $(WRKINST
)/usr
/lib
/libgbm.so
* \
51 ${CP} $(WRKINST
)/usr
/lib
/dri
/*.so \
52 ${IDIR_MESA}/usr
/lib
/dri
/
54 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk