wok-next view mesa/receipt @ rev 19925

libftdi: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 14 23:27:36 2017 +0200 (2017-10-14)
parents d7743923b5c6
children 2917684f729e
line source
1 # SliTaz package receipt.
3 PACKAGE="mesa"
4 VERSION="12.0.6"
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/"
10 SUGGESTED="nvidia"
11 PROVIDE="libgl"
12 CONFIG_FILES="/etc/drirc"
14 TARBALL="$PACKAGE-$VERSION.tar.xz"
15 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL"
17 DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt udev \
18 xorg-libxshmfence"
19 BUILD_DEPENDS="autoconf automake libtool python libdrm-dev libgcrypt-dev \
20 eudev-dev xorg-glproto xorg-dri2proto xorg-dri3proto xorg-presentproto \
21 libxcb-dev xorg-libxshmfence-dev xorg-libX11-dev xorg-libXext-dev \
22 xorg-libXdamage-dev xorg-libXfixes-dev xorg-libXxf86vm-dev expat-dev \
23 elfutils-dev llvm-dev xorg-libpciaccess-dev"
24 SPLIT="mesa-dri mesa-libegl"
25 # libGLU is included in the package libglu-mesa
26 # libGLw is included in the package libglw-mesa
27 # libEGL is included in the package libegl-mesa
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 # patch -p1 -i $stuff/mesa-12.0.patch
34 # "swr" driver is disabled due to compilation errors
35 GLL_DRV="nouveau,r300,r600,radeonsi,svga,swrast" &&
37 sed -i "/pthread-stubs/d" configure.ac &&
38 sed -i "/seems to be moved/s/^/: #/" bin/ltmain.sh &&
39 ./autogen.sh CFLAGS='-O2' CXXFLAGS='-O2' \
40 --sysconfdir=/etc \
41 --enable-texture-float \
42 --enable-gles1 \
43 --enable-gles2 \
44 --enable-osmesa \
45 --enable-xa \
46 --enable-gbm \
47 --enable-glx-tls \
48 --with-egl-platforms="drm,x11" \
49 --with-gallium-drivers=$GLL_DRV &&
51 unset GLL_DRV &&
53 make && make install
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 copy etc/ libGL.so* libGLESv1_CM.so* libGLESv2.so* libOSMesa.so* \
60 libgbm.so* libglapi.so* libxatracker.so*
61 }