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