diff options
Diffstat (limited to 'package/mesa')
-rw-r--r-- | package/mesa/Makefile | 14 | ||||
-rw-r--r-- | package/mesa/patches/patch-meson_build | 23 |
2 files changed, 30 insertions, 7 deletions
diff --git a/package/mesa/Makefile b/package/mesa/Makefile index 75a10c003..0f0955160 100644 --- a/package/mesa/Makefile +++ b/package/mesa/Makefile @@ -4,9 +4,9 @@ include $(ADK_TOPDIR)/rules.mk PKG_NAME:= mesa -PKG_VERSION:= 23.3.3 +PKG_VERSION:= 25.0.2 PKG_RELEASE:= 1 -PKG_HASH:= 518307c0057fa3cee8b58df78be431d4df5aafa7edc60d09278b2d7a0a80f3b4 +PKG_HASH:= adf904d083b308df95898600ffed435f4b5c600d95fb6ec6d4c45638627fdc97 PKG_DESCR:= 3d graphics library PKG_SECTION:= libs/video PKG_DEPENDS:= libxdamage libxfixes libdrm libxxf86vm libexpat @@ -14,10 +14,10 @@ PKG_DEPENDS+= libxml2 PKG_BUILDDEP:= python3 libxml2 libXdamage libXfixes libXrandr PKG_BUILDDEP+= libXxf86vm libdrm dri2proto glproto expat libXext PKG_BUILDDEP+= eudev dri3proto presentproto xcb-proto libxcb -PKG_BUILDDEP+= libxshmfence python-mako-host +PKG_BUILDDEP+= libxshmfence python-mako-host python3-yaml-host PKG_NEEDS:= c++ PKG_URL:= http://www.mesa3d.org/ -PKG_SITES:= ftp://ftp.freedesktop.org/pub/mesa/ +PKG_SITES:= https://archive.mesa3d.org/ PKG_LIBNAME:= mesa PKG_OPTS:= dev @@ -33,7 +33,7 @@ BUILD_STYLE:= meson INSTALL_STYLE:= meson MESON_FLAGS+= -Dllvm=disabled \ - -Dgallium-drivers=swrast,panfrost,vc4,v3d \ + -Dgallium-drivers=panfrost,vc4,v3d \ -Dvulkan-drivers= \ -Dgbm=enabled \ -Dplatforms=x11 @@ -44,10 +44,10 @@ mesa-install: $(IDIR_MESA)/usr/lib $(CP) $(WRKINST)/usr/lib/libGL*.so* \ $(IDIR_MESA)/usr/lib - $(CP) $(WRKINST)/usr/lib/libglapi.so* \ - $(IDIR_MESA)/usr/lib $(CP) $(WRKINST)/usr/lib/libgbm.so* \ $(IDIR_MESA)/usr/lib + $(CP) $(WRKINST)/usr/lib/libgallium*.so* \ + $(IDIR_MESA)/usr/lib ${CP} $(WRKINST)/usr/lib/dri/*.so \ ${IDIR_MESA}/usr/lib/dri/ diff --git a/package/mesa/patches/patch-meson_build b/package/mesa/patches/patch-meson_build new file mode 100644 index 000000000..6b7aaf7be --- /dev/null +++ b/package/mesa/patches/patch-meson_build @@ -0,0 +1,23 @@ +--- mesa-25.0.2.orig/meson.build 2025-03-20 14:32:27.000000000 +0100 ++++ mesa-25.0.2/meson.build 2025-04-02 20:40:53.964094916 +0200 +@@ -940,20 +940,6 @@ endif + # On Windows, a venv has no versioned aliased to 'python'. + prog_python = find_program('python3', 'python', version : '>= 3.8') + +-has_mako = run_command( +- prog_python, '-c', +- ''' +-try: +- from packaging.version import Version +-except: +- from distutils.version import StrictVersion as Version +-import mako +-assert Version(mako.__version__) >= Version("0.8.0") +- ''', check: false) +-if has_mako.returncode() != 0 +- error('Python (3.x) mako module >= 0.8.0 required to build mesa.') +-endif +- + has_yaml = run_command( + prog_python, '-c', + ''' |