wok-next annotate mesa/receipt @ rev 21362

iptraf: new WGET_URL
author Hans-G?nter Theisgen
date Mon Apr 13 08:05:00 2020 +0100 (2020-04-13)
parents d5aab818505e
children
rev   line source
pascal@19950 1 # SliTaz package receipt v2.
pascal@592 2
pascal@592 3 PACKAGE="mesa"
al@21072 4 VERSION="18.3.1"
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@21017 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/x/mesa.html"
al@19645 11
al@21072 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@20502 13 WGET_URL="https://mesa.freedesktop.org/archive/$TARBALL"
al@21072 14 TARBALL_SHA1="50ba2d37647fea77ea19416e8a6ffed34c313330"
pascal@592 15
al@21072 16 BUILD_DEPENDS="python libdrm-dev libgcrypt-dev eudev-dev xorgproto \
al@21072 17 libxcb-dev libxshmfence-dev libx11-dev libxext-dev libxdamage-dev \
al@21072 18 libxfixes-dev libxxf86vm-dev expat-dev elfutils-dev llvm-dev libpciaccess-dev \
al@21072 19 wayland-dev libva-dev libvdpau-dev wayland-protocols-dev libatomic zlib-dev \
al@21072 20 libxi-dev libxrandr-dev"
al@21072 21 BUILD_DEPENDS="${BUILD_DEPENDS/libva-dev/}" # dep loop mesa<->libva
al@21072 22 SPLIT="\
al@21072 23 $PACKAGE-dri $PACKAGE-libegl $PACKAGE-libgbm \
al@21072 24 $PACKAGE-osmesa $PACKAGE-libxatracker $PACKAGE-vdpau \
al@21072 25 $PACKAGE $PACKAGE-dev"
al@21072 26
al@21072 27 COPY_dri="lib/dri/ 90-DRI.conf"
al@21072 28 COPY_libegl="libEGL.so*"
al@21072 29 COPY_libgbm="libgbm.so*"
al@21072 30 COPY_osmesa="libOSMesa.so*"
al@21072 31 COPY_libxatracker="libxatracker.so*"
al@21072 32 COPY_vdpau="lib/vdpau/"
al@21072 33 COPY_std="@std @rm"
al@21072 34
al@21072 35 DEPENDS_dri="elfutils expat libdrm libdrm-amdgpu libdrm-etnaviv libdrm-intel \
al@21072 36 libdrm-nouveau libdrm-radeon libllvm mesa zlib"
al@21072 37 DEPENDS_libegl="expat libdrm libx11 libxcb libxshmfence mesa mesa-libgbm wayland zlib"
al@21072 38 DEPENDS_libgbm="expat libdrm wayland zlib"
al@21072 39 DEPENDS_osmesa="mesa zlib"
al@21072 40 DEPENDS_libxatracker="expat libdrm libdrm-intel libdrm-nouveau libllvm zlib"
al@21072 41 DEPENDS_vdpau="elfutils expat libdrm libdrm-amdgpu libdrm-nouveau \
al@21072 42 libdrm-radeon libllvm libx11 libxcb libxshmfence zlib"
al@21072 43 DEPENDS_std="expat libdrm libx11 libxcb libxdamage libxext libxfixes \
al@21072 44 libxshmfence libxxf86vm"
al@21072 45 DEPENDS_dev="$PACKAGE $PACKAGE-dri $PACKAGE-libegl $PACKAGE-libgbm \
al@21072 46 $PACKAGE-osmesa $PACKAGE-libxatracker $PACKAGE-vdpau \
al@21072 47 libdrm-dev wayland-dev libx11-dev libxcb-dev libxdamage-dev libxext-dev \
al@21072 48 libxfixes-dev libxxf86vm-dev"
al@21072 49
al@21072 50 CAT_dri="x-window|Direct Rendering Infrastructure"
al@21072 51 CAT_libegl="x-window|EGL library"
al@21072 52 CAT_libgbm="x-window|Graphics Buffer Manager library"
al@21072 53 CAT_osmesa="x-window|Off-screen Rendering library"
al@21072 54 CAT_libxatracker="x-window|Xorg Gallium3D acceleration library"
al@21072 55 CAT_vdpau="x-window|VDPAU drivers"
al@21072 56 CAT_std="x-window|main OpenGL libraries"
al@21072 57
al@21072 58 SUGGESTED_std="nvidia"
al@21072 59 PROVIDE_std="libgl"
al@21072 60 CONFIG_FILES_std="/etc/drirc"
pankso@9735 61
al@20502 62 compile_rules() {
al@21072 63 # Removed from the full list:
al@21072 64 # - freedreno,vc4 (they are only for ARM)
al@21072 65 # - swr (it doesn't build)
al@21072 66 GLL_DRV="i915,nouveau,r300,r600,radeonsi,svga,swrast,virgl,etnaviv,imx"
al@19645 67
al@21072 68 ./configure \
al@21072 69 CFLAGS='-O2' CXXFLAGS='-O2' LDFLAGS=-lLLVM \
al@19645 70 --enable-gles1 \
al@19645 71 --enable-gles2 \
al@19645 72 --enable-osmesa \
al@19645 73 --enable-xa \
al@19645 74 --enable-gbm \
al@19645 75 --enable-glx-tls \
al@20502 76 --with-platforms="drm,x11,wayland" \
al@19645 77 --with-gallium-drivers=$GLL_DRV &&
al@20502 78 unset GLL_DRV &&
al@20502 79 fix libtool &&
al@20534 80 make &&
al@20534 81 make install || return 1
al@19645 82
al@20502 83 cook_pick_docs docs/*
al@20502 84 install -Dm644 $stuff/90-DRI.conf $install/etc/X11/xorg.conf.d/90-DRI.conf
pascal@592 85 }