wok-next view mesa12/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | 757d032c55c7 |
children | 4e6503d7a19f |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mesa12"
4 VERSION="12.0.6"
5 CATEGORY="x-window"
6 SHORT_DESC="Open-source implementaton of OpenGL: legacy"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.mesa3d.org/"
11 TARBALL="mesa-$VERSION.tar.xz"
12 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL"
14 BUILD_DEPENDS="autoconf automake libtool python libdrm-dev libgcrypt-dev \
15 eudev-dev xorg-glproto xorg-dri2proto xorg-dri3proto xorg-presentproto \
16 xorg-libxcb-dev xorg-libxshmfence-dev xorg-libX11-dev xorg-libXext-dev \
17 xorg-libXdamage-dev xorg-libXfixes-dev xorg-libXxf86vm-dev expat-dev \
18 elfutils-dev llvm-dev xorg-libpciaccess-dev"
19 SPLIT="mesa12 mesa12-dev mesa12-dri mesa12-libegl"
21 compile_rules() {
22 # "swr" driver is disabled due to compilation errors
23 GLL_DRV="nouveau,r300,r600,radeonsi,svga,swrast"
25 sed -i "/pthread-stubs/d" configure.ac
26 sed -i "/seems to be moved/s/^/: #/" bin/ltmain.sh
28 ./autogen.sh CFLAGS='-O2' CXXFLAGS='-O2' \
29 --sysconfdir=/etc \
30 --enable-texture-float \
31 --enable-gles1 \
32 --enable-gles2 \
33 --enable-osmesa \
34 --enable-xa \
35 --enable-gbm \
36 --enable-glx-tls \
37 --with-egl-platforms="drm,x11" \
38 --with-gallium-drivers=$GLL_DRV &&
40 unset GLL_DRV &&
42 make && make install || return 1
44 install -Dm644 $stuff/90-DRI.conf $install/etc/X11/xorg.conf.d/90-DRI.conf
45 }
47 genpkg_rules() {
48 case $PACKAGE in
49 mesa12)
50 copy etc/ libGL.so* libGLESv1_CM.so* libGLESv2.so* \
51 libOSMesa.so* libgbm.so* libglapi.so* libxatracker.so*
52 DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm \
53 xorg-libXt udev xorg-libxshmfence"
54 SUGGESTED="nvidia"
55 PROVIDE="libgl"
56 CONFIG_FILES="/etc/drirc"
57 ;;
58 mesa12-dev)
59 copy @dev
60 DEPENDS="mesa12 mesa12-dri mesa12-libegl libdrm-dev \
61 xorg-libXdamage-dev xorg-libXxf86vm-dev \
62 xorg-libXt-dev xorg-glproto xorg-dri2proto"
63 ;;
64 mesa12-dri)
65 copy *_dri.so 90-DRI.conf
66 CAT="x-window|DRI drivers"
67 DEPENDS="elfutils expat libdrm libdrm-intel libdrm-nouveau \
68 libdrm-radeon libgcrypt libgpg-error llvm-libs \
69 xorg-libpciaccess zlib"
70 ;;
71 mesa12-libegl)
72 copy libEGL*
73 CAT="libs|EGL library"
74 DEPENDS="mesa12"
75 ;;
76 esac
77 }