wok-next view mesa/receipt @ rev 20512
Tiny edits, patch ptlib
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Mar 17 04:50:25 2018 +0200 (2018-03-17) |
parents | c0521c689857 |
children | 6477d7f70481 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mesa"
4 VERSION="17.2.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-glproto xorg-dri2proto xorg-dri3proto xorg-presentproto \
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 fix ld
32 ./autogen.sh \
33 CFLAGS='-O2' CXXFLAGS='-O2' \
34 --prefix=/usr \
35 --sysconfdir=/etc \
36 --enable-texture-float \
37 --enable-gles1 \
38 --enable-gles2 \
39 --enable-osmesa \
40 --enable-xa \
41 --enable-gbm \
42 --enable-glx-tls \
43 --with-platforms="drm,x11,wayland" \
44 --with-gallium-drivers=$GLL_DRV &&
45 unset GLL_DRV &&
46 fix libtool &&
47 make && make install || return 1
49 cook_pick_docs docs/*
50 install -Dm644 $stuff/90-DRI.conf $install/etc/X11/xorg.conf.d/90-DRI.conf
51 }
53 genpkg_rules() {
54 case $PACKAGE in
55 *-dri)
56 copy lib/dri/ 90-DRI.conf
57 CAT="x-window|Direct Rendering Infrastructure"
58 DEPENDS="elfutils expat libdrm libdrm-amdgpu libdrm-etnaviv \
59 libdrm-intel libdrm-nouveau libdrm-radeon llvm-libs mesa \
60 xorg-libX11 xorg-libxcb xorg-libxshmfence zlib"
61 ;;
62 *-libegl)
63 copy libEGL.so*
64 CAT="x-window|EGL library"
65 DEPENDS="expat libdrm mesa-libgbm wayland xorg-libX11 \
66 xorg-libxcb xorg-libxshmfence zlib"
67 ;;
68 *-libgbm)
69 copy libgbm.so*
70 CAT="x-window|Graphics Buffer Manager library"
71 DEPENDS="expat libdrm wayland"
72 ;;
73 *-osmesa)
74 copy libOSMesa.so*
75 CAT="x-window|Off-screen Rendering library"
76 DEPENDS="mesa zlib"
77 ;;
78 *-libwayland-egl)
79 copy libwayland-egl.so*
80 CAT="x-window|Wayland EGL library"
81 DEPENDS=" "
82 ;;
83 *-libxatracker)
84 copy libxatracker.so*
85 CAT="x-window|Xorg Gallium3D acceleration library"
86 DEPENDS="expat libdrm libdrm-intel libdrm-nouveau llvm-libs zlib"
87 ;;
88 *-vdpau)
89 copy lib/vdpau/
90 CAT="x-window|VDPAU drivers"
91 DEPENDS="elfutils expat libdrm libdrm-amdgpu libdrm-nouveau \
92 libdrm-radeon llvm-libs xorg-libX11 xorg-libxcb xorg-libxshmfence \
93 zlib"
94 ;;
95 *-libswrAVX)
96 copy libswrAVX*so*
97 CAT="x-window|Fast software rendering driver for CPU with AVX"
98 DEPENDS=" "
99 ;;
100 mesa)
101 copy @std @rm
102 CAT="x-window|main OpenGL libraries"
103 DEPENDS="expat libdrm xorg-libX11 xorg-libXdamage xorg-libXext \
104 xorg-libXfixes xorg-libXxf86vm xorg-libxcb xorg-libxshmfence"
105 SUGGESTED="nvidia"
106 PROVIDE="libgl"
107 CONFIG_FILES="/etc/drirc"
108 ;;
109 *-dev)
110 copy @dev
111 DEPENDS="mesa mesa-dri mesa-libegl mesa-libgbm \
112 mesa-osmesa mesa-libwayland-egl mesa-libxatracker \
113 mesa-vdpau \
114 libdrm-dev wayland-dev xorg-libX11-dev xorg-libXdamage-dev \
115 xorg-libXext-dev xorg-libXfixes-dev xorg-libXxf86vm-dev \
116 xorg-libxcb-dev"
117 ;;
118 esac
119 }