wok-next view mesa17/receipt @ rev 19990

lighttpd: add missing SPLIT
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 20 08:05:51 2017 +0200 (2017-10-20)
parents
children 624992409fdb
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mesa17"
4 VERSION="17.1.6"
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 zlib-dev"
21 SPLIT="mesa17-dri mesa17-libegl mesa17-libgbm mesa17-osmesa \
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 mesa17)
105 copy @std
106 remove_already_packed
107 CAT="x-window|main OpenGL libraries"
108 DEPENDS="expat libdrm llvm-libs xorg-libX11 xorg-libXau \
109 xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \
110 xorg-libXxf86vm xorg-libxcb xorg-libxshmfence zlib"
111 SUGGESTED="nvidia"
112 PROVIDE="libgl mesa"
113 CONFIG_FILES="/etc/drirc"
114 ;;
115 *-dev)
116 copy @dev
117 DEPENDS="mesa17 mesa17-dri mesa17-libegl mesa17-libgbm \
118 mesa17-osmesa mesa17-libwayland-egl mesa17-libxatracker \
119 mesa17-vdpau \
120 expat-dev libdrm-dev libffi-dev llvm-dev wayland-dev \
121 xorg-libX11-dev xorg-libXau-dev xorg-libXdamage-dev \
122 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXfixes-dev \
123 xorg-libXxf86vm-dev xorg-libpciaccess-dev xorg-libxcb-dev \
124 xorg-libxshmfence-dev zlib-dev"
125 PROVIDE="mesa-dev"
126 ;;
127 esac
128 }