diff options
Diffstat (limited to 'meta/recipes-graphics/libxsettings-client')
5 files changed, 107 insertions, 0 deletions
diff --git a/meta/recipes-graphics/libxsettings-client/libxsettings-client/MIT-style-license b/meta/recipes-graphics/libxsettings-client/libxsettings-client/MIT-style-license new file mode 100644 index 0000000000..628de9830d --- /dev/null +++ b/meta/recipes-graphics/libxsettings-client/libxsettings-client/MIT-style-license | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * Copyright © 2001 Red Hat, Inc. | ||
3 | * | ||
4 | * Permission to use, copy, modify, distribute, and sell this software and its | ||
5 | * documentation for any purpose is hereby granted without fee, provided that | ||
6 | * the above copyright notice appear in all copies and that both that | ||
7 | * copyright notice and this permission notice appear in supporting | ||
8 | * documentation, and that the name of Red Hat not be used in advertising or | ||
9 | * publicity pertaining to distribution of the software without specific, | ||
10 | * written prior permission. Red Hat makes no representations about the | ||
11 | * suitability of this software for any purpose. It is provided "as is" | ||
12 | * without express or implied warranty. | ||
13 | * | ||
14 | * RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL | ||
15 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL RED HAT | ||
16 | * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
17 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION | ||
18 | * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | ||
19 | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
20 | * | ||
21 | * Author: Owen Taylor, Red Hat, Inc. | ||
22 | */ | ||
diff --git a/meta/recipes-graphics/libxsettings-client/libxsettings-client/disable_Os_option.patch b/meta/recipes-graphics/libxsettings-client/libxsettings-client/disable_Os_option.patch new file mode 100644 index 0000000000..64b7efac23 --- /dev/null +++ b/meta/recipes-graphics/libxsettings-client/libxsettings-client/disable_Os_option.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Upstream-Status: Inappropriate [configuration] | ||
2 | |||
3 | Do not set Os optimization in target APP CFLAGS, since it may have potential | ||
4 | error if "--enable-target-optspace" is not set when configuring GCC. | ||
5 | |||
6 | Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> | ||
7 | |||
8 | diff -ruN Xsettings-client-0.10-orig/configure.ac Xsettings-client-0.10/configure.ac | ||
9 | --- Xsettings-client-0.10-orig/configure.ac 2010-09-21 14:01:47.000000000 +0800 | ||
10 | +++ Xsettings-client-0.10/configure.ac 2010-09-21 14:02:01.000000000 +0800 | ||
11 | @@ -3,7 +3,7 @@ | ||
12 | AM_INIT_AUTOMAKE(Xsettings-client, 0.10) | ||
13 | AM_CONFIG_HEADER(config.h) | ||
14 | |||
15 | -CFLAGS="-Os -Wall" | ||
16 | +CFLAGS="-O2 -Wall" | ||
17 | |||
18 | # Checks for programs. | ||
19 | AC_PROG_CC | ||
diff --git a/meta/recipes-graphics/libxsettings-client/libxsettings-client/link-x11.patch b/meta/recipes-graphics/libxsettings-client/libxsettings-client/link-x11.patch new file mode 100644 index 0000000000..d08d0d5b99 --- /dev/null +++ b/meta/recipes-graphics/libxsettings-client/libxsettings-client/link-x11.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Upstream-Status: Inappropriate [configuration] | ||
2 | |||
3 | Index: Xsettings-client-0.10/Makefile.am | ||
4 | =================================================================== | ||
5 | --- Xsettings-client-0.10.orig/Makefile.am 2008-02-07 14:49:54.000000000 +0000 | ||
6 | +++ Xsettings-client-0.10/Makefile.am 2008-02-07 14:50:00.000000000 +0000 | ||
7 | @@ -9,4 +9,4 @@ | ||
8 | |||
9 | libXsettings_client_la_SOURCES= $(source_c) $(source_h) | ||
10 | |||
11 | -libXsettings_client_la_LIBADD = @X_LIBS@ | ||
12 | \ No newline at end of file | ||
13 | +libXsettings_client_la_LIBADD = @X_LIBS@ -lX11 | ||
diff --git a/meta/recipes-graphics/libxsettings-client/libxsettings-client/obsolete_automake_macros.patch b/meta/recipes-graphics/libxsettings-client/libxsettings-client/obsolete_automake_macros.patch new file mode 100644 index 0000000000..905d08e616 --- /dev/null +++ b/meta/recipes-graphics/libxsettings-client/libxsettings-client/obsolete_automake_macros.patch | |||
@@ -0,0 +1,14 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> | ||
4 | diff -Nurd Xsettings-client-0.10/configure.ac Xsettings-client-0.10/configure.ac | ||
5 | --- Xsettings-client-0.10/configure.ac 2003-03-28 12:39:51.000000000 +0200 | ||
6 | +++ Xsettings-client-0.10/configure.ac 2013-01-11 07:37:21.491597743 +0200 | ||
7 | @@ -1,7 +1,7 @@ | ||
8 | # Process this file with autoconf to produce a configure script. | ||
9 | AC_INIT(xsettings-client.c) | ||
10 | AM_INIT_AUTOMAKE(Xsettings-client, 0.10) | ||
11 | -AM_CONFIG_HEADER(config.h) | ||
12 | +AC_CONFIG_HEADERS(config.h) | ||
13 | |||
14 | CFLAGS="-Os -Wall" | ||
diff --git a/meta/recipes-graphics/libxsettings-client/libxsettings-client_0.10.bb b/meta/recipes-graphics/libxsettings-client/libxsettings-client_0.10.bb new file mode 100644 index 0000000000..d7a80305e8 --- /dev/null +++ b/meta/recipes-graphics/libxsettings-client/libxsettings-client_0.10.bb | |||
@@ -0,0 +1,39 @@ | |||
1 | SUMMARY = "utility functions for the Xsettings protocol" | ||
2 | DESCRIPTION = "Libraries used for applications making use of the Xsettings configuration \ | ||
3 | setting propagation protocol. Controls setting of double click timeout, drag-and-drop \ | ||
4 | threshold, and default foreground and background colors for all applications running within a \ | ||
5 | desktop." | ||
6 | HOMEPAGE = "http://matchbox-project.org/sources/optional-dependencies/" | ||
7 | BUGTRACKER = "http://bugzilla.yoctoproject.org/" | ||
8 | SECTION = "x/libs" | ||
9 | LICENSE = "MIT-style" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=7cfac9d2d4dc3694cc7eb605cf32a69b \ | ||
11 | file://xsettings-client.h;endline=22;md5=7cfac9d2d4dc3694cc7eb605cf32a69b \ | ||
12 | file://xsettings-common.h;endline=22;md5=7cfac9d2d4dc3694cc7eb605cf32a69b" | ||
13 | DEPENDS = "virtual/libx11" | ||
14 | |||
15 | PR = "r5" | ||
16 | |||
17 | headers = "xsettings-common.h xsettings-client.h" | ||
18 | |||
19 | SRC_URI = "http://downloads.yoctoproject.org/releases/matchbox/optional-dependencies/Xsettings-client-0.10.tar.gz \ | ||
20 | file://MIT-style-license \ | ||
21 | file://link-x11.patch;apply=yes \ | ||
22 | file://disable_Os_option.patch \ | ||
23 | file://obsolete_automake_macros.patch \ | ||
24 | " | ||
25 | |||
26 | SRC_URI[md5sum] = "c14aa9db6c097e0306dac97fb7da1add" | ||
27 | SRC_URI[sha256sum] = "f274a4bc969ae192994a856b7f786c6fce96bae77f96c1c2b71dd97599e06e43" | ||
28 | |||
29 | S = "${WORKDIR}/Xsettings-client-0.10" | ||
30 | |||
31 | inherit autotools gettext | ||
32 | |||
33 | do_configure_prepend() { | ||
34 | # This package doesn't ship with its own COPYING file and | ||
35 | # autotools will install a GPLv2 one instead of the actual MIT-style license here. | ||
36 | # Add the correct license here to avoid confusion. | ||
37 | cp -f ${WORKDIR}/MIT-style-license ${S}/COPYING | ||
38 | } | ||
39 | |||