wok view mesa/receipt @ rev 24980
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 08 09:19:55 2022 +0000 (2022-05-08) |
parents | 89c8d8b6cf48 |
children | c470ca10c896 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mesa"
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 PROVIDE="libgl"
16 SUGGESTED="nvidia"
17 DEPENDS="expat libdrm libpthread-stubs udev xorg-libXdamage xorg-libXt
18 xorg-libXxf86vm"
19 BUILD_DEPENDS="autoconf automake expat-dev file lesstif-dev libdrm-dev
20 libdrm-nouveau libpthread-stubs-dev libtool libxml2-python llvm
21 pkg-config talloc udev-dev xorg-dri2proto xorg-glproto xorg-imake
22 xorg-libXdamage-dev xorg-libXt-dev xorg-libXxf86vm-dev
23 xorg-makedepend xorg-server-dev"
25 # What is the latest version available today?
26 current_version()
27 {
28 wget -O - 'https://gitlab.freedesktop.org/mesa/mesa/-/tags?sort=updated_desc' 2>/dev/null | \
29 sed '/item-title/!d;/-rc/d;s|.*">[a-z-]*||;s|<.*||;q'
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 find . -name 'nouveau*.h' | \
36 xargs sed -i 's|libdrm/nouveau.h|libdrm/nouveau/nouveau.h|'
38 ./autogen.sh \
39 --prefix=/usr \
40 $CONFIGURE_ARGS &&
41 make $MAKEFLAGS &&
42 make install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/lib
49 cp -a $install/usr/lib/*.so* $fs/usr/lib
51 # libGLU is included in the package libglu-mesa
52 rm -r -f $fs/usr/lib/libGLU*
54 #libGLw is included in the package libglw-mesa
55 rm -r -f $fs/usr/lib/libGLw*
57 #libEGL is included in the package libegl-mesa
58 rm -r -f $fs/usr/lib/libEGL*
59 }