wok-next view mesa/receipt @ rev 21031
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 03 15:42:26 2018 +0200 (2018-11-03) |
parents | f48456621a9d |
children | d01953cd12ed |
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/svn/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="$PACKAGE-dri $PACKAGE-libegl $PACKAGE-libgbm $PACKAGE-osmesa \
23 $PACKAGE-libswrAVX $PACKAGE-libwayland-egl $PACKAGE-libxatracker $PACKAGE-vdpau \
24 $PACKAGE $PACKAGE-dev"
26 compile_rules() {
27 # Removed from the full list: freedreno,vc4
28 # because we haven't appropriate libdrm-* packages (they are only for ARM)
29 GLL_DRV="i915,nouveau,r300,r600,radeonsi,svga,swrast,swr,virgl,etnaviv,imx"
31 sed -i "/pthread_stubs_possible=/s/yes/no/" configure.ac
32 ./autogen.sh \
33 CFLAGS='-O2' CXXFLAGS='-O2' \
34 --enable-texture-float \
35 --enable-gles1 \
36 --enable-gles2 \
37 --enable-osmesa \
38 --enable-xa \
39 --enable-gbm \
40 --enable-glx-tls \
41 --with-platforms="drm,x11,wayland" \
42 --with-gallium-drivers=$GLL_DRV &&
43 unset GLL_DRV &&
44 fix libtool &&
45 make &&
46 make install || return 1
48 cook_pick_docs docs/*
49 install -Dm644 $stuff/90-DRI.conf $install/etc/X11/xorg.conf.d/90-DRI.conf
50 }
52 genpkg_rules() {
53 case $PACKAGE in
54 *-dri)
55 copy lib/dri/ 90-DRI.conf
56 CAT="x-window|Direct Rendering Infrastructure"
57 DEPENDS="elfutils expat libdrm libdrm-amdgpu libdrm-etnaviv \
58 libdrm-intel libdrm-nouveau libdrm-radeon llvm-libs mesa \
59 xorg-libX11 xorg-libxcb xorg-libxshmfence zlib"
60 ;;
61 *-libegl)
62 copy libEGL.so*
63 CAT="x-window|EGL library"
64 DEPENDS="expat libdrm mesa-libgbm wayland xorg-libX11 \
65 xorg-libxcb xorg-libxshmfence zlib"
66 ;;
67 *-libgbm)
68 copy libgbm.so*
69 CAT="x-window|Graphics Buffer Manager library"
70 DEPENDS="expat libdrm wayland"
71 ;;
72 *-osmesa)
73 copy libOSMesa.so*
74 CAT="x-window|Off-screen Rendering library"
75 DEPENDS="mesa zlib"
76 ;;
77 *-libwayland-egl)
78 copy libwayland-egl.so*
79 CAT="x-window|Wayland EGL library"
80 DEPENDS=" "
81 ;;
82 *-libxatracker)
83 copy libxatracker.so*
84 CAT="x-window|Xorg Gallium3D acceleration library"
85 DEPENDS="expat libdrm libdrm-intel libdrm-nouveau llvm-libs zlib"
86 ;;
87 *-vdpau)
88 copy lib/vdpau/
89 CAT="x-window|VDPAU drivers"
90 DEPENDS="elfutils expat libdrm libdrm-amdgpu libdrm-nouveau \
91 libdrm-radeon llvm-libs xorg-libX11 xorg-libxcb xorg-libxshmfence \
92 zlib"
93 ;;
94 *-libswrAVX)
95 copy libswrAVX*so*
96 CAT="x-window|Fast software rendering driver for CPU with AVX"
97 DEPENDS=" "
98 ;;
99 mesa)
100 copy @std @rm
101 CAT="x-window|main OpenGL libraries"
102 DEPENDS="expat libdrm xorg-libX11 xorg-libXdamage xorg-libXext \
103 xorg-libXfixes xorg-libXxf86vm xorg-libxcb xorg-libxshmfence"
104 SUGGESTED="nvidia"
105 PROVIDE="libgl"
106 CONFIG_FILES="/etc/drirc"
107 ;;
108 *-dev)
109 copy @dev
110 DEPENDS="mesa mesa-dri mesa-libegl mesa-libgbm \
111 mesa-osmesa mesa-libwayland-egl mesa-libxatracker \
112 mesa-vdpau \
113 libdrm-dev wayland-dev xorg-libX11-dev xorg-libXdamage-dev \
114 xorg-libXext-dev xorg-libXfixes-dev xorg-libXxf86vm-dev \
115 xorg-libxcb-dev"
116 ;;
117 esac
118 }