wok-next annotate mesa/receipt @ rev 19645

Remove mesa-dri-ati, mesa-dri-intel, mesa-dri-nouveau, mesa-dri-vmwgfx -> mesa-dri. Split llvm. Up/add xorg apps and some other stuff.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 22 03:43:01 2017 +0200 (2017-02-22)
parents f7dd646afeb9
children bd19ab320b7d
rev   line source
pascal@592 1 # SliTaz package receipt.
pascal@592 2
pascal@592 3 PACKAGE="mesa"
al@19645 4 VERSION="12.0.6"
pankso@4421 5 CATEGORY="x-window"
rcx@3695 6 SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL."
pascal@592 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14728 8 LICENSE="MIT"
al@19645 9 WEB_SITE="https://www.mesa3d.org/"
jozee@5018 10 SUGGESTED="nvidia"
al@19645 11 PROVIDE="libgl"
al@19645 12 CONFIG_FILES="/etc/drirc"
al@19645 13
al@19645 14 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@5298 15 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL"
pascal@592 16
pankso@16616 17 DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt udev \
al@19645 18 xorg-libxshmfence"
al@19645 19 BUILD_DEPENDS="autoconf automake libtool python libdrm-dev libgcrypt-dev \
al@19645 20 eudev-dev xorg-glproto xorg-dri2proto xorg-dri3proto xorg-presentproto \
al@19645 21 libxcb-dev xorg-libxshmfence-dev xorg-libX11-dev xorg-libXext-dev \
al@19645 22 xorg-libXdamage-dev xorg-libXfixes-dev xorg-libXxf86vm-dev expat-dev \
al@19645 23 elfutils-dev llvm xorg-libpciaccess-dev"
al@19645 24 SPLIT="mesa-dri mesa-dri-ati mesa-dri-intel mesa-dri-nouveau mesa-dri-vmwgfx \
al@19645 25 libegl-mesa"
al@19645 26 # libGLU is included in the package libglu-mesa
al@19645 27 # libGLw is included in the package libglw-mesa
al@19645 28 # libEGL is included in the package libegl-mesa
pankso@9735 29
pascal@592 30 # Rules to configure and make the package.
pascal@592 31 compile_rules()
rcx@3695 32 {
al@19645 33 # patch -p1 -i $stuff/mesa-12.0.patch
al@19645 34
al@19645 35 # "swr" driver is disabled due to compilation errors
al@19645 36 GLL_DRV="nouveau,r300,r600,radeonsi,svga,swrast" &&
al@19645 37
al@19645 38 sed -i "/pthread-stubs/d" configure.ac &&
al@19645 39 sed -i "/seems to be moved/s/^/: #/" bin/ltmain.sh &&
al@19645 40 ./autogen.sh CFLAGS='-O2' CXXFLAGS='-O2' \
al@19645 41 --sysconfdir=/etc \
al@19645 42 --enable-texture-float \
al@19645 43 --enable-gles1 \
al@19645 44 --enable-gles2 \
al@19645 45 --enable-osmesa \
al@19645 46 --enable-xa \
al@19645 47 --enable-gbm \
al@19645 48 --enable-glx-tls \
al@19645 49 --with-egl-platforms="drm,x11" \
al@19645 50 --with-gallium-drivers=$GLL_DRV &&
al@19645 51
al@19645 52 unset GLL_DRV &&
al@19645 53
al@19645 54 make && make install
pascal@592 55 }
pascal@592 56
pascal@592 57 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@592 58 genpkg_rules()
pascal@592 59 {
al@19645 60 cook_copy_folders etc
al@19645 61 cook_copy_files libGL.so* libGLESv1_CM.so* libGLESv2.so* libOSMesa.so* \
al@19645 62 libgbm.so* libglapi.so* libxatracker.so*
pascal@592 63 }