From patchwork Tue Dec 17 01:17:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 301973 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id C2C312C00AA for ; Tue, 17 Dec 2013 13:05:52 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 09C3E8B212; Tue, 17 Dec 2013 02:05:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wtBDKiHr96bp; Tue, 17 Dec 2013 02:05:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7E1278B1AE; Tue, 17 Dec 2013 02:05:51 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E71551C2307 for ; Tue, 17 Dec 2013 02:05:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E2CC58565F for ; Tue, 17 Dec 2013 02:05:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i+wuOG-IuvYh for ; Tue, 17 Dec 2013 02:05:49 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from marvin.crapouillou.net (rev33.vpn.fdn.fr [80.67.179.33]) by whitealder.osuosl.org (Postfix) with ESMTPS id 49CFE85227 for ; Tue, 17 Dec 2013 02:05:49 +0000 (UTC) Received: from acaen-252-1-215-135.w86-215.abo.wanadoo.fr ([86.215.59.135] helo=debian.home) by marvin.crapouillou.net with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA256:128) (Exim 4.80) (envelope-from ) id 1VsjI8-0002Ig-Sm; Tue, 17 Dec 2013 02:17:45 +0100 From: Paul Cercueil To: buildroot@busybox.net Date: Tue, 17 Dec 2013 02:17:33 +0100 Message-Id: <1387243053-5281-1-git-send-email-paul@crapouillou.net> X-Mailer: git-send-email 1.8.5.1 Cc: Paul Cercueil Subject: [Buildroot] [PATCH] cairo: Build with GLESv2 and VG backends if possible 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: Paul Cercueil --- package/cairo/cairo.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/package/cairo/cairo.mk b/package/cairo/cairo.mk index 347bb75..aa03a27 100644 --- a/package/cairo/cairo.mk +++ b/package/cairo/cairo.mk @@ -54,6 +54,20 @@ else CAIRO_CONF_OPT += --disable-directfb endif +ifeq ($(BR2_PACKAGE_HAS_OPENGL_ES),y) + CAIRO_CONF_OPT += --enable-glesv2 + CAIRO_DEPENDENCIES += libgles +else + CAIRO_CONF_OPT += --disable-glesv2 +endif + +ifeq ($(BR2_PACKAGE_HAS_OPENVG),y) + CAIRO_CONF_OPT += --enable-vg + CAIRO_DEPENDENCIES += libopenvg +else + CAIRO_CONF_OPT += --disable-vg +endif + ifeq ($(BR2_PACKAGE_XORG7),y) CAIRO_CONF_OPT += --enable-xlib --enable-xcb --with-x CAIRO_DEPENDENCIES += xlib_libX11 xlib_libXext