wok view mesa7/receipt @ rev 24549
updated firehol (3.1.6 -> 3.1.7)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 25 07:59:08 2022 +0100 (2022-02-25) |
parents | a78610b2eb47 |
children | bc2b9d9bed6f |
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 SOURCE="Mesa"
9 TARBALL="${SOURCE}Lib-$VERSION.tar.bz2"
10 WEB_SITE="https://www.mesa3d.org/"
11 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/older-versions/7.x/${VERSION}/$TARBALL"
12 PROVIDE="mesa"
14 DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt udev" #libpthread-stubs
16 BUILD_DEPENDS="expat-dev libdrm-dev xorg-libXdamage-dev pkg-config \
17 xorg-libXxf86vm-dev xorg-libXt-dev xorg-dri2proto xorg-glproto \
18 talloc xorg-makedepend lesstif libxml2-python xorg-imake lesstif-dev \
19 xorg-server-dev udev-dev file libtool automake autoconf"
20 # libpthread-stubs-dev llvm xorg-dri3proto xorg-presentproto
21 # --with-gallium-drivers= \
23 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - ${WGET_URL%/*/*}/ 2>/dev/null | \
27 sed '/7.x\/7/!d;s|.*/7.x/||;s|/.*||' | sort -Vr | sed q
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 autoreconf -vfi
34 ./configure \
35 --prefix=/usr \
36 --with-x \
37 --with-dri-driverdir=/usr/lib/dri \
38 --with-dri-drivers=unichrome,i810,mach64,mga,r128,savage,sis,tdfx \
39 --disable-gallium-llvm \
40 --enable-glx-tls \
41 --with-driver=dri \
42 --enable-xcb \
43 --disable-glut \
44 --enable-gles1 \
45 --enable-gles2 \
46 --enable-egl \
47 --enable-texture-float \
48 --disable-shared-dricore \
49 $CONFIGURE_ARGS &&
50 (make $MAKEFLAGS && make install) 2>/dev/null | sed '/No such file or directory/d'
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr/lib
57 cp -a $install/usr/lib//libGLE*.so* $fs/usr/lib
59 # libGLU is included in the package libglu-mesa
60 rm -r -f $fs/usr/lib/libGLU*
62 #libGLw is included in the package libglw-mesa
63 rm -r -f $fs/usr/lib/libGLw*
65 #libEGL is included in the package libegl-mesa
66 rm -r -f $fs/usr/lib/libEGL*
67 }