wok-next view mesa17/receipt @ rev 20200
libgnomeprint: add bison 3 patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 03 17:38:15 2017 +0100 (2017-11-03) |
parents | 7c0811ea751c |
children | 0e7893ac206d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mesa17"
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"
21 SPLIT="mesa17-dri mesa17-libegl mesa17-libgbm mesa17-osmesa mesa17-libswrAVX \
22 mesa17-libwayland-egl mesa17-libxatracker mesa17-vdpau mesa17 mesa17-dev"
24 compile_rules() {
25 # Removed from the full list: freedreno,vc4
26 # because we haven't appropriate libdrm-* packages (they are only for ARM)
27 GLL_DRV="i915,nouveau,r300,r600,radeonsi,svga,swrast,swr,virgl,etnaviv,imx"
29 sed -i "/pthread_stubs_possible=/s/yes/no/" configure.ac
30 ./autogen.sh \
31 CFLAGS='-O2' CXXFLAGS='-O2' \
32 --prefix=/usr \
33 --sysconfdir=/etc \
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 &&
44 unset GLL_DRV &&
46 make && make install &&
47 cook_pick_docs docs/* &&
49 mkdir -p $install/etc/X11/xorg.conf.d &&
50 cp $stuff/90-DRI.conf $install/etc/X11/xorg.conf.d
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 mesa17 \
60 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libpciaccess \
61 xorg-libxcb xorg-libxshmfence zlib"
62 PROVIDE="mesa-dri"
63 ;;
64 *-libegl)
65 copy libEGL.so*
66 CAT="x-window|EGL library"
67 DEPENDS="expat libdrm libffi mesa17-libgbm wayland xorg-libX11 \
68 xorg-libXau xorg-libXdmcp xorg-libxcb xorg-libxshmfence"
69 PROVIDE="libegl libegl-mesa mesa-libegl"
70 ;;
71 *-libgbm)
72 copy libgbm.so*
73 CAT="x-window|Graphics Buffer Manager library"
74 DEPENDS="expat libdrm libffi wayland"
75 PROVIDE="mesa-libgbm"
76 ;;
77 *-osmesa)
78 copy libOSMesa.so*
79 CAT="x-window|Off-screen Rendering library"
80 DEPENDS="mesa17 zlib"
81 PROVIDE="mesa-osmesa"
82 ;;
83 *-libwayland-egl)
84 copy libwayland-egl.so*
85 CAT="x-window|Wayland EGL library"
86 DEPENDS=" "
87 PROVIDE="mesa-libwayland-egl"
88 ;;
89 *-libxatracker)
90 copy libxatracker.so*
91 CAT="x-window|Xorg Gallium3D acceleration library"
92 DEPENDS="expat libdrm libdrm-intel libdrm-nouveau llvm-libs \
93 xorg-libpciaccess zlib"
94 PROVIDE="mesa-libxatracker"
95 ;;
96 *-vdpau)
97 copy lib/vdpau/
98 CAT="x-window|VDPAU drivers"
99 DEPENDS="elfutils expat libdrm libdrm-amdgpu libdrm-nouveau \
100 libdrm-radeon llvm-libs xorg-libX11 xorg-libXau xorg-libXdmcp \
101 xorg-libxcb xorg-libxshmfence zlib"
102 PROVIDE="mesa-vdpau"
103 ;;
104 *-libswrAVX)
105 copy libswrAVX*so*
106 CAT="x-window|Fast software rendering driver for CPU with AVX"
107 DEPENDS="mesa17 llvm-libs"
108 ;;
109 mesa17)
110 copy @std
111 remove_already_packed
112 CAT="x-window|main OpenGL libraries"
113 DEPENDS="expat libdrm xorg-libX11 xorg-libXau \
114 xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \
115 xorg-libXxf86vm xorg-libxcb xorg-libxshmfence zlib"
116 SUGGESTED="nvidia"
117 PROVIDE="libgl mesa"
118 CONFIG_FILES="/etc/drirc"
119 ;;
120 *-dev)
121 copy @dev
122 DEPENDS="mesa17 mesa17-dri mesa17-libegl mesa17-libgbm \
123 mesa17-osmesa mesa17-libwayland-egl mesa17-libxatracker \
124 mesa17-vdpau \
125 expat-dev libdrm-dev libffi-dev llvm-dev wayland-dev \
126 xorg-libX11-dev xorg-libXau-dev xorg-libXdamage-dev \
127 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXfixes-dev \
128 xorg-libXxf86vm-dev xorg-libpciaccess-dev xorg-libxcb-dev \
129 xorg-libxshmfence-dev zlib-dev"
130 PROVIDE="mesa-dev"
131 ;;
132 esac
133 }