wok annotate mesa7/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents bc2b9d9bed6f
children
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"
pascal@24728 8 LICENSE="MIT"
psychomaniak@20129 9 SOURCE="Mesa"
psychomaniak@20129 10 TARBALL="${SOURCE}Lib-$VERSION.tar.bz2"
pascal@20669 11 WEB_SITE="https://www.mesa3d.org/"
psychomaniak@20129 12 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/older-versions/7.x/${VERSION}/$TARBALL"
psychomaniak@20129 13 PROVIDE="mesa"
psychomaniak@20129 14
psychomaniak@20129 15 DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt udev" #libpthread-stubs
psychomaniak@20129 16
psychomaniak@20129 17 BUILD_DEPENDS="expat-dev libdrm-dev xorg-libXdamage-dev pkg-config \
psychomaniak@20129 18 xorg-libXxf86vm-dev xorg-libXt-dev xorg-dri2proto xorg-glproto \
psychomaniak@20129 19 talloc xorg-makedepend lesstif libxml2-python xorg-imake lesstif-dev \
psychomaniak@20129 20 xorg-server-dev udev-dev file libtool automake autoconf"
psychomaniak@20129 21 # libpthread-stubs-dev llvm xorg-dri3proto xorg-presentproto
psychomaniak@20129 22 # --with-gallium-drivers= \
psychomaniak@20129 23
pascal@24453 24 # What is the latest version available today?
pascal@24453 25 current_version()
pascal@24453 26 {
pascal@24614 27 wget -O - 'https://gitlab.freedesktop.org/mesa/mesa/-/tags?sort=updated_desc&search=mesa-7' 2>/dev/null | \
pascal@24614 28 sed '/item-title/!d;/-rc/d;s|.*">[a-z-]*||;s|<.*||;q'
pascal@24453 29 }
pascal@24453 30
psychomaniak@20129 31 # Rules to configure and make the package.
psychomaniak@20129 32 compile_rules()
psychomaniak@20129 33 {
psychomaniak@20129 34 autoreconf -vfi
psychomaniak@20129 35 ./configure \
psychomaniak@20129 36 --prefix=/usr \
psychomaniak@20129 37 --with-x \
psychomaniak@20129 38 --with-dri-driverdir=/usr/lib/dri \
psychomaniak@20129 39 --with-dri-drivers=unichrome,i810,mach64,mga,r128,savage,sis,tdfx \
psychomaniak@20129 40 --disable-gallium-llvm \
psychomaniak@20129 41 --enable-glx-tls \
psychomaniak@20129 42 --with-driver=dri \
psychomaniak@20129 43 --enable-xcb \
psychomaniak@20129 44 --disable-glut \
psychomaniak@20129 45 --enable-gles1 \
psychomaniak@20129 46 --enable-gles2 \
psychomaniak@20129 47 --enable-egl \
psychomaniak@20129 48 --enable-texture-float \
psychomaniak@20129 49 --disable-shared-dricore \
psychomaniak@20129 50 $CONFIGURE_ARGS &&
psychomaniak@20129 51 (make $MAKEFLAGS && make install) 2>/dev/null | sed '/No such file or directory/d'
psychomaniak@20129 52 }
psychomaniak@20129 53
psychomaniak@20129 54 # Rules to gen a SliTaz package suitable for Tazpkg.
psychomaniak@20129 55 genpkg_rules()
psychomaniak@20129 56 {
psychomaniak@20129 57 mkdir -p $fs/usr/lib
psychomaniak@20129 58 cp -a $install/usr/lib//libGLE*.so* $fs/usr/lib
psychomaniak@20129 59
psychomaniak@20129 60 # libGLU is included in the package libglu-mesa
psychomaniak@20129 61 rm -r -f $fs/usr/lib/libGLU*
psychomaniak@20129 62
psychomaniak@20129 63 #libGLw is included in the package libglw-mesa
psychomaniak@20129 64 rm -r -f $fs/usr/lib/libGLw*
psychomaniak@20129 65
psychomaniak@20129 66 #libEGL is included in the package libegl-mesa
psychomaniak@20129 67 rm -r -f $fs/usr/lib/libEGL*
psychomaniak@20129 68 }