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