wok-current view mesa/receipt @ rev 25672

patch tazpkg, upgrade core pkgs first
author Stanislas Leduc <shann@slitaz.org>
date Sun Mar 03 17:58:42 2024 +0000 (5 months ago)
parents a23978bfa665
children 91035b7cc264
line source
1 # SliTaz package receipt.
3 PACKAGE="mesa"
4 VERSION="21.3.5"
5 CATEGORY="x-window"
6 SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 SOURCE="mesa"
10 TARBALL="$SOURCE-$VERSION.tar.xz"
11 WEB_SITE="https://www.mesa3d.org/"
12 WGET_URL="https://archive.mesa3d.org/$TARBALL"
13 PROVIDE="mesa"
15 DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt \
16 xorg-libxshmfence udev libvdpau" #libpthread-stubs
18 BUILD_DEPENDS="expat-dev libdrm-dev xorg-libXdamage-dev pkg-config \
19 xorg-libXxf86vm-dev xorg-libXt-dev xorg-libXvMC-dev xorg-libXv-dev \
20 xorg-dri2proto xorg-glproto talloc xorg-makedepend lesstif-dev \
21 libxml2-python xorg-imake xorg-libxshmfence-dev udev-dev file \
22 xorg-libpciaccess-dev libtool llvm meson054 python3-mako libvdpau-dev \
23 elfutils-dev"
24 # libpthread-stubs-dev llvm xorg-dri3proto xorg-presentproto
25 # --with-gallium-drivers= \
27 # What is the latest version available today?
28 current_version()
29 {
30 wget -O - 'https://gitlab.freedesktop.org/mesa/mesa/-/tags?sort=updated_desc&search=mesa-7' 2>/dev/null | \
31 sed '/item-title/!d;/-rc/d;s|.*">[a-z-]*||;s|<.*||;q'
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 DRI_DRIVERS="i915,i965,r100,r200,nouveau"
38 GALLIUM_DRIVERS="nouveau,r300,r600,svga,radeonsi,swrast"
41 # Use meson 0.54, issue with meson 0.62
42 # see https://gitlab.freedesktop.org/mesa/mesa/-/issues/5576
44 # Disable vulkan drivers, seem issue with i486
45 # see https://bugs.freedesktop.org/show_bug.cgi?id=93089
46 VULKAN_DRIVERS=""
48 meson _build \
49 --prefix=/usr \
50 --libdir=lib \
51 --bindir=/usr/bin \
52 --sbindir=/usr/sbin \
53 --buildtype=release \
54 -Dplatforms=x11 \
55 -Ddri-drivers=$DRI_DRIVERS \
56 -Dgallium-drivers=$GALLIUM_DRIVERS \
57 -Dvulkan-drivers=$VULKAN_DRIVERS \
58 -Dvulkan-layers=device-select \
59 -Dglvnd=false \
60 -Dllvm=enabled \
61 -Dshared-llvm=enabled \
62 -Dshared-glapi=enabled \
63 -Degl=enabled \
64 -Dgles1=enabled \
65 -Dgles2=enabled \
66 -Dopengl=true \
67 -Dglx=dri \
68 -Dstrip=true
70 ninja -C _build
71 DESTDIR=$install ninja -C _build install
72 }
74 # Rules to gen a SliTaz package suitable for Tazpkg.
75 genpkg_rules()
76 {
77 mkdir -p $fs/usr/lib
78 cp -a $install/usr/lib/*.so* $fs/usr/lib
79 #cp -a $install/usr/include $fs/usr
80 #cp -a $install/usr/lib/pkgconfig $fs/usr/lib
81 }