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