diff mbox

[v2,3/4] wayland: new package

Message ID 1367267165-6873-4-git-send-email-thomas.petazzoni@free-electrons.com
State Accepted
Headers show

Commit Message

Thomas Petazzoni April 29, 2013, 8:26 p.m. UTC
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/Config.in          |    1 +
 package/wayland/Config.in  |   10 ++++++++++
 package/wayland/wayland.mk |   30 ++++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+)
 create mode 100644 package/wayland/Config.in
 create mode 100644 package/wayland/wayland.mk

Comments

Peter Korsgaard April 30, 2013, 8:06 a.m. UTC | #1
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 Thomas> ---
 Thomas>  package/Config.in          |    1 +
 Thomas>  package/wayland/Config.in  |   10 ++++++++++
 Thomas>  package/wayland/wayland.mk |   30 ++++++++++++++++++++++++++++++
 Thomas>  3 files changed, 41 insertions(+)
 Thomas>  create mode 100644 package/wayland/Config.in
 Thomas>  create mode 100644 package/wayland/wayland.mk

 Thomas> diff --git a/package/Config.in b/package/Config.in
 Thomas> index e359306..76feb7d 100644
 Thomas> --- a/package/Config.in
 Thomas> +++ b/package/Config.in
 Thomas> @@ -448,6 +448,7 @@ source "package/pango/Config.in"
 Thomas>  source "package/pixman/Config.in"
 Thomas>  source "package/poppler/Config.in"
 Thomas>  source "package/tiff/Config.in"
 Thomas> +source "package/wayland/Config.in"
 Thomas>  source "package/webkit/Config.in"
 Thomas>  source "package/zxing/Config.in"
 Thomas>  endmenu
 Thomas> diff --git a/package/wayland/Config.in b/package/wayland/Config.in
 Thomas> new file mode 100644
 Thomas> index 0000000..e5d2649
 Thomas> --- /dev/null
 Thomas> +++ b/package/wayland/Config.in
 Thomas> @@ -0,0 +1,10 @@
 Thomas> +config BR2_PACKAGE_WAYLAND
 Thomas> +	bool "wayland"
 Thomas> +	select BR2_PACKAGE_LIBFFI
 Thomas> +	select BR2_PACKAGE_EXPAT
 Thomas> +	help
 Thomas> +	  Wayland is a project to define a protocol for a compositor
 Thomas> +	  to talk to its clients as well as a library implementation
 Thomas> +	  of the protocol.
 Thomas> +
 Thomas> +	  http://wayland.freedesktop.org/
 Thomas> diff --git a/package/wayland/wayland.mk b/package/wayland/wayland.mk
 Thomas> new file mode 100644
 Thomas> index 0000000..65381ec
 Thomas> --- /dev/null
 Thomas> +++ b/package/wayland/wayland.mk
 Thomas> @@ -0,0 +1,30 @@
 Thomas> +#############################################################
 Thomas> +#
 Thomas> +# wayland
 Thomas> +#
 Thomas> +#############################################################
 Thomas> +
 Thomas> +WAYLAND_VERSION = 1.1.0
 Thomas> +WAYLAND_SITE = http://wayland.freedesktop.org/releases/
 Thomas> +WAYLAND_SOURCE = wayland-$(WAYLAND_VERSION).tar.xz
 Thomas> +WAYLAND_LICENSE = MIT
 Thomas> +WAYLAND_LICENSE_FILES = COPYING
 Thomas> +
 Thomas> +WAYLAND_INSTALL_STAGING = YES
 Thomas> +WAYLAND_DEPENDENCIES = libffi host-pkgconf expat host-expat
 Thomas> +
 Thomas> +# wayland needs a wayland-scanner program to generate some of its
 Thomas> +# source code. By default, it builds it with CC, so it doesn't in

s/doesn't in/doesn't work with/

Committed with that fixed, thanks.
diff mbox

Patch

diff --git a/package/Config.in b/package/Config.in
index e359306..76feb7d 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -448,6 +448,7 @@  source "package/pango/Config.in"
 source "package/pixman/Config.in"
 source "package/poppler/Config.in"
 source "package/tiff/Config.in"
+source "package/wayland/Config.in"
 source "package/webkit/Config.in"
 source "package/zxing/Config.in"
 endmenu
diff --git a/package/wayland/Config.in b/package/wayland/Config.in
new file mode 100644
index 0000000..e5d2649
--- /dev/null
+++ b/package/wayland/Config.in
@@ -0,0 +1,10 @@ 
+config BR2_PACKAGE_WAYLAND
+	bool "wayland"
+	select BR2_PACKAGE_LIBFFI
+	select BR2_PACKAGE_EXPAT
+	help
+	  Wayland is a project to define a protocol for a compositor
+	  to talk to its clients as well as a library implementation
+	  of the protocol.
+
+	  http://wayland.freedesktop.org/
diff --git a/package/wayland/wayland.mk b/package/wayland/wayland.mk
new file mode 100644
index 0000000..65381ec
--- /dev/null
+++ b/package/wayland/wayland.mk
@@ -0,0 +1,30 @@ 
+#############################################################
+#
+# wayland
+#
+#############################################################
+
+WAYLAND_VERSION = 1.1.0
+WAYLAND_SITE = http://wayland.freedesktop.org/releases/
+WAYLAND_SOURCE = wayland-$(WAYLAND_VERSION).tar.xz
+WAYLAND_LICENSE = MIT
+WAYLAND_LICENSE_FILES = COPYING
+
+WAYLAND_INSTALL_STAGING = YES
+WAYLAND_DEPENDENCIES = libffi host-pkgconf expat host-expat
+
+# wayland needs a wayland-scanner program to generate some of its
+# source code. By default, it builds it with CC, so it doesn't in
+# cross-compilation. Therefore, we build it manually, and tell wayland
+# that the tool is already available.
+WAYLAND_CONF_OPT = --disable-scanner
+
+define WAYLAND_BUILD_SCANNER
+	(cd $(@D)/src/; \
+		$(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS) \
+			-o wayland-scanner scanner.c wayland-util.c -lexpat)
+endef
+
+WAYLAND_POST_CONFIGURE_HOOKS += WAYLAND_BUILD_SCANNER
+
+$(eval $(autotools-package))