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