wok-next annotate mesa/receipt @ rev 20286
remove ppp-dev, ppp-pam
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 08 15:57:06 2017 +0100 (2017-11-08) |
parents | a99f7dc12470 |
children | 7639f09792cf |
rev | line source |
---|---|
pascal@19950 | 1 # SliTaz package receipt v2. |
pascal@592 | 2 |
pascal@592 | 3 PACKAGE="mesa" |
al@19645 | 4 VERSION="12.0.6" |
pankso@4421 | 5 CATEGORY="x-window" |
rcx@3695 | 6 SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL." |
pascal@592 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14728 | 8 LICENSE="MIT" |
al@19645 | 9 WEB_SITE="https://www.mesa3d.org/" |
jozee@5018 | 10 SUGGESTED="nvidia" |
al@19645 | 11 PROVIDE="libgl" |
al@19645 | 12 CONFIG_FILES="/etc/drirc" |
al@19645 | 13 |
al@19645 | 14 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@5298 | 15 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL" |
pascal@592 | 16 |
al@19645 | 17 BUILD_DEPENDS="autoconf automake libtool python libdrm-dev libgcrypt-dev \ |
al@19645 | 18 eudev-dev xorg-glproto xorg-dri2proto xorg-dri3proto xorg-presentproto \ |
al@19645 | 19 libxcb-dev xorg-libxshmfence-dev xorg-libX11-dev xorg-libXext-dev \ |
al@19645 | 20 xorg-libXdamage-dev xorg-libXfixes-dev xorg-libXxf86vm-dev expat-dev \ |
al@19646 | 21 elfutils-dev llvm-dev xorg-libpciaccess-dev" |
pascal@19950 | 22 SPLIT="mesa mesa-dev mesa-dri libegl-mesa" |
al@19645 | 23 # libGLU is included in the package libglu-mesa |
al@19645 | 24 # libGLw is included in the package libglw-mesa |
al@19645 | 25 # libEGL is included in the package libegl-mesa |
pankso@9735 | 26 |
pascal@592 | 27 # Rules to configure and make the package. |
pascal@592 | 28 compile_rules() |
rcx@3695 | 29 { |
al@19645 | 30 # patch -p1 -i $stuff/mesa-12.0.patch |
al@19645 | 31 |
al@19645 | 32 # "swr" driver is disabled due to compilation errors |
al@19645 | 33 GLL_DRV="nouveau,r300,r600,radeonsi,svga,swrast" && |
al@19645 | 34 |
al@19645 | 35 sed -i "/pthread-stubs/d" configure.ac && |
al@19645 | 36 sed -i "/seems to be moved/s/^/: #/" bin/ltmain.sh && |
al@19645 | 37 ./autogen.sh CFLAGS='-O2' CXXFLAGS='-O2' \ |
al@19645 | 38 --sysconfdir=/etc \ |
al@19645 | 39 --enable-texture-float \ |
al@19645 | 40 --enable-gles1 \ |
al@19645 | 41 --enable-gles2 \ |
al@19645 | 42 --enable-osmesa \ |
al@19645 | 43 --enable-xa \ |
al@19645 | 44 --enable-gbm \ |
al@19645 | 45 --enable-glx-tls \ |
al@19645 | 46 --with-egl-platforms="drm,x11" \ |
al@19645 | 47 --with-gallium-drivers=$GLL_DRV && |
al@19645 | 48 |
al@19645 | 49 unset GLL_DRV && |
al@19645 | 50 |
al@19645 | 51 make && make install |
pascal@592 | 52 } |
pascal@592 | 53 |
pascal@592 | 54 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@592 | 55 genpkg_rules() |
pascal@592 | 56 { |
pascal@19950 | 57 case $PACKAGE in |
pascal@19950 | 58 mesa) |
pascal@19950 | 59 DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm \ |
pascal@19950 | 60 xorg-libXt udev xorg-libxshmfence" |
pascal@19950 | 61 copy etc/ libGL.so* libGLESv1_CM.so* libGLESv2.so* \ |
pascal@19950 | 62 libOSMesa.so* libgbm.so* libglapi.so* libxatracker.so* |
pascal@19950 | 63 ;; |
pascal@19950 | 64 mesa-dev) |
pascal@19951 | 65 CAT="development|3D Graphics Library dev files." |
pascal@19950 | 66 DEPENDS="mesa mesa-dri mesa-libegl libdrm-dev \ |
pascal@19950 | 67 xorg-libXdamage-dev xorg-libXxf86vm-dev \ |
pascal@19950 | 68 xorg-libXt-dev xorg-glproto xorg-dri2proto pkg-config" |
pascal@19950 | 69 copy *.h *.la *.pc |
pascal@19950 | 70 ;; |
pascal@19950 | 71 mesa-dri) |
pascal@19950 | 72 CAT="x-window|Mesa DRI drivers." |
pascal@19950 | 73 DEPENDS="elfutils expat libdrm libdrm-intel libdrm-nouveau \ |
pascal@19950 | 74 libdrm-radeon libgcrypt libgpg-error llvm-libs \ |
pascal@19950 | 75 xorg-libpciaccess zlib" |
pascal@19950 | 76 copy *_dri.so |
pascal@19950 | 77 mkdir -p $fs/etc/X11/xorg.conf.d |
pascal@19950 | 78 cp $stuff/90-DRI.conf $fs/etc/X11/xorg.conf.d |
pascal@19950 | 79 ;; |
pascal@19950 | 80 libegl-mesa) |
pascal@19950 | 81 CAT="libs|OpenGL utility library" |
pascal@19950 | 82 DEPENDS="mesa" |
al@19958 | 83 PROVIDE="mesa-libegl" |
pascal@19950 | 84 copy libEGL* |
pascal@19950 | 85 ;; |
pascal@19950 | 86 esac |
pascal@592 | 87 } |