From 69b446016f6147161c4266604acd949f7105168a Mon Sep 17 00:00:00 2001 From: davehome Date: Fri, 21 Oct 2011 03:26:54 +0000 Subject: [PATCH] mesa-demos: add missing_headers.patch (from openmamba); revbump. --- .../mesa-demos-8.0.1-missing_headers.patch | 44 +++++++++++++++++++ srcpkgs/mesa-demos/template | 1 + 2 files changed, 45 insertions(+) create mode 100644 srcpkgs/mesa-demos/patches/mesa-demos-8.0.1-missing_headers.patch diff --git a/srcpkgs/mesa-demos/patches/mesa-demos-8.0.1-missing_headers.patch b/srcpkgs/mesa-demos/patches/mesa-demos-8.0.1-missing_headers.patch new file mode 100644 index 00000000000..8084056885a --- /dev/null +++ b/srcpkgs/mesa-demos/patches/mesa-demos-8.0.1-missing_headers.patch @@ -0,0 +1,44 @@ +diff -Nru mesa-demos-8.0.1.orig//src/egl/openvg/lion-render.h mesa-demos-8.0.1/src/egl/openvg/lion-render.h +--- src/egl/openvg/lion-render.h 1970-01-01 01:00:00.000000000 +0100 ++++ src/egl/openvg/lion-render.h 2011-07-18 17:20:37.000000000 +0200 +@@ -0,0 +1,16 @@ ++#ifndef LION_RENDER_H ++#define LION_RENDER_H ++ ++#include ++ ++#define LION_SIZE 132 ++struct lion { ++ VGPath paths[LION_SIZE]; ++ VGPaint fills[LION_SIZE]; ++}; ++ ++struct lion *lion_create(void); ++void lion_render(struct lion *l); ++void lion_destroy(struct lion *l); ++ ++#endif +diff -Nru mesa-demos-8.0.1.orig//src/egl/openvg/trivial/eglcommon.h mesa-demos-8.0.1/src/egl/openvg/trivial/eglcommon.h +--- src/egl/openvg/trivial/eglcommon.h 1970-01-01 01:00:00.000000000 +0100 ++++ src/egl/openvg/trivial/eglcommon.h 2011-07-18 17:20:21.921788794 +0200 +@@ -0,0 +1,20 @@ ++#ifndef EGLCOMMON_H ++#define EGLCOMMON_H ++ ++typedef void (*init_func)(); ++typedef void (*reshape_func)(int, int); ++typedef void (*draw_func)(); ++typedef int (*key_func)(unsigned key); ++ ++ ++void set_window_size(int width, int height); ++int window_width(void); ++int window_height(void); ++ ++int run(int argc, char **argv, ++ init_func init, ++ reshape_func resh, ++ draw_func draw, ++ key_func key); ++ ++#endif diff --git a/srcpkgs/mesa-demos/template b/srcpkgs/mesa-demos/template index 8bbd0404fc5..ddf1560bf7b 100644 --- a/srcpkgs/mesa-demos/template +++ b/srcpkgs/mesa-demos/template @@ -1,6 +1,7 @@ # Template build file for 'MesaLib'. pkgname=mesa-demos version=8.0.1 +revision=1 distfiles="ftp://ftp.freedesktop.org/pub/mesa/demos/$version/$pkgname-$version.tar.bz2" build_style=gnu_configure short_desc="Mesa 3D demos and tools"