wok-next annotate mesa/receipt @ rev 19737

Up bind, brotli, cairo, check, compface, cookutils, cpio, curl, db, openssl.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 30 05:37:57 2017 +0300 (2017-05-30)
parents bd19ab320b7d
children f463de72afe3
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@19646 23 elfutils-dev llvm-dev xorg-libpciaccess-dev"
al@19648 24 SPLIT="mesa-dri mesa-libegl"
al@19645 25 # libGLU is included in the package libglu-mesa
al@19645 26 # libGLw is included in the package libglw-mesa
al@19645 27 # libEGL is included in the package libegl-mesa
pankso@9735 28
pascal@592 29 # Rules to configure and make the package.
pascal@592 30 compile_rules()
rcx@3695 31 {
al@19645 32 # patch -p1 -i $stuff/mesa-12.0.patch
al@19645 33
al@19645 34 # "swr" driver is disabled due to compilation errors
al@19645 35 GLL_DRV="nouveau,r300,r600,radeonsi,svga,swrast" &&
al@19645 36
al@19645 37 sed -i "/pthread-stubs/d" configure.ac &&
al@19645 38 sed -i "/seems to be moved/s/^/: #/" bin/ltmain.sh &&
al@19645 39 ./autogen.sh CFLAGS='-O2' CXXFLAGS='-O2' \
al@19645 40 --sysconfdir=/etc \
al@19645 41 --enable-texture-float \
al@19645 42 --enable-gles1 \
al@19645 43 --enable-gles2 \
al@19645 44 --enable-osmesa \
al@19645 45 --enable-xa \
al@19645 46 --enable-gbm \
al@19645 47 --enable-glx-tls \
al@19645 48 --with-egl-platforms="drm,x11" \
al@19645 49 --with-gallium-drivers=$GLL_DRV &&
al@19645 50
al@19645 51 unset GLL_DRV &&
al@19645 52
al@19645 53 make && make install
pascal@592 54 }
pascal@592 55
pascal@592 56 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@592 57 genpkg_rules()
pascal@592 58 {
al@19645 59 cook_copy_folders etc
al@19645 60 cook_copy_files libGL.so* libGLESv1_CM.so* libGLESv2.so* libOSMesa.so* \
al@19645 61 libgbm.so* libglapi.so* libxatracker.so*
pascal@592 62 }