wok-undigest view mesa/receipt @ rev 1223

copied libxext recipe from wok-next
author Hans-G?nter Theisgen
date Fri Nov 15 17:38:29 2019 +0100 (2019-11-15)
parents
children cce2687b06f1
line source
1 # SliTaz package receipt.
3 PACKAGE="mesa"
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="$PACKAGE-$VERSION.tar.xz"
12 WEB_SITE="http://www.mesa3d.org/"
13 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL"
14 PROVIDE="libgl"
16 DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt udev \
17 libpthread-stubs"
18 BUILD_DEPENDS="expat-dev libdrm-dev xorg-libXdamage-dev pkg-config \
19 xorg-libXxf86vm-dev xorg-libXt-dev xorg-dri2proto xorg-glproto \
20 talloc xorg-makedepend lesstif libxml2-python xorg-imake lesstif-dev \
21 xorg-server-dev udev-dev file libdrm-nouveau llvm libpthread-stubs-dev \
22 libtool automake autoconf xorg-dri3proto xorg-presentproto gcc49"
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's/HAVE_LLVM/0x0306/' #src/gallium/auxiliary/draw/draw_llvm.c
28 export LD_LIBRARY_PATH="/usr/libgcc49:$LD_LIBRARY_PATH"
29 ./autogen.sh \
30 CC=gcc-49 CXX=g++-49 \
31 --disable-gallium-llvm \
32 --prefix=/usr \
33 $CONFIGURE_ARGS &&
34 make $MAKEFLAGS && make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 # libGLU is included in the package libglu-mesa
44 rm -r -f $fs/usr/lib/libGLU*
46 #libGLw is included in the package libglw-mesa
47 rm -r -f $fs/usr/lib/libGLw*
49 #libEGL is included in the package libegl-mesa
50 rm -r -f $fs/usr/lib/libEGL*
51 }