wok-next view mesa12/receipt @ rev 20626
librevenge: fix build for new toolchain
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Apr 26 13:06:21 2018 +0300 (2018-04-26) |
parents | d43bf7aae921 |
children | d6378d455338 |
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 # patch -p1 -i $stuff/mesa-12.0.patch
24 # "swr" driver is disabled due to compilation errors
25 GLL_DRV="nouveau,r300,r600,radeonsi,svga,swrast"
27 sed -i "/pthread-stubs/d" configure.ac
28 sed -i "/seems to be moved/s/^/: #/" bin/ltmain.sh
30 ./autogen.sh CFLAGS='-O2' CXXFLAGS='-O2' \
31 --sysconfdir=/etc \
32 --enable-texture-float \
33 --enable-gles1 \
34 --enable-gles2 \
35 --enable-osmesa \
36 --enable-xa \
37 --enable-gbm \
38 --enable-glx-tls \
39 --with-egl-platforms="drm,x11" \
40 --with-gallium-drivers=$GLL_DRV &&
42 unset GLL_DRV &&
44 make && make install || return 1
46 install -Dm644 $stuff/90-DRI.conf $install/etc/X11/xorg.conf.d/90-DRI.conf
47 }
49 genpkg_rules() {
50 case $PACKAGE in
51 mesa12)
52 copy etc/ libGL.so* libGLESv1_CM.so* libGLESv2.so* \
53 libOSMesa.so* libgbm.so* libglapi.so* libxatracker.so*
54 DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm \
55 xorg-libXt udev xorg-libxshmfence"
56 SUGGESTED="nvidia"
57 PROVIDE="libgl"
58 CONFIG_FILES="/etc/drirc"
59 ;;
60 mesa12-dev)
61 copy @dev
62 DEPENDS="mesa12 mesa12-dri mesa12-libegl libdrm-dev \
63 xorg-libXdamage-dev xorg-libXxf86vm-dev \
64 xorg-libXt-dev xorg-glproto xorg-dri2proto"
65 ;;
66 mesa12-dri)
67 copy *_dri.so 90-DRI.conf
68 CAT="x-window|DRI drivers"
69 DEPENDS="elfutils expat libdrm libdrm-intel libdrm-nouveau \
70 libdrm-radeon libgcrypt libgpg-error llvm-libs \
71 xorg-libpciaccess zlib"
72 ;;
73 mesa12-libegl)
74 copy libEGL*
75 CAT="libs|EGL library"
76 DEPENDS="mesa12"
77 ;;
78 esac
79 }