From patchwork Mon Apr 29 20:26:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 240500 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 81F162C00C1 for ; Tue, 30 Apr 2013 06:26:21 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6E54C318C2; Mon, 29 Apr 2013 20:26:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NCxfqtmWgzMc; Mon, 29 Apr 2013 20:26:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 2918731904; Mon, 29 Apr 2013 20:26:15 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id B85718F7A2 for ; Mon, 29 Apr 2013 20:26:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 44C792640B for ; Mon, 29 Apr 2013 20:26:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HPEzYSu9iCed for ; Mon, 29 Apr 2013 20:26:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (mail.free-electrons.com [94.23.35.102]) by silver.osuosl.org (Postfix) with ESMTP id 6467525D8F for ; Mon, 29 Apr 2013 20:26:09 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id DCD51779; Mon, 29 Apr 2013 22:26:08 +0200 (CEST) Received: from localhost (AToulouse-651-1-233-251.w90-38.abo.wanadoo.fr [90.38.168.251]) by mail.free-electrons.com (Postfix) with ESMTPSA id 80B345C7 for ; Mon, 29 Apr 2013 22:26:08 +0200 (CEST) From: Thomas Petazzoni To: buildroot@uclibc.org Date: Mon, 29 Apr 2013 22:26:04 +0200 Message-Id: <1367267165-6873-4-git-send-email-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367267165-6873-1-git-send-email-thomas.petazzoni@free-electrons.com> References: <1367267165-6873-1-git-send-email-thomas.petazzoni@free-electrons.com> Subject: [Buildroot] [PATCH v2 3/4] wayland: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Thomas Petazzoni --- 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 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))