wok-next annotate mesa/receipt @ rev 20898

cookutils: up (1086)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jul 21 04:56:32 2018 +0300 (2018-07-21)
parents 757d032c55c7
children f99935f1778a
rev   line source
pascal@19950 1 # SliTaz package receipt v2.
pascal@592 2
pascal@592 3 PACKAGE="mesa"
al@20542 4 VERSION="17.3.4"
pankso@4421 5 CATEGORY="x-window"
al@20502 6 SHORT_DESC="Open-source implementaton of OpenGL"
al@20502 7 MAINTAINER="al.bobylev@gmail.com"
pascal@14728 8 LICENSE="MIT"
al@19645 9 WEB_SITE="https://www.mesa3d.org/"
al@20502 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/x/mesa.html"
al@19645 11
al@20502 12 TARBALL="mesa-$VERSION.tar.xz"
al@20502 13 WGET_URL="https://mesa.freedesktop.org/archive/$TARBALL"
pascal@592 14
al@19645 15 BUILD_DEPENDS="autoconf automake libtool python libdrm-dev libgcrypt-dev \
al@19645 16 eudev-dev xorg-glproto xorg-dri2proto xorg-dri3proto xorg-presentproto \
al@20447 17 xorg-libxcb-dev xorg-libxshmfence-dev xorg-libX11-dev xorg-libXext-dev \
al@19645 18 xorg-libXdamage-dev xorg-libXfixes-dev xorg-libXxf86vm-dev expat-dev \
al@20502 19 elfutils-dev llvm-dev xorg-libpciaccess-dev wayland-dev libva-dev libvdpau-dev \
pascal@20507 20 wayland-protocols-dev libatomic zlib-dev xorg-libXi-dev"
al@20542 21 BUILD_DEPENDS="${BUILD_DEPENDS/libva-dev/}"
al@20502 22 SPLIT="mesa-dri mesa-libegl mesa-libgbm mesa-osmesa mesa-libswrAVX \
al@20502 23 mesa-libwayland-egl mesa-libxatracker mesa-vdpau mesa mesa-dev"
pankso@9735 24
al@20502 25 compile_rules() {
al@20502 26 # Removed from the full list: freedreno,vc4
al@20502 27 # because we haven't appropriate libdrm-* packages (they are only for ARM)
al@20502 28 GLL_DRV="i915,nouveau,r300,r600,radeonsi,svga,swrast,swr,virgl,etnaviv,imx"
al@19645 29
al@20502 30 sed -i "/pthread_stubs_possible=/s/yes/no/" configure.ac
al@20502 31 ./autogen.sh \
al@20502 32 CFLAGS='-O2' CXXFLAGS='-O2' \
al@19645 33 --enable-texture-float \
al@19645 34 --enable-gles1 \
al@19645 35 --enable-gles2 \
al@19645 36 --enable-osmesa \
al@19645 37 --enable-xa \
al@19645 38 --enable-gbm \
al@19645 39 --enable-glx-tls \
al@20502 40 --with-platforms="drm,x11,wayland" \
al@19645 41 --with-gallium-drivers=$GLL_DRV &&
al@20502 42 unset GLL_DRV &&
al@20502 43 fix libtool &&
al@20534 44 make &&
al@20534 45 make install || return 1
al@19645 46
al@20502 47 cook_pick_docs docs/*
al@20502 48 install -Dm644 $stuff/90-DRI.conf $install/etc/X11/xorg.conf.d/90-DRI.conf
pascal@592 49 }
pascal@592 50
al@20502 51 genpkg_rules() {
pascal@19950 52 case $PACKAGE in
al@20502 53 *-dri)
al@20502 54 copy lib/dri/ 90-DRI.conf
al@20502 55 CAT="x-window|Direct Rendering Infrastructure"
al@20502 56 DEPENDS="elfutils expat libdrm libdrm-amdgpu libdrm-etnaviv \
al@20502 57 libdrm-intel libdrm-nouveau libdrm-radeon llvm-libs mesa \
al@20502 58 xorg-libX11 xorg-libxcb xorg-libxshmfence zlib"
al@20502 59 ;;
al@20502 60 *-libegl)
al@20502 61 copy libEGL.so*
al@20502 62 CAT="x-window|EGL library"
al@20502 63 DEPENDS="expat libdrm mesa-libgbm wayland xorg-libX11 \
al@20502 64 xorg-libxcb xorg-libxshmfence zlib"
al@20502 65 ;;
al@20502 66 *-libgbm)
al@20502 67 copy libgbm.so*
al@20502 68 CAT="x-window|Graphics Buffer Manager library"
al@20502 69 DEPENDS="expat libdrm wayland"
al@20502 70 ;;
al@20502 71 *-osmesa)
al@20502 72 copy libOSMesa.so*
al@20502 73 CAT="x-window|Off-screen Rendering library"
al@20502 74 DEPENDS="mesa zlib"
al@20502 75 ;;
al@20502 76 *-libwayland-egl)
al@20502 77 copy libwayland-egl.so*
al@20502 78 CAT="x-window|Wayland EGL library"
al@20502 79 DEPENDS=" "
al@20502 80 ;;
al@20502 81 *-libxatracker)
al@20502 82 copy libxatracker.so*
al@20502 83 CAT="x-window|Xorg Gallium3D acceleration library"
al@20502 84 DEPENDS="expat libdrm libdrm-intel libdrm-nouveau llvm-libs zlib"
al@20502 85 ;;
al@20502 86 *-vdpau)
al@20502 87 copy lib/vdpau/
al@20502 88 CAT="x-window|VDPAU drivers"
al@20502 89 DEPENDS="elfutils expat libdrm libdrm-amdgpu libdrm-nouveau \
al@20502 90 libdrm-radeon llvm-libs xorg-libX11 xorg-libxcb xorg-libxshmfence \
al@20502 91 zlib"
al@20502 92 ;;
al@20502 93 *-libswrAVX)
al@20502 94 copy libswrAVX*so*
al@20502 95 CAT="x-window|Fast software rendering driver for CPU with AVX"
al@20502 96 DEPENDS=" "
al@20502 97 ;;
al@20502 98 mesa)
al@20502 99 copy @std @rm
al@20502 100 CAT="x-window|main OpenGL libraries"
al@20502 101 DEPENDS="expat libdrm xorg-libX11 xorg-libXdamage xorg-libXext \
al@20502 102 xorg-libXfixes xorg-libXxf86vm xorg-libxcb xorg-libxshmfence"
al@20502 103 SUGGESTED="nvidia"
al@20502 104 PROVIDE="libgl"
al@20502 105 CONFIG_FILES="/etc/drirc"
al@20502 106 ;;
al@20502 107 *-dev)
al@20502 108 copy @dev
al@20502 109 DEPENDS="mesa mesa-dri mesa-libegl mesa-libgbm \
al@20502 110 mesa-osmesa mesa-libwayland-egl mesa-libxatracker \
al@20502 111 mesa-vdpau \
al@20502 112 libdrm-dev wayland-dev xorg-libX11-dev xorg-libXdamage-dev \
al@20502 113 xorg-libXext-dev xorg-libXfixes-dev xorg-libXxf86vm-dev \
al@20502 114 xorg-libxcb-dev"
al@20502 115 ;;
pascal@19950 116 esac
pascal@592 117 }