wok-next view mesa12/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d5aab818505e
children
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/"
10 REPOLOGY="mesa"
12 TARBALL="mesa-$VERSION.tar.xz"
13 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL"
15 BUILD_DEPENDS="autoconf automake libtool python libdrm-dev libgcrypt-dev \
16 eudev-dev xorgproto \
17 libxcb-dev libxshmfence-dev libx11-dev libxext-dev \
18 libxdamage-dev libxfixes-dev libxxf86vm-dev expat-dev \
19 elfutils-dev llvm-dev libpciaccess-dev"
20 SPLIT="$PACKAGE-dev $PACKAGE-dri $PACKAGE-libegl"
22 compile_rules() {
23 # "swr" driver is disabled due to compilation errors
24 GLL_DRV="nouveau,r300,r600,radeonsi,svga,swrast"
26 sed -i "/pthread-stubs/d" configure.ac
27 sed -i "/seems to be moved/s/^/: #/" bin/ltmain.sh
29 ./autogen.sh CFLAGS='-O2' CXXFLAGS='-O2' \
30 --sysconfdir=/etc \
31 --enable-texture-float \
32 --enable-gles1 \
33 --enable-gles2 \
34 --enable-osmesa \
35 --enable-xa \
36 --enable-gbm \
37 --enable-glx-tls \
38 --with-egl-platforms="drm,x11" \
39 --with-gallium-drivers=$GLL_DRV &&
41 unset GLL_DRV &&
43 make &&
44 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 libxdamage libxxf86vm \
55 libxt udev 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 libxdamage-dev libxxf86vm-dev \
64 libxt-dev xorgproto"
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 libpciaccess zlib"
72 ;;
73 mesa12-libegl)
74 copy libEGL*
75 CAT="libs|EGL library"
76 DEPENDS="mesa12"
77 ;;
78 esac
79 }