wok-undigest rev 1168

Add llvm & mesa
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 13 11:35:18 2015 +0200 (2015-09-13)
parents 32dc290c2db2
children 405c289aa8d6
files llvm/receipt mesa-wayland/receipt mesa-wayland/stuff/nouveau-fix-header.patch mesa/receipt mesa/stuff/nouveau-fix-header.patch
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/llvm/receipt	Sun Sep 13 11:35:18 2015 +0200
     1.3 @@ -0,0 +1,40 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="llvm"
     1.7 +VERSION="3.6.0"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Modular compiler toolchain collection."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="MIT"
    1.12 +WEB_SITE="http://llvm.org/"
    1.13 +TARBALL="$PACKAGE-$VERSION.src.tar.xz"
    1.14 +WGET_URL="${WEB_SITE}releases/$VERSION/$TARBALL"
    1.15 +
    1.16 +DEPENDS="libffi gcc49-lib-base"
    1.17 +BUILD_DEPENDS="libffi-dev libffi perl gcc49"
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	export LD_LIBRARY_PATH="/usr/libgcc49:$LD_LIBRARY_PATH"
    1.23 +	./configure CC=gcc-49 CXX=g++-49 \
    1.24 +		--prefix=/usr --sysconfdir=/etc \
    1.25 +		--enable-libffi \
    1.26 +		--enable-optimized \
    1.27 +		--enable-shared \
    1.28 +		--enable-targets=all \
    1.29 +		--disable-assertions \
    1.30 +		--disable-debug-runtime \
    1.31 +		--disable-expensive-checks \
    1.32 +		$CONFIGURE_ARGS &&
    1.33 +	make && make DESTDIR=$DESTDIR install
    1.34 +}
    1.35 +
    1.36 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.37 +genpkg_rules()
    1.38 +{
    1.39 +	mkdir -p $fs/usr
    1.40 +	cp -a $install/usr/bin $fs/usr
    1.41 +	cp -a $install/usr/lib $fs/usr
    1.42 +	cp -a $install/usr/include $fs/usr
    1.43 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/mesa-wayland/receipt	Sun Sep 13 11:35:18 2015 +0200
     2.3 @@ -0,0 +1,70 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="mesa-wayland"
     2.7 +VERSION="10.5.4"
     2.8 +CATEGORY="x-window"
     2.9 +SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL."
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +LICENSE="MIT"
    2.12 +SUGGESTED="nvidia"
    2.13 +SOURCE="Mesa"
    2.14 +TARBALL="${SOURCE}Lib-$VERSION.tar.xz"
    2.15 +WEB_SITE="http://www.mesa3d.org/"
    2.16 +WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL"
    2.17 +#HOST_ARCH="arm i486"
    2.18 +
    2.19 +# Have Wayland support by default ?
    2.20 +PROVIDE="libgl libegl-mesa libglw-mesa"
    2.21 +
    2.22 +DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt udev \
    2.23 +wayland"
    2.24 +BUILD_DEPENDS="expat-dev libdrm-dev xorg-libXdamage-dev pkg-config \
    2.25 +xorg-libXxf86vm-dev xorg-libXt-dev xorg-dri2proto xorg-glproto \
    2.26 +lesstif libxml2-python lesstif-dev xorg-server-dev udev-dev wayland-dev \
    2.27 +xorg-dri3proto xorg-presentproto gcc49"
    2.28 +
    2.29 +# Use some build system tools
    2.30 +case "$ARCH" in
    2.31 +	i?86) 
    2.32 +		BUILD_DEPENDS="$BUILD_DEPENDS talloc xorg-makedepend xorg-imake \
    2.33 +		file libdrm-nouveau llvm libtool automake autoconf libpthread-stubs-dev" ;;
    2.34 +esac
    2.35 +
    2.36 +# Rules to configure and make the package.
    2.37 +compile_rules()
    2.38 +{
    2.39 +	sed -i 's/HAVE_LLVM/0x0306/' src/gallium/auxiliary/draw/draw_vs.h \
    2.40 +		src/gallium/auxiliary/draw/draw_llvm.c
    2.41 +	export LD_LIBRARY_PATH="/usr/libgcc49:$LD_LIBRARY_PATH"
    2.42 +	./autogen.sh \
    2.43 +		CC=gcc-49 CXX=g++-49 \
    2.44 +		--prefix=/usr \
    2.45 +		--sysconfdir=/etc/X11/${PACKAGE} \
    2.46 +		--enable-gles2 \
    2.47 +		--disable-gallium-egl \
    2.48 +		--disable-gallium-llvm \
    2.49 +		--with-egl-platforms=x11,wayland,drm \
    2.50 +		--enable-gbm \
    2.51 +		--enable-shared-glapi \
    2.52 +		--with-gallium-drivers=r300,r600,swrast,nouveau \
    2.53 +		$CONFIGURE_ARGS &&
    2.54 +	make $MAKEFLAGS && make install
    2.55 +}
    2.56 +
    2.57 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.58 +genpkg_rules()
    2.59 +{
    2.60 +	mkdir -p $fs/usr/lib/dri
    2.61 +	cp -a $install/etc $fs
    2.62 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.63 +	cp -a $install/usr/lib/dri/*.so* $fs/usr/lib/dri
    2.64 +
    2.65 +	# libGLU is included in the package libglu-mesa
    2.66 +	#rm -r -f $fs/usr/lib/libGLU*
    2.67 +
    2.68 +	#libGLw is included in the package libglw-mesa
    2.69 +	#rm -r -f $fs/usr/lib/libGLw*
    2.70 +
    2.71 +	#libEGL is included in the package libegl-mesa
    2.72 +	#rm -r -f $fs/usr/lib/libEGL*
    2.73 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/mesa-wayland/stuff/nouveau-fix-header.patch	Sun Sep 13 11:35:18 2015 +0200
     3.3 @@ -0,0 +1,86 @@
     3.4 +From 5c102dd94f435e97507213fbd128e50dd15f5f54 Mon Sep 17 00:00:00 2001
     3.5 +From: Ben Skeggs <bskeggs@redhat.com>
     3.6 +Date: Mon, 20 Dec 2010 03:39:36 +0000
     3.7 +Subject: nouveau: fix includes for latest libdrm
     3.8 +
     3.9 +Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
    3.10 +---
    3.11 +diff --git a/src/gallium/drivers/nouveau/nouveau_winsys.h b/src/gallium/drivers/nouveau/nouveau_winsys.h
    3.12 +index ab480ca..747b084 100644
    3.13 +--- a/src/gallium/drivers/nouveau/nouveau_winsys.h
    3.14 ++++ b/src/gallium/drivers/nouveau/nouveau_winsys.h
    3.15 +@@ -10,7 +10,7 @@
    3.16 + #include "nouveau/nouveau_grobj.h"
    3.17 + #include "nouveau/nouveau_notifier.h"
    3.18 + #include "nouveau/nouveau_resource.h"
    3.19 +-#include "nouveau/nouveau_pushbuf.h"
    3.20 ++#include "nouveau/nv04_pushbuf.h"
    3.21 + 
    3.22 + #ifndef NV04_PFIFO_MAX_PACKET_LEN
    3.23 + #define NV04_PFIFO_MAX_PACKET_LEN 2047
    3.24 +diff --git a/src/gallium/drivers/nv50/nv50_surface.c b/src/gallium/drivers/nv50/nv50_surface.c
    3.25 +index ce48022..a99df76 100644
    3.26 +--- a/src/gallium/drivers/nv50/nv50_surface.c
    3.27 ++++ b/src/gallium/drivers/nv50/nv50_surface.c
    3.28 +@@ -22,7 +22,7 @@
    3.29 + 
    3.30 + #define __NOUVEAU_PUSH_H__
    3.31 + #include <stdint.h>
    3.32 +-#include "nouveau/nouveau_pushbuf.h"
    3.33 ++#include "nouveau/nv04_pushbuf.h"
    3.34 + #include "nv50_context.h"
    3.35 + #include "nv50_resource.h"
    3.36 + #include "pipe/p_defines.h"
    3.37 +diff --git a/src/gallium/drivers/nvfx/nv04_2d.c b/src/gallium/drivers/nvfx/nv04_2d.c
    3.38 +index e0e65e7..e2fadd3 100644
    3.39 +--- a/src/gallium/drivers/nvfx/nv04_2d.c
    3.40 ++++ b/src/gallium/drivers/nvfx/nv04_2d.c
    3.41 +@@ -34,11 +34,11 @@
    3.42 + #include <stdio.h>
    3.43 + #include <stdint.h>
    3.44 + #include <nouveau/nouveau_device.h>
    3.45 +-#include <nouveau/nouveau_pushbuf.h>
    3.46 + #include <nouveau/nouveau_channel.h>
    3.47 + #include <nouveau/nouveau_bo.h>
    3.48 + #include <nouveau/nouveau_notifier.h>
    3.49 + #include <nouveau/nouveau_grobj.h>
    3.50 ++#include <nouveau/nv04_pushbuf.h>
    3.51 + #include "nv04_2d.h"
    3.52 + 
    3.53 + #include "nouveau/nv_object.xml.h"
    3.54 +diff --git a/src/gallium/drivers/nvfx/nvfx_vbo.c b/src/gallium/drivers/nvfx/nvfx_vbo.c
    3.55 +index 597664e..339b317 100644
    3.56 +--- a/src/gallium/drivers/nvfx/nvfx_vbo.c
    3.57 ++++ b/src/gallium/drivers/nvfx/nvfx_vbo.c
    3.58 +@@ -9,8 +9,7 @@
    3.59 + #include "nvfx_resource.h"
    3.60 + 
    3.61 + #include "nouveau/nouveau_channel.h"
    3.62 +-
    3.63 +-#include "nouveau/nouveau_pushbuf.h"
    3.64 ++#include "nouveau/nv04_pushbuf.h"
    3.65 + 
    3.66 + static inline unsigned
    3.67 + util_guess_unique_indices_count(unsigned mode, unsigned indices)
    3.68 +diff --git a/src/mesa/drivers/dri/nouveau/nouveau_driver.h b/src/mesa/drivers/dri/nouveau/nouveau_driver.h
    3.69 +index 8036b18..c5ac128 100644
    3.70 +--- a/src/mesa/drivers/dri/nouveau/nouveau_driver.h
    3.71 ++++ b/src/mesa/drivers/dri/nouveau/nouveau_driver.h
    3.72 +@@ -38,7 +38,6 @@
    3.73 + #include <assert.h>
    3.74 + 
    3.75 + #include "nouveau_device.h"
    3.76 +-#include "nouveau_pushbuf.h"
    3.77 + #include "nouveau_grobj.h"
    3.78 + #include "nouveau_channel.h"
    3.79 + #include "nouveau_bo.h"
    3.80 +@@ -46,6 +45,7 @@
    3.81 + #include "nouveau_screen.h"
    3.82 + #include "nouveau_state.h"
    3.83 + #include "nouveau_surface.h"
    3.84 ++#include "nv04_pushbuf.h"
    3.85 + 
    3.86 + #define DRIVER_DATE	"20091015"
    3.87 + #define DRIVER_AUTHOR	"Nouveau"
    3.88 +--
    3.89 +cgit v0.8.3-6-g21f6
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/mesa/receipt	Sun Sep 13 11:35:18 2015 +0200
     4.3 @@ -0,0 +1,51 @@
     4.4 +# SliTaz package receipt.
     4.5 +
     4.6 +PACKAGE="mesa"
     4.7 +VERSION="10.5.4"
     4.8 +CATEGORY="x-window"
     4.9 +SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL."
    4.10 +MAINTAINER="pascal.bellard@slitaz.org"
    4.11 +LICENSE="MIT"
    4.12 +SUGGESTED="nvidia"
    4.13 +SOURCE="Mesa"
    4.14 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    4.15 +WEB_SITE="http://www.mesa3d.org/"
    4.16 +WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL"
    4.17 +PROVIDE="libgl"
    4.18 +
    4.19 +DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt udev \
    4.20 +libpthread-stubs"
    4.21 +BUILD_DEPENDS="expat-dev libdrm-dev xorg-libXdamage-dev pkg-config \
    4.22 +xorg-libXxf86vm-dev xorg-libXt-dev xorg-dri2proto xorg-glproto \
    4.23 +talloc xorg-makedepend lesstif libxml2-python xorg-imake lesstif-dev \
    4.24 +xorg-server-dev udev-dev file libdrm-nouveau llvm libpthread-stubs-dev \
    4.25 +libtool automake autoconf xorg-dri3proto xorg-presentproto gcc49"
    4.26 +
    4.27 +# Rules to configure and make the package.
    4.28 +compile_rules()
    4.29 +{
    4.30 +	sed -i 's/HAVE_LLVM/0x0306/' #src/gallium/auxiliary/draw/draw_llvm.c
    4.31 +	export LD_LIBRARY_PATH="/usr/libgcc49:$LD_LIBRARY_PATH"
    4.32 +	./autogen.sh \
    4.33 +		CC=gcc-49 CXX=g++-49 \
    4.34 +		--disable-gallium-llvm \
    4.35 +		--prefix=/usr \
    4.36 +		$CONFIGURE_ARGS &&
    4.37 +	make $MAKEFLAGS && make install
    4.38 +}
    4.39 +
    4.40 +# Rules to gen a SliTaz package suitable for Tazpkg.
    4.41 +genpkg_rules()
    4.42 +{
    4.43 +	mkdir -p $fs/usr/lib
    4.44 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    4.45 +
    4.46 +	# libGLU is included in the package libglu-mesa
    4.47 +	rm -r -f $fs/usr/lib/libGLU*
    4.48 +
    4.49 +	#libGLw is included in the package libglw-mesa
    4.50 +	rm -r -f $fs/usr/lib/libGLw*
    4.51 +
    4.52 +	#libEGL is included in the package libegl-mesa
    4.53 +	rm -r -f $fs/usr/lib/libEGL*
    4.54 +}
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/mesa/stuff/nouveau-fix-header.patch	Sun Sep 13 11:35:18 2015 +0200
     5.3 @@ -0,0 +1,86 @@
     5.4 +From 5c102dd94f435e97507213fbd128e50dd15f5f54 Mon Sep 17 00:00:00 2001
     5.5 +From: Ben Skeggs <bskeggs@redhat.com>
     5.6 +Date: Mon, 20 Dec 2010 03:39:36 +0000
     5.7 +Subject: nouveau: fix includes for latest libdrm
     5.8 +
     5.9 +Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
    5.10 +---
    5.11 +diff --git a/src/gallium/drivers/nouveau/nouveau_winsys.h b/src/gallium/drivers/nouveau/nouveau_winsys.h
    5.12 +index ab480ca..747b084 100644
    5.13 +--- a/src/gallium/drivers/nouveau/nouveau_winsys.h
    5.14 ++++ b/src/gallium/drivers/nouveau/nouveau_winsys.h
    5.15 +@@ -10,7 +10,7 @@
    5.16 + #include "nouveau/nouveau_grobj.h"
    5.17 + #include "nouveau/nouveau_notifier.h"
    5.18 + #include "nouveau/nouveau_resource.h"
    5.19 +-#include "nouveau/nouveau_pushbuf.h"
    5.20 ++#include "nouveau/nv04_pushbuf.h"
    5.21 + 
    5.22 + #ifndef NV04_PFIFO_MAX_PACKET_LEN
    5.23 + #define NV04_PFIFO_MAX_PACKET_LEN 2047
    5.24 +diff --git a/src/gallium/drivers/nv50/nv50_surface.c b/src/gallium/drivers/nv50/nv50_surface.c
    5.25 +index ce48022..a99df76 100644
    5.26 +--- a/src/gallium/drivers/nv50/nv50_surface.c
    5.27 ++++ b/src/gallium/drivers/nv50/nv50_surface.c
    5.28 +@@ -22,7 +22,7 @@
    5.29 + 
    5.30 + #define __NOUVEAU_PUSH_H__
    5.31 + #include <stdint.h>
    5.32 +-#include "nouveau/nouveau_pushbuf.h"
    5.33 ++#include "nouveau/nv04_pushbuf.h"
    5.34 + #include "nv50_context.h"
    5.35 + #include "nv50_resource.h"
    5.36 + #include "pipe/p_defines.h"
    5.37 +diff --git a/src/gallium/drivers/nvfx/nv04_2d.c b/src/gallium/drivers/nvfx/nv04_2d.c
    5.38 +index e0e65e7..e2fadd3 100644
    5.39 +--- a/src/gallium/drivers/nvfx/nv04_2d.c
    5.40 ++++ b/src/gallium/drivers/nvfx/nv04_2d.c
    5.41 +@@ -34,11 +34,11 @@
    5.42 + #include <stdio.h>
    5.43 + #include <stdint.h>
    5.44 + #include <nouveau/nouveau_device.h>
    5.45 +-#include <nouveau/nouveau_pushbuf.h>
    5.46 + #include <nouveau/nouveau_channel.h>
    5.47 + #include <nouveau/nouveau_bo.h>
    5.48 + #include <nouveau/nouveau_notifier.h>
    5.49 + #include <nouveau/nouveau_grobj.h>
    5.50 ++#include <nouveau/nv04_pushbuf.h>
    5.51 + #include "nv04_2d.h"
    5.52 + 
    5.53 + #include "nouveau/nv_object.xml.h"
    5.54 +diff --git a/src/gallium/drivers/nvfx/nvfx_vbo.c b/src/gallium/drivers/nvfx/nvfx_vbo.c
    5.55 +index 597664e..339b317 100644
    5.56 +--- a/src/gallium/drivers/nvfx/nvfx_vbo.c
    5.57 ++++ b/src/gallium/drivers/nvfx/nvfx_vbo.c
    5.58 +@@ -9,8 +9,7 @@
    5.59 + #include "nvfx_resource.h"
    5.60 + 
    5.61 + #include "nouveau/nouveau_channel.h"
    5.62 +-
    5.63 +-#include "nouveau/nouveau_pushbuf.h"
    5.64 ++#include "nouveau/nv04_pushbuf.h"
    5.65 + 
    5.66 + static inline unsigned
    5.67 + util_guess_unique_indices_count(unsigned mode, unsigned indices)
    5.68 +diff --git a/src/mesa/drivers/dri/nouveau/nouveau_driver.h b/src/mesa/drivers/dri/nouveau/nouveau_driver.h
    5.69 +index 8036b18..c5ac128 100644
    5.70 +--- a/src/mesa/drivers/dri/nouveau/nouveau_driver.h
    5.71 ++++ b/src/mesa/drivers/dri/nouveau/nouveau_driver.h
    5.72 +@@ -38,7 +38,6 @@
    5.73 + #include <assert.h>
    5.74 + 
    5.75 + #include "nouveau_device.h"
    5.76 +-#include "nouveau_pushbuf.h"
    5.77 + #include "nouveau_grobj.h"
    5.78 + #include "nouveau_channel.h"
    5.79 + #include "nouveau_bo.h"
    5.80 +@@ -46,6 +45,7 @@
    5.81 + #include "nouveau_screen.h"
    5.82 + #include "nouveau_state.h"
    5.83 + #include "nouveau_surface.h"
    5.84 ++#include "nv04_pushbuf.h"
    5.85 + 
    5.86 + #define DRIVER_DATE	"20091015"
    5.87 + #define DRIVER_AUTHOR	"Nouveau"
    5.88 +--
    5.89 +cgit v0.8.3-6-g21f6