wok view mesa-wayland/receipt @ rev 25291
updated rtorrent (0.9.7 -> 0.9.8)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jul 19 10:09:31 2022 +0100 (2022-07-19) |
parents | 6f50b9312cbf |
children | c470ca10c896 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mesa-wayland"
4 VERSION="9.2.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 WEB_SITE="https://www.mesa3d.org/"
11 SOURCE="Mesa"
12 TARBALL="${SOURCE}Lib-$VERSION.tar.bz2"
13 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/older-versions/${VERSION%%.*}.x/$VERSION/$TARBALL"
15 # Have Wayland support by default ?
16 PROVIDE="libegl-mesa libgl libglw-mesa"
18 SUGGESTED="nvidia"
19 DEPENDS="expat libdrm udev wayland xorg-libXdamage xorg-libXt xorg-libXxf86vm"
20 BUILD_DEPENDS="expat-dev lesstif-dev libdrm-dev libxml2-python pkg-config
21 udev-dev wayland-dev xorg-dri2proto xorg-glproto \
22 xorg-libXdamage-dev xorg-libXt-dev xorg-libXxf86vm-dev xorg-server-dev"
24 #HOST_ARCH="arm i486"
26 # Use some build system tools
27 case "$ARCH" in
28 i?86)
29 BUILD_DEPENDS="$BUILD_DEPENDS autoconf automake file libdrm-nouveau
30 libpthread-stubs-dev libtool llvm talloc xorg-imake xorg-makedepend" ;;
31 esac
33 # What is the latest version available today?
34 current_version()
35 {
36 wget -O - 'https://gitlab.freedesktop.org/mesa/mesa/-/tags?sort=updated_desc' 2>/dev/null | \
37 sed '/item-title/!d;/-rc/d;s|.*">[a-z-]*||;s|<.*||;q'
38 }
40 # Rules to configure and make the package.
41 compile_rules()
42 {
43 find . -name 'nouveau*.h' | \
44 xargs sed -i 's|libdrm/nouveau.h|libdrm/nouveau/nouveau.h|'
46 ./autogen.sh \
47 --prefix=/usr \
48 --sysconfdir=/etc/X11/${PACKAGE} \
49 --enable-gles2 \
50 --disable-gallium-egl \
51 --with-egl-platforms=x11,wayland,drm \
52 --enable-gbm \
53 --enable-shared-glapi \
54 --with-gallium-drivers=r300,r600,swrast,nouveau \
55 $CONFIGURE_ARGS &&
56 make $MAKEFLAGS &&
57 make install
58 }
60 # Rules to gen a SliTaz package suitable for Tazpkg.
61 genpkg_rules()
62 {
63 mkdir -p $fs/usr/lib/dri
65 cp -a $install/etc $fs
66 cp -a $install/usr/lib/*.so* $fs/usr/lib
67 cp -a $install/usr/lib/dri/*.so* $fs/usr/lib/dri
69 # libGLU is included in the package libglu-mesa
70 #rm -r -f $fs/usr/lib/libGLU*
72 #libGLw is included in the package libglw-mesa
73 #rm -r -f $fs/usr/lib/libGLw*
75 #libEGL is included in the package libegl-mesa
76 #rm -r -f $fs/usr/lib/libEGL*
77 }