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