wok annotate mesa7/receipt @ rev 24491

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 18 22:59:06 2022 +0000 (2022-02-18)
parents a78610b2eb47
children bc2b9d9bed6f
rev   line source
psychomaniak@20129 1 # SliTaz package receipt.
psychomaniak@20129 2
psychomaniak@20129 3 PACKAGE="mesa7"
psychomaniak@20129 4 VERSION="7.10.2"
psychomaniak@20129 5 CATEGORY="x-window"
psychomaniak@20129 6 SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL."
psychomaniak@20129 7 MAINTAINER="pascal.bellard@slitaz.org"
psychomaniak@20129 8 SOURCE="Mesa"
psychomaniak@20129 9 TARBALL="${SOURCE}Lib-$VERSION.tar.bz2"
pascal@20669 10 WEB_SITE="https://www.mesa3d.org/"
psychomaniak@20129 11 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/older-versions/7.x/${VERSION}/$TARBALL"
psychomaniak@20129 12 PROVIDE="mesa"
psychomaniak@20129 13
psychomaniak@20129 14 DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt udev" #libpthread-stubs
psychomaniak@20129 15
psychomaniak@20129 16 BUILD_DEPENDS="expat-dev libdrm-dev xorg-libXdamage-dev pkg-config \
psychomaniak@20129 17 xorg-libXxf86vm-dev xorg-libXt-dev xorg-dri2proto xorg-glproto \
psychomaniak@20129 18 talloc xorg-makedepend lesstif libxml2-python xorg-imake lesstif-dev \
psychomaniak@20129 19 xorg-server-dev udev-dev file libtool automake autoconf"
psychomaniak@20129 20 # libpthread-stubs-dev llvm xorg-dri3proto xorg-presentproto
psychomaniak@20129 21 # --with-gallium-drivers= \
psychomaniak@20129 22
pascal@24453 23 # What is the latest version available today?
pascal@24453 24 current_version()
pascal@24453 25 {
pascal@24453 26 wget -O - ${WGET_URL%/*/*}/ 2>/dev/null | \
pascal@24453 27 sed '/7.x\/7/!d;s|.*/7.x/||;s|/.*||' | sort -Vr | sed q
pascal@24453 28 }
pascal@24453 29
psychomaniak@20129 30 # Rules to configure and make the package.
psychomaniak@20129 31 compile_rules()
psychomaniak@20129 32 {
psychomaniak@20129 33 autoreconf -vfi
psychomaniak@20129 34 ./configure \
psychomaniak@20129 35 --prefix=/usr \
psychomaniak@20129 36 --with-x \
psychomaniak@20129 37 --with-dri-driverdir=/usr/lib/dri \
psychomaniak@20129 38 --with-dri-drivers=unichrome,i810,mach64,mga,r128,savage,sis,tdfx \
psychomaniak@20129 39 --disable-gallium-llvm \
psychomaniak@20129 40 --enable-glx-tls \
psychomaniak@20129 41 --with-driver=dri \
psychomaniak@20129 42 --enable-xcb \
psychomaniak@20129 43 --disable-glut \
psychomaniak@20129 44 --enable-gles1 \
psychomaniak@20129 45 --enable-gles2 \
psychomaniak@20129 46 --enable-egl \
psychomaniak@20129 47 --enable-texture-float \
psychomaniak@20129 48 --disable-shared-dricore \
psychomaniak@20129 49 $CONFIGURE_ARGS &&
psychomaniak@20129 50 (make $MAKEFLAGS && make install) 2>/dev/null | sed '/No such file or directory/d'
psychomaniak@20129 51 }
psychomaniak@20129 52
psychomaniak@20129 53 # Rules to gen a SliTaz package suitable for Tazpkg.
psychomaniak@20129 54 genpkg_rules()
psychomaniak@20129 55 {
psychomaniak@20129 56 mkdir -p $fs/usr/lib
psychomaniak@20129 57 cp -a $install/usr/lib//libGLE*.so* $fs/usr/lib
psychomaniak@20129 58
psychomaniak@20129 59 # libGLU is included in the package libglu-mesa
psychomaniak@20129 60 rm -r -f $fs/usr/lib/libGLU*
psychomaniak@20129 61
psychomaniak@20129 62 #libGLw is included in the package libglw-mesa
psychomaniak@20129 63 rm -r -f $fs/usr/lib/libGLw*
psychomaniak@20129 64
psychomaniak@20129 65 #libEGL is included in the package libegl-mesa
psychomaniak@20129 66 rm -r -f $fs/usr/lib/libEGL*
psychomaniak@20129 67 }