wok-undigest view mesa-wayland/receipt @ rev 1224

copied libxrender recipe from wok-next
author Hans-G?nter Theisgen
date Fri Nov 15 17:39:43 2019 +0100 (2019-11-15)
parents
children
line source
1 # SliTaz package receipt.
3 PACKAGE="mesa-wayland"
4 VERSION="10.5.4"
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 SUGGESTED="nvidia"
10 SOURCE="Mesa"
11 TARBALL="${SOURCE}Lib-$VERSION.tar.xz"
12 WEB_SITE="http://www.mesa3d.org/"
13 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL"
14 #HOST_ARCH="arm i486"
16 # Have Wayland support by default ?
17 PROVIDE="libgl libegl-mesa libglw-mesa"
19 DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt udev \
20 wayland"
21 BUILD_DEPENDS="expat-dev libdrm-dev xorg-libXdamage-dev pkg-config \
22 xorg-libXxf86vm-dev xorg-libXt-dev xorg-dri2proto xorg-glproto \
23 lesstif libxml2-python lesstif-dev xorg-server-dev udev-dev wayland-dev \
24 xorg-dri3proto xorg-presentproto gcc49"
26 # Use some build system tools
27 case "$ARCH" in
28 i?86)
29 BUILD_DEPENDS="$BUILD_DEPENDS talloc xorg-makedepend xorg-imake \
30 file libdrm-nouveau llvm libtool automake autoconf libpthread-stubs-dev" ;;
31 esac
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 sed -i 's/HAVE_LLVM/0x0306/' src/gallium/auxiliary/draw/draw_vs.h \
37 src/gallium/auxiliary/draw/draw_llvm.c
38 export LD_LIBRARY_PATH="/usr/libgcc49:$LD_LIBRARY_PATH"
39 ./autogen.sh \
40 CC=gcc-49 CXX=g++-49 \
41 --prefix=/usr \
42 --sysconfdir=/etc/X11/${PACKAGE} \
43 --enable-gles2 \
44 --disable-gallium-egl \
45 --disable-gallium-llvm \
46 --with-egl-platforms=x11,wayland,drm \
47 --enable-gbm \
48 --enable-shared-glapi \
49 --with-gallium-drivers=r300,r600,swrast,nouveau \
50 $CONFIGURE_ARGS &&
51 make $MAKEFLAGS && make install
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 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 }