wok-current view mesa-wayland/receipt @ rev 23973

Up openconnect (8.10), openexr (2.5.3), openldap (2.4.55), openssh (8.4p1), openvswitch (2.14.0), phpmyadmin (5.0.4), rust (1.47.0), shellinabox (2.21)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 28 12:04:50 2020 +0000 (2020-10-28)
parents a78610b2eb47
children 4ce52a0b72fd
line source
1 # SliTaz package receipt.
3 PACKAGE="mesa-wayland"
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 # Have Wayland support by default ?
16 PROVIDE="libegl-mesa libgl libglw-mesa"
18 SUGGESTED="nvidia"
19 DEPENDS="expat libdrm udev wayland xorg-libXdamage xorg-libXt xorg-libXxf86vm"
20 BUILD_DEPENDS="expat-dev lesstif-dev libdrm-dev libxml2-python pkg-config
21 udev-dev wayland-dev xorg-dri2proto xorg-glproto \
22 xorg-libXdamage-dev xorg-libXt-dev xorg-libXxf86vm-dev xorg-server-dev"
24 #HOST_ARCH="arm i486"
26 # Use some build system tools
27 case "$ARCH" in
28 i?86)
29 BUILD_DEPENDS="$BUILD_DEPENDS autoconf automake file libdrm-nouveau
30 libpthread-stubs-dev libtool llvm talloc xorg-imake xorg-makedepend" ;;
31 esac
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 find . -name 'nouveau*.h' | \
37 xargs sed -i 's|libdrm/nouveau.h|libdrm/nouveau/nouveau.h|'
39 ./autogen.sh \
40 --prefix=/usr \
41 --sysconfdir=/etc/X11/${PACKAGE} \
42 --enable-gles2 \
43 --disable-gallium-egl \
44 --with-egl-platforms=x11,wayland,drm \
45 --enable-gbm \
46 --enable-shared-glapi \
47 --with-gallium-drivers=r300,r600,swrast,nouveau \
48 $CONFIGURE_ARGS &&
49 make $MAKEFLAGS &&
50 make install
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr/lib/dri
58 cp -a $install/etc $fs
59 cp -a $install/usr/lib/*.so* $fs/usr/lib
60 cp -a $install/usr/lib/dri/*.so* $fs/usr/lib/dri
62 # libGLU is included in the package libglu-mesa
63 #rm -r -f $fs/usr/lib/libGLU*
65 #libGLw is included in the package libglw-mesa
66 #rm -r -f $fs/usr/lib/libGLw*
68 #libEGL is included in the package libegl-mesa
69 #rm -r -f $fs/usr/lib/libEGL*
70 }