wok-next view mesa17/receipt @ rev 20459
Combine receipts
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 02 13:45:43 2018 +0200 (2018-03-02) |
parents | 16082744d27e |
children |
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 #BUILD_DEPENDS="${BUILD_DEPENDS/libva-dev/}"
22 SPLIT="mesa17-dri mesa17-libegl mesa17-libgbm mesa17-osmesa mesa17-libswrAVX \
23 mesa17-libwayland-egl mesa17-libxatracker mesa17-vdpau mesa17 mesa17-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 mesa17 \
60 xorg-libX11 xorg-libxcb xorg-libxshmfence zlib"
61 PROVIDE="mesa-dri"
62 ;;
63 *-libegl)
64 copy libEGL.so*
65 CAT="x-window|EGL library"
66 DEPENDS="expat libdrm mesa17-libgbm wayland xorg-libX11 \
67 xorg-libxcb xorg-libxshmfence zlib"
68 PROVIDE="libegl libegl-mesa mesa-libegl"
69 ;;
70 *-libgbm)
71 copy libgbm.so*
72 CAT="x-window|Graphics Buffer Manager library"
73 DEPENDS="expat libdrm wayland"
74 PROVIDE="mesa-libgbm"
75 ;;
76 *-osmesa)
77 copy libOSMesa.so*
78 CAT="x-window|Off-screen Rendering library"
79 DEPENDS="mesa17 zlib"
80 PROVIDE="mesa-osmesa"
81 ;;
82 *-libwayland-egl)
83 copy libwayland-egl.so*
84 CAT="x-window|Wayland EGL library"
85 DEPENDS=" "
86 PROVIDE="mesa-libwayland-egl"
87 ;;
88 *-libxatracker)
89 copy libxatracker.so*
90 CAT="x-window|Xorg Gallium3D acceleration library"
91 DEPENDS="expat libdrm libdrm-intel libdrm-nouveau llvm-libs zlib"
92 PROVIDE="mesa-libxatracker"
93 ;;
94 *-vdpau)
95 copy lib/vdpau/
96 CAT="x-window|VDPAU drivers"
97 DEPENDS="elfutils expat libdrm libdrm-amdgpu libdrm-nouveau \
98 libdrm-radeon llvm-libs xorg-libX11 xorg-libxcb xorg-libxshmfence \
99 zlib"
100 PROVIDE="mesa-vdpau"
101 ;;
102 *-libswrAVX)
103 copy libswrAVX*so*
104 CAT="x-window|Fast software rendering driver for CPU with AVX"
105 DEPENDS=" "
106 ;;
107 mesa17)
108 copy @std @rm
109 CAT="x-window|main OpenGL libraries"
110 DEPENDS="expat libdrm xorg-libX11 xorg-libXdamage xorg-libXext \
111 xorg-libXfixes xorg-libXxf86vm xorg-libxcb xorg-libxshmfence"
112 SUGGESTED="nvidia"
113 PROVIDE="libgl mesa"
114 CONFIG_FILES="/etc/drirc"
115 ;;
116 *-dev)
117 copy @dev
118 DEPENDS="mesa17 mesa17-dri mesa17-libegl mesa17-libgbm \
119 mesa17-osmesa mesa17-libwayland-egl mesa17-libxatracker \
120 mesa17-vdpau \
121 libdrm-dev wayland-dev xorg-libX11-dev xorg-libXdamage-dev \
122 xorg-libXext-dev xorg-libXfixes-dev xorg-libXxf86vm-dev \
123 xorg-libxcb-dev"
124 PROVIDE="mesa-dev"
125 ;;
126 esac
127 }