wok rev 16204

Add weston wayland compositor with: libunwind and cairo-gl
author Christophe Lincoln <pankso@slitaz.org>
date Mon Mar 31 01:18:02 2014 +0200 (2014-03-31)
parents d3446b644489
children 861c07f3bec2
files cairo-gl-dev/receipt cairo-gl/receipt cairo-gl/stuff/cairo-1.10.0-buggy_gradients.patch cairo-gl/stuff/cairo-1.12.2-reduce-broken-stopped-edge-continuation.patch cairo-gl/stuff/cairo-respect-fontconfig.patch libunwind-dev/receipt libunwind/receipt wayland-dev/receipt wayland/receipt weston-dev/receipt weston/receipt weston/stuff/weston-session
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cairo-gl-dev/receipt	Mon Mar 31 01:18:02 2014 +0200
     1.3 @@ -0,0 +1,24 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="cairo-gl-dev"
     1.7 +VERSION="1.12.2"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="2D graphics library devel files with GL support."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="MPL LGPL2.1"
    1.12 +WEB_SITE="http://www.cairographics.org/"
    1.13 +WANTED="cairo-gl"
    1.14 +HOST_ARCH="i486"
    1.15 +
    1.16 +DEPENDS="pixman-dev xorg-libXrender-dev glib-dev libxcb-dev xcb-util-dev \
    1.17 +cairo fontconfig-dev freetype-dev libpng-dev expat-dev pkg-config \
    1.18 +mesa-wayland-dev"
    1.19 +
    1.20 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.21 +genpkg_rules()
    1.22 +{
    1.23 +	mkdir -p $fs/usr/lib
    1.24 +	cp -a $install/usr/lib/*.*a $fs/usr/lib
    1.25 +	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.26 +	cp -a $install/usr/include $fs/usr
    1.27 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/cairo-gl/receipt	Mon Mar 31 01:18:02 2014 +0200
     2.3 @@ -0,0 +1,50 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="cairo-gl"
     2.7 +VERSION="1.12.2"
     2.8 +CATEGORY="x-window"
     2.9 +SHORT_DESC="2D graphics library with GL support."
    2.10 +MAINTAINER="pankso@slitaz.org"
    2.11 +LICENSE="MPL LGPL2.1"
    2.12 +SOURCE="cairo"
    2.13 +TARBALL="$SOURCE-$VERSION.tar.xz"
    2.14 +WEB_SITE="http://www.cairographics.org/"
    2.15 +WGET_URL="http://cairographics.org/releases/$TARBALL"
    2.16 +HOST_ARCH="i486"
    2.17 +
    2.18 +DEPENDS="glib pixman libpng zlib expat fontconfig freetype xorg-libX11 \
    2.19 +xorg-libXau xorg-libXdmcp xorg-libXrender xcb-util libxcb mesa-wayland"
    2.20 +BUILD_DEPENDS="pkg-config glib-dev libpng-dev zlib-dev fontconfig-dev \
    2.21 +freetype-dev xorg-libX11-dev pixman-dev xorg-libXau-dev xorg-libXdmcp-dev \
    2.22 +xorg-libXrender-dev xcb-util-dev libxcb-dev expat-dev libxml2-dev \
    2.23 +mesa-wayland-dev wayland-dev"
    2.24 +
    2.25 +# Handle cross compilation
    2.26 +case "$ARCH" in
    2.27 +	arm*) export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib" ;;
    2.28 +esac
    2.29 +
    2.30 +# Rules to configure and make the package.
    2.31 +compile_rules()
    2.32 +{
    2.33 +	patch -Np1 -i $stuff/cairo-1.10.0-buggy_gradients.patch
    2.34 +	# https://bugs.freedesktop.org/show_bug.cgi?id=50852
    2.35 +	patch -Np1 -i $stuff/cairo-1.12.2-reduce-broken-stopped-edge-continuation.patch
    2.36 +	./configure \
    2.37 +		--prefix=/usr \
    2.38 +		--with-html-dir=/usr/share/doc \
    2.39 +		--enable-xcb \
    2.40 +		--enable-tee \
    2.41 +		--enable-gl \
    2.42 +		--disable-static \
    2.43 + 		$CONFIGURE_ARGS &&
    2.44 +	make $MAKEFLAGS &&
    2.45 +	make DESTDIR=$DESTDIR install
    2.46 +}
    2.47 +
    2.48 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.49 +genpkg_rules()
    2.50 +{
    2.51 +	mkdir -p $fs/usr/lib
    2.52 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.53 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/cairo-gl/stuff/cairo-1.10.0-buggy_gradients.patch	Mon Mar 31 01:18:02 2014 +0200
     3.3 @@ -0,0 +1,13 @@
     3.4 +--- a/src/cairo-xlib-display.c.ubuntu	2010-08-04 11:57:49.000000000 +0200
     3.5 ++++ b/src/cairo-xlib-display.c	2010-08-04 11:58:28.000000000 +0200
     3.6 +@@ -353,11 +353,7 @@
     3.7 +     /* Prior to Render 0.10, there is no protocol support for gradients and
     3.8 +      * we call function stubs instead, which would silently consume the drawing.
     3.9 +      */
    3.10 +-#if RENDER_MAJOR == 0 && RENDER_MINOR < 10
    3.11 +     display->buggy_gradients = TRUE;
    3.12 +-#else
    3.13 +-    display->buggy_gradients = FALSE;
    3.14 +-#endif
    3.15 +     display->buggy_pad_reflect = FALSE;
    3.16 +     display->buggy_repeat = FALSE;
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/cairo-gl/stuff/cairo-1.12.2-reduce-broken-stopped-edge-continuation.patch	Mon Mar 31 01:18:02 2014 +0200
     4.3 @@ -0,0 +1,275 @@
     4.4 +From f228769dfe5a8b5d73c49a41e95e31ed73a77fb3 Mon Sep 17 00:00:00 2001
     4.5 +From: Chris Wilson <chris@chris-wilson.co.uk>
     4.6 +Date: Fri, 08 Jun 2012 16:22:41 +0000
     4.7 +Subject: polygon-reduce: Reduce broken stopped-edge continuation
     4.8 +
     4.9 +This is hopefully a lesser used path and the attempted optimisation to
    4.10 +continue a stopped edge with a colinear stopped edge highly unlikely and
    4.11 +lost in the noise of the general inefficiency of the routine. As it was
    4.12 +broken, rather than attempt to rectify the "optimisation" remove it.
    4.13 +
    4.14 +Reported-by: Evangelos Foutras <evangelos@foutrelis.com>
    4.15 +Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50852
    4.16 +Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    4.17 +---
    4.18 +diff --git a/src/cairo-polygon-reduce.c b/src/cairo-polygon-reduce.c
    4.19 +index 8758070..ea457fe 100644
    4.20 +--- a/src/cairo-polygon-reduce.c
    4.21 ++++ b/src/cairo-polygon-reduce.c
    4.22 +@@ -42,6 +42,8 @@
    4.23 + #include "cairo-freelist-private.h"
    4.24 + #include "cairo-combsort-inline.h"
    4.25 +
    4.26 ++#define DEBUG_POLYGON 0
    4.27 ++
    4.28 + typedef cairo_point_t cairo_bo_point32_t;
    4.29 +
    4.30 + typedef struct _cairo_bo_intersect_ordinate {
    4.31 +@@ -114,7 +116,6 @@ typedef struct _cairo_bo_event_queue {
    4.32 +
    4.33 + typedef struct _cairo_bo_sweep_line {
    4.34 +     cairo_bo_edge_t *head;
    4.35 +-    cairo_bo_edge_t *stopped;
    4.36 +     int32_t current_y;
    4.37 +     cairo_bo_edge_t *current_edge;
    4.38 + } cairo_bo_sweep_line_t;
    4.39 +@@ -476,8 +477,8 @@ edges_compare_x_for_y (const cairo_bo_edge_t *a,
    4.40 + static inline int
    4.41 + _line_equal (const cairo_line_t *a, const cairo_line_t *b)
    4.42 + {
    4.43 +-    return a->p1.x == b->p1.x && a->p1.y == b->p1.y &&
    4.44 +-           a->p2.x == b->p2.x && a->p2.y == b->p2.y;
    4.45 ++    return (a->p1.x == b->p1.x && a->p1.y == b->p1.y &&
    4.46 ++	    a->p2.x == b->p2.x && a->p2.y == b->p2.y);
    4.47 + }
    4.48 +
    4.49 + static int
    4.50 +@@ -1024,7 +1025,6 @@ static void
    4.51 + _cairo_bo_sweep_line_init (cairo_bo_sweep_line_t *sweep_line)
    4.52 + {
    4.53 +     sweep_line->head = NULL;
    4.54 +-    sweep_line->stopped = NULL;
    4.55 +     sweep_line->current_y = INT32_MIN;
    4.56 +     sweep_line->current_edge = NULL;
    4.57 + }
    4.58 +@@ -1139,6 +1139,8 @@ edges_colinear (const cairo_bo_edge_t *a, const cairo_bo_edge_t *b)
    4.59 +      */
    4.60 +     if (a->edge.line.p1.y == b->edge.line.p1.y) {
    4.61 +	return a->edge.line.p1.x == b->edge.line.p1.x;
    4.62 ++    } else if (a->edge.line.p2.y == b->edge.line.p2.y) {
    4.63 ++	return a->edge.line.p2.x == b->edge.line.p2.x;
    4.64 +     } else if (a->edge.line.p1.y < b->edge.line.p1.y) {
    4.65 +	return edge_compare_for_y_against_x (b,
    4.66 +					     a->edge.line.p1.y,
    4.67 +@@ -1205,82 +1207,48 @@ _active_edges_to_polygon (cairo_bo_edge_t		*left,
    4.68 +			  cairo_polygon_t	        *polygon)
    4.69 + {
    4.70 +     cairo_bo_edge_t *right;
    4.71 ++    unsigned int mask;
    4.72 +
    4.73 +-    if (fill_rule == CAIRO_FILL_RULE_WINDING) {
    4.74 +-	while (left != NULL) {
    4.75 +-	    int in_out = left->edge.dir;
    4.76 +-
    4.77 +-	    right = left->next;
    4.78 +-	    if (left->deferred.right == NULL) {
    4.79 +-		while (right != NULL && right->deferred.right == NULL)
    4.80 +-		    right = right->next;
    4.81 +-
    4.82 +-		if (right != NULL && edges_colinear (left, right)) {
    4.83 +-		    /* continuation on left */
    4.84 +-		    left->deferred = right->deferred;
    4.85 +-		    right->deferred.right = NULL;
    4.86 +-		}
    4.87 +-	    }
    4.88 +-
    4.89 +-	    right = left->next;
    4.90 +-	    while (right != NULL) {
    4.91 +-		if (right->deferred.right != NULL)
    4.92 +-		    _cairo_bo_edge_end (right, top, polygon);
    4.93 +-
    4.94 +-		in_out += right->edge.dir;
    4.95 +-		if (in_out == 0) {
    4.96 +-		    cairo_bo_edge_t *next;
    4.97 +-		    cairo_bool_t skip = FALSE;
    4.98 +-
    4.99 +-		    /* skip co-linear edges */
   4.100 +-		    next = right->next;
   4.101 +-		    if (next != NULL)
   4.102 +-			skip = edges_colinear (right, next);
   4.103 ++    if (fill_rule == CAIRO_FILL_RULE_WINDING)
   4.104 ++	mask = ~0;
   4.105 ++    else
   4.106 ++	mask = 1;
   4.107 +
   4.108 +-		    if (! skip)
   4.109 +-			break;
   4.110 +-		}
   4.111 ++    while (left != NULL) {
   4.112 ++	int in_out = left->edge.dir;
   4.113 +
   4.114 ++	right = left->next;
   4.115 ++	if (left->deferred.right == NULL) {
   4.116 ++	    while (right != NULL && right->deferred.right == NULL)
   4.117 +		right = right->next;
   4.118 +-	    }
   4.119 +-
   4.120 +-	    _cairo_bo_edge_start_or_continue (left, right, top, polygon);
   4.121 +
   4.122 +-	    left = right;
   4.123 +-	    if (left != NULL)
   4.124 +-		left = left->next;
   4.125 ++	    if (right != NULL && edges_colinear (left, right)) {
   4.126 ++		/* continuation on left */
   4.127 ++		left->deferred = right->deferred;
   4.128 ++		right->deferred.right = NULL;
   4.129 ++	    }
   4.130 +	}
   4.131 +-    } else {
   4.132 +-	while (left != NULL) {
   4.133 +-	    int in_out = 0;
   4.134 +
   4.135 +-	    right = left->next;
   4.136 +-	    while (right != NULL) {
   4.137 +-		if (right->deferred.right != NULL)
   4.138 +-		    _cairo_bo_edge_end (right, top, polygon);
   4.139 ++	right = left->next;
   4.140 ++	while (right != NULL) {
   4.141 ++	    if (right->deferred.right != NULL)
   4.142 ++		_cairo_bo_edge_end (right, top, polygon);
   4.143 +
   4.144 +-		if ((in_out++ & 1) == 0) {
   4.145 +-		    cairo_bo_edge_t *next;
   4.146 +-		    cairo_bool_t skip = FALSE;
   4.147 +-
   4.148 +-		    /* skip co-linear edges */
   4.149 +-		    next = right->next;
   4.150 +-		    if (next != NULL)
   4.151 +-			skip = edges_colinear (right, next);
   4.152 +-
   4.153 +-		    if (! skip)
   4.154 +-			break;
   4.155 +-		}
   4.156 +-
   4.157 +-		right = right->next;
   4.158 ++	    in_out += right->edge.dir;
   4.159 ++	    if ((in_out & mask) == 0) {
   4.160 ++		/* skip co-linear edges */
   4.161 ++		if (right->next == NULL || !edges_colinear (right, right->next))
   4.162 ++		    break;
   4.163 +	    }
   4.164 +
   4.165 +-	    _cairo_bo_edge_start_or_continue (left, right, top, polygon);
   4.166 +-
   4.167 +-	    left = right;
   4.168 +-	    if (left != NULL)
   4.169 +-		left = left->next;
   4.170 ++	    right = right->next;
   4.171 +	}
   4.172 ++
   4.173 ++	_cairo_bo_edge_start_or_continue (left, right, top, polygon);
   4.174 ++
   4.175 ++	left = right;
   4.176 ++	if (left != NULL)
   4.177 ++	    left = left->next;
   4.178 +     }
   4.179 + }
   4.180 +
   4.181 +@@ -1303,12 +1271,6 @@ _cairo_bentley_ottmann_tessellate_bo_edges (cairo_bo_event_t   **start_events,
   4.182 +
   4.183 +     while ((event = _cairo_bo_event_dequeue (&event_queue))) {
   4.184 +	if (event->point.y != sweep_line.current_y) {
   4.185 +-	    for (e1 = sweep_line.stopped; e1; e1 = e1->next) {
   4.186 +-		if (e1->deferred.right != NULL)
   4.187 +-		     _cairo_bo_edge_end (e1, e1->edge.bottom, polygon);
   4.188 +-	    }
   4.189 +-	    sweep_line.stopped = NULL;
   4.190 +-
   4.191 +	    _active_edges_to_polygon (sweep_line.head,
   4.192 +				      sweep_line.current_y,
   4.193 +				      fill_rule, polygon);
   4.194 +@@ -1328,23 +1290,6 @@ _cairo_bentley_ottmann_tessellate_bo_edges (cairo_bo_event_t   **start_events,
   4.195 +	    if (unlikely (status))
   4.196 +		goto unwind;
   4.197 +
   4.198 +-	    /* check to see if this is a continuation of a stopped edge */
   4.199 +-	    /* XXX change to an infinitesimal lengthening rule */
   4.200 +-	    for (left = sweep_line.stopped; left; left = left->next) {
   4.201 +-		if (e1->edge.top <= left->edge.bottom &&
   4.202 +-		    edges_colinear (e1, left))
   4.203 +-		{
   4.204 +-		    e1->deferred = left->deferred;
   4.205 +-		    if (left->prev != NULL)
   4.206 +-			left->prev = left->next;
   4.207 +-		    else
   4.208 +-			sweep_line.stopped = left->next;
   4.209 +-		    if (left->next != NULL)
   4.210 +-			left->next->prev = left->prev;
   4.211 +-		    break;
   4.212 +-		}
   4.213 +-	    }
   4.214 +-
   4.215 +	    left = e1->prev;
   4.216 +	    right = e1->next;
   4.217 +
   4.218 +@@ -1371,14 +1316,8 @@ _cairo_bentley_ottmann_tessellate_bo_edges (cairo_bo_event_t   **start_events,
   4.219 +
   4.220 +	    _cairo_bo_sweep_line_delete (&sweep_line, e1);
   4.221 +
   4.222 +-	    /* first, check to see if we have a continuation via a fresh edge */
   4.223 +-	    if (e1->deferred.right != NULL) {
   4.224 +-		e1->next = sweep_line.stopped;
   4.225 +-		if (sweep_line.stopped != NULL)
   4.226 +-		    sweep_line.stopped->prev = e1;
   4.227 +-		sweep_line.stopped = e1;
   4.228 +-		e1->prev = NULL;
   4.229 +-	    }
   4.230 ++	    if (e1->deferred.right != NULL)
   4.231 ++		_cairo_bo_edge_end (e1, e1->edge.bottom, polygon);
   4.232 +
   4.233 +	    if (left != NULL && right != NULL) {
   4.234 +		status = _cairo_bo_event_queue_insert_if_intersect_below_current_y (&event_queue, left, right);
   4.235 +@@ -1420,10 +1359,6 @@ _cairo_bentley_ottmann_tessellate_bo_edges (cairo_bo_event_t   **start_events,
   4.236 +	}
   4.237 +     }
   4.238 +
   4.239 +-    for (e1 = sweep_line.stopped; e1; e1 = e1->next) {
   4.240 +-	if (e1->deferred.right != NULL)
   4.241 +-	    _cairo_bo_edge_end (e1, e1->edge.bottom, polygon);
   4.242 +-    }
   4.243 +  unwind:
   4.244 +     _cairo_bo_event_queue_fini (&event_queue);
   4.245 +
   4.246 +@@ -1447,6 +1382,12 @@ _cairo_polygon_reduce (cairo_polygon_t *polygon,
   4.247 +     if (unlikely (0 == num_events))
   4.248 +	return CAIRO_STATUS_SUCCESS;
   4.249 +
   4.250 ++    if (DEBUG_POLYGON) {
   4.251 ++	FILE *file = fopen ("reduce_in.txt", "w");
   4.252 ++	_cairo_debug_print_polygon (file, polygon);
   4.253 ++	fclose (file);
   4.254 ++    }
   4.255 ++
   4.256 +     events = stack_events;
   4.257 +     event_ptrs = stack_event_ptrs;
   4.258 +     if (num_events > ARRAY_LENGTH (stack_events)) {
   4.259 +@@ -1482,10 +1423,16 @@ _cairo_polygon_reduce (cairo_polygon_t *polygon,
   4.260 +							 num_events,
   4.261 +							 fill_rule,
   4.262 +							 polygon);
   4.263 +-     polygon->num_limits = num_limits;
   4.264 ++    polygon->num_limits = num_limits;
   4.265 +
   4.266 +     if (events != stack_events)
   4.267 +	free (events);
   4.268 +
   4.269 ++    if (DEBUG_POLYGON) {
   4.270 ++	FILE *file = fopen ("reduce_out.txt", "w");
   4.271 ++	_cairo_debug_print_polygon (file, polygon);
   4.272 ++	fclose (file);
   4.273 ++    }
   4.274 ++
   4.275 +     return status;
   4.276 + }
   4.277 +--
   4.278 +cgit v0.9.0.2-2-gbebe
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/cairo-gl/stuff/cairo-respect-fontconfig.patch	Mon Mar 31 01:18:02 2014 +0200
     5.3 @@ -0,0 +1,21 @@
     5.4 +diff -Nur cairo-1.8.6.orig/src/cairo-ft-font.c cairo-1.8.6/src/cairo-ft-font.c
     5.5 +--- cairo-1.8.6.orig/src/cairo-ft-font.c	2008-12-12 20:48:04.000000000 +0800
     5.6 ++++ cairo-1.8.6/src/cairo-ft-font.c	2009-02-20 14:56:57.000000000 +0800
     5.7 +@@ -1448,8 +1448,15 @@
     5.8 +     if (options->base.hint_style == CAIRO_HINT_STYLE_DEFAULT)
     5.9 + 	options->base.hint_style = other->base.hint_style;
    5.10 + 
    5.11 +-    if (other->base.hint_style == CAIRO_HINT_STYLE_NONE)
    5.12 +-	options->base.hint_style = CAIRO_HINT_STYLE_NONE;
    5.13 ++    //if (other->base.hint_style == CAIRO_HINT_STYLE_NONE)
    5.14 ++	//options->base.hint_style = CAIRO_HINT_STYLE_NONE;
    5.15 ++
    5.16 ++	if (other->base.hint_style == CAIRO_HINT_STYLE_NONE ||
    5.17 ++		other->base.hint_style == CAIRO_HINT_STYLE_SLIGHT ||
    5.18 ++		other->base.hint_style == CAIRO_HINT_STYLE_MEDIUM ||
    5.19 ++		other->base.hint_style == CAIRO_HINT_STYLE_FULL) {
    5.20 ++	options->base.hint_style = other->base.hint_style;
    5.21 ++	}
    5.22 + 
    5.23 +     if (options->base.antialias == CAIRO_ANTIALIAS_NONE) {
    5.24 + 	if (options->base.hint_style == CAIRO_HINT_STYLE_NONE)
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/libunwind-dev/receipt	Mon Mar 31 01:18:02 2014 +0200
     6.3 @@ -0,0 +1,19 @@
     6.4 +# SliTaz package receipt.
     6.5 +
     6.6 +PACKAGE="libunwind-dev"
     6.7 +VERSION="1.1"
     6.8 +CATEGORY="development"
     6.9 +SHORT_DESC="libunwind include files."
    6.10 +MAINTAINER="pankso@slitaz.org"
    6.11 +LICENSE="custom"
    6.12 +WANTED="libunwind"
    6.13 +WEB_SITE="http://www.nongnu.org/libunwind/"
    6.14 +
    6.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    6.16 +genpkg_rules()
    6.17 +{
    6.18 +	mkdir -p $fs/usr/lib
    6.19 +	cp -a $install/usr/lib/*.*a $fs/usr/lib
    6.20 +	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    6.21 +	cp -a $install/usr/include $fs/usr
    6.22 +}
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/libunwind/receipt	Mon Mar 31 01:18:02 2014 +0200
     7.3 @@ -0,0 +1,29 @@
     7.4 +# SliTaz package receipt.
     7.5 +
     7.6 +PACKAGE="libunwind"
     7.7 +VERSION="1.1"
     7.8 +CATEGORY="development"
     7.9 +SHORT_DESC="C programming interface (API) to determine the call-chain of a program."
    7.10 +MAINTAINER="pankso@slitaz.org"
    7.11 +LICENSE="custom"
    7.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    7.13 +WEB_SITE="http://www.nongnu.org/libunwind/"
    7.14 +WGET_URL="http://download.savannah.gnu.org/releases/libunwind/$TARBALL"
    7.15 +
    7.16 +DEPENDS="liblzma"
    7.17 +BUILD_DEPENDS="liblzma-dev"
    7.18 +
    7.19 +# Rules to configure and make the package.
    7.20 +compile_rules()
    7.21 +{
    7.22 +	./configure \
    7.23 +		$CONFIGURE_ARGS &&
    7.24 +	make && make install
    7.25 +}
    7.26 +
    7.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    7.28 +genpkg_rules()
    7.29 +{
    7.30 +	mkdir -p $fs/usr/lib
    7.31 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    7.32 +}
     8.1 --- a/wayland-dev/receipt	Mon Mar 31 00:43:52 2014 +0200
     8.2 +++ b/wayland-dev/receipt	Mon Mar 31 01:18:02 2014 +0200
     8.3 @@ -9,8 +9,6 @@
     8.4  WANTED="wayland"
     8.5  WEB_SITE="http://www.bluez.org/"
     8.6  
     8.7 -DEPENDS=""
     8.8 -
     8.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    8.10  genpkg_rules()
    8.11  {
     9.1 --- a/wayland/receipt	Mon Mar 31 00:43:52 2014 +0200
     9.2 +++ b/wayland/receipt	Mon Mar 31 01:18:02 2014 +0200
     9.3 @@ -10,8 +10,8 @@
     9.4  WEB_SITE="http://www.slitaz.org/"
     9.5  WGET_URL="http://wayland.freedesktop.org/releases/$TARBALL"
     9.6  
     9.7 -DEPENDS="expat libffi"
     9.8 -BUILD_DEPENDS="expat-dev"
     9.9 +DEPENDS="libffi expat"
    9.10 +BUILD_DEPENDS="libffi-dev expat-dev"
    9.11  
    9.12  # Rules to configure and make the package.
    9.13  compile_rules()
    9.14 @@ -30,4 +30,3 @@
    9.15  	cp -a $install/usr/lib/*.so* $fs/usr/lib
    9.16  	cp -a $install/usr/share/wayland $fs/usr/share
    9.17  }
    9.18 -
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/weston-dev/receipt	Mon Mar 31 01:18:02 2014 +0200
    10.3 @@ -0,0 +1,19 @@
    10.4 +# SliTaz package receipt.
    10.5 +
    10.6 +PACKAGE="weston-dev"
    10.7 +VERSION="1.4.0"
    10.8 +CATEGORY="development"
    10.9 +SHORT_DESC="Weston compositor devel files."
   10.10 +MAINTAINER="pankso@slitaz.org"
   10.11 +LICENSE="MIT"
   10.12 +WANTED="weston"
   10.13 +WEB_SITE="http://www.bluez.org/"
   10.14 +
   10.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
   10.16 +genpkg_rules()
   10.17 +{
   10.18 +	mkdir -p $fs/usr/lib/weston $fs/usr/share
   10.19 +	cp -a $install/usr/include $fs/usr
   10.20 +	cp -a $install/usr/lib/weston/*.*a $fs/usr/lib/weston
   10.21 +	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
   10.22 +}
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/weston/receipt	Mon Mar 31 01:18:02 2014 +0200
    11.3 @@ -0,0 +1,39 @@
    11.4 +# SliTaz package receipt.
    11.5 +
    11.6 +PACKAGE="weston"
    11.7 +VERSION="1.4.0"
    11.8 +CATEGORY="x-window"
    11.9 +SHORT_DESC="Reference implementation of a Wayland compositor."
   11.10 +MAINTAINER="pankso@slitaz.org"
   11.11 +LICENSE="MIT"
   11.12 +TARBALL="$PACKAGE-$VERSION.tar.xz"
   11.13 +WEB_SITE="http://www.slitaz.org/"
   11.14 +WGET_URL="http://wayland.freedesktop.org/releases/$TARBALL"
   11.15 +
   11.16 +DEPENDS="wayland mesa-wayland cairo-gl libxkbcommon libunwind mtdev \
   11.17 +xorg-libXcursor pam liblzma"
   11.18 +BUILD_DEPENDS="wayland-dev mesa-wayland-dev cairo-gl-dev libxkbcommon-dev \
   11.19 +libunwind-dev mtdev-dev xorg-libXcursor-dev pam-dev liblzma-dev"
   11.20 +
   11.21 +# Rules to configure and make the package.
   11.22 +compile_rules()
   11.23 +{
   11.24 +	./configure \
   11.25 +		--prefix=/usr \
   11.26 +		--libexec=/usr/lib/weston \
   11.27 +		--disable-documentation \
   11.28 +		--enable-fbdev-compositor &&
   11.29 +	make && make install
   11.30 +}
   11.31 +
   11.32 +# Rules to gen a SliTaz package suitable for Tazpkg.
   11.33 +genpkg_rules()
   11.34 +{
   11.35 +	mkdir -p $fs/usr/lib/weston $fs/usr/share
   11.36 +	cp -a $install/usr/bin $fs/usr
   11.37 +	cp -a $install/usr/lib/weston/*.so* $fs/usr/lib/weston
   11.38 +	cp -a $install/usr/lib/weston/weston-* $fs/usr/lib/weston
   11.39 +	cp -a $install/usr/share/weston $fs/usr/share
   11.40 +	# Custom weston-session
   11.41 +	cp -f $stuff/weston-session $fs/usr/bin
   11.42 +}
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/weston/stuff/weston-session	Mon Mar 31 01:18:02 2014 +0200
    12.3 @@ -0,0 +1,19 @@
    12.4 +#!/bin/sh
    12.5 +#
    12.6 +# Start Wayland Weston compositor session on SliTaz GNU/Linux
    12.7 +#
    12.8 +
    12.9 +export XDG_CONFIG_HOME="$HOME/.config"
   12.10 +export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
   12.11 +
   12.12 +# Start DBUS session.
   12.13 +if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then
   12.14 +	dbus-launch --sh-syntax --exit-with-session &
   12.15 +fi
   12.16 +
   12.17 +if [ ! -d "${XDG_RUNTIME_DIR}" ]; then
   12.18 +	mkdir ${XDG_RUNTIME_DIR}
   12.19 +	chmod 0700 ${XDG_RUNTIME_DIR}
   12.20 +fi
   12.21 +
   12.22 +exec weston-launch