rev |
line source |
pankso@16172
|
1 # SliTaz package receipt.
|
pankso@16172
|
2
|
pankso@16172
|
3 PACKAGE="mesa-wayland"
|
shann@25634
|
4 VERSION="21.3.5"
|
pankso@16172
|
5 CATEGORY="x-window"
|
pankso@16172
|
6 SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL."
|
pankso@16172
|
7 MAINTAINER="pascal.bellard@slitaz.org"
|
pankso@16172
|
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 wayland" #libpthread-stubs
|
pankso@16172
|
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 wayland-dev wayland-protocols"
|
shann@25634
|
24 # libpthread-stubs-dev llvm xorg-dri3proto xorg-presentproto
|
shann@25634
|
25 # --with-gallium-drivers= \
|
pankso@16172
|
26
|
shann@25728
|
27 HOST_ARCH="i486 x86_64"
|
shann@25728
|
28
|
pascal@24744
|
29 # What is the latest version available today?
|
pascal@24744
|
30 current_version()
|
pascal@24744
|
31 {
|
shann@25634
|
32 wget -O - 'https://gitlab.freedesktop.org/mesa/mesa/-/tags?sort=updated_desc&search=mesa-7' 2>/dev/null | \
|
pascal@24744
|
33 sed '/item-title/!d;/-rc/d;s|.*">[a-z-]*||;s|<.*||;q'
|
pascal@24744
|
34 }
|
pascal@24744
|
35
|
pankso@16172
|
36 # Rules to configure and make the package.
|
pankso@16172
|
37 compile_rules()
|
pankso@16172
|
38 {
|
shann@25634
|
39 DRI_DRIVERS="i915,i965,r100,r200,nouveau"
|
shann@25634
|
40 GALLIUM_DRIVERS="nouveau,r300,r600,svga,radeonsi,swrast"
|
Hans-G?nter@22242
|
41
|
shann@25634
|
42
|
shann@25634
|
43 # Use meson 0.54, issue with meson 0.62
|
shann@25634
|
44 # see https://gitlab.freedesktop.org/mesa/mesa/-/issues/5576
|
shann@25634
|
45
|
shann@25634
|
46 # Disable vulkan drivers, seem issue with i486
|
shann@25634
|
47 # see https://bugs.freedesktop.org/show_bug.cgi?id=93089
|
shann@25634
|
48 VULKAN_DRIVERS=""
|
shann@25634
|
49
|
shann@25634
|
50 meson _build \
|
shann@25634
|
51 --prefix=/usr \
|
shann@25634
|
52 --libdir=lib \
|
shann@25634
|
53 --bindir=/usr/bin \
|
shann@25634
|
54 --sbindir=/usr/sbin \
|
shann@25634
|
55 --buildtype=release \
|
shann@25634
|
56 -Dplatforms=x11,wayland \
|
shann@25634
|
57 -Ddri-drivers=$DRI_DRIVERS \
|
shann@25634
|
58 -Dgallium-drivers=$GALLIUM_DRIVERS \
|
shann@25634
|
59 -Dvulkan-drivers=$VULKAN_DRIVERS \
|
shann@25634
|
60 -Dvulkan-layers=device-select \
|
shann@25634
|
61 -Dglvnd=false \
|
shann@25634
|
62 -Dllvm=enabled \
|
shann@25634
|
63 -Dshared-llvm=enabled \
|
shann@25634
|
64 -Dshared-glapi=enabled \
|
shann@25634
|
65 -Degl=enabled \
|
shann@25634
|
66 -Dgles1=enabled \
|
shann@25634
|
67 -Dgles2=enabled \
|
shann@25634
|
68 -Dopengl=true \
|
shann@25634
|
69 -Dglx=dri \
|
shann@25634
|
70 -Dstrip=true
|
shann@25634
|
71
|
shann@25634
|
72 ninja -C _build
|
shann@25634
|
73 DESTDIR=$install ninja -C _build install
|
pankso@16172
|
74 }
|
shann@25634
|
75
|
pankso@16172
|
76 # Rules to gen a SliTaz package suitable for Tazpkg.
|
pankso@16172
|
77 genpkg_rules()
|
pankso@16172
|
78 {
|
shann@25634
|
79 mkdir -p $fs/usr/lib
|
shann@25634
|
80 cp -a $install/usr/lib/*.so* $fs/usr/lib
|
shann@25634
|
81 cp -a $install/usr/include $fs/usr
|
shann@25634
|
82 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
|
pankso@16172
|
83 }
|