wok-next view mesa/receipt @ rev 21670

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