From patchwork Mon Feb 2 15:27:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Dechesne X-Patchwork-Id: 44147 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EC9FC2034D for ; Mon, 2 Feb 2015 15:29:01 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id b13sf16670541wgh.1 for ; Mon, 02 Feb 2015 07:29:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:cc:subject:precedence:reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=il1Hfns9x3g/X/m/svrlMHo/S/3Bd5hNN83TSXOT1IA=; b=HCEomC7vCQfcqYxUuU7TQNpN/q6A3lJgwbcW0mhtpfapto0gK9ng53obV/V+WB8z/+ 87E+VNA04vLKYZSaw8R9LpvIoxJhJicviga0/VBNOcosb+KflTLrZ3n/Ne5vVTj81oeO C+96lPBjhGIKxs+M1yrm2JX1TMKBVGaCjdLZo+6JznG9Fk0hczm+hGpo0PA60HmeJQcx R2tvqo00svLU549nwHuHsUe7aWMSvbJzoQ/F/QpZ6BD3+RRluL/5NqQfKHojZ+XsZLsz 3LF0X92PoChShW+ksYhMXUmmPzF4k8g+vlKkzV57xtGG5YBdWMfi3u8ypTsB/4Z8yKoa KVnQ== X-Gm-Message-State: ALoCoQnVGByHSlB37FmzEH2v0OnviacP7mGRrEivECALS3BfKgX5C/W5Dp16Z+ccrWssAtPcJsmh X-Received: by 10.112.131.106 with SMTP id ol10mr2493979lbb.20.1422890941187; Mon, 02 Feb 2015 07:29:01 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.26.74 with SMTP id j10ls275150lag.7.gmail; Mon, 02 Feb 2015 07:29:01 -0800 (PST) X-Received: by 10.112.172.167 with SMTP id bd7mr20352508lbc.14.1422890940966; Mon, 02 Feb 2015 07:29:00 -0800 (PST) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id jc7si17190842lbc.80.2015.02.02.07.29.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Feb 2015 07:29:00 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id gf13so41806538lab.8 for ; Mon, 02 Feb 2015 07:29:00 -0800 (PST) X-Received: by 10.152.5.226 with SMTP id v2mr20063338lav.34.1422890940704; Mon, 02 Feb 2015 07:29:00 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp1363355lbj; Mon, 2 Feb 2015 07:28:59 -0800 (PST) X-Received: by 10.68.197.161 with SMTP id iv1mr30227947pbc.147.1422890938734; Mon, 02 Feb 2015 07:28:58 -0800 (PST) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id nh15si24123393pdb.42.2015.02.02.07.28.57; Mon, 02 Feb 2015 07:28:58 -0800 (PST) Received-SPF: none (google.com: openembedded-devel-bounces@lists.openembedded.org does not designate permitted sender hosts) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 88EC065CB3; Mon, 2 Feb 2015 15:28:38 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mail.openembedded.org (Postfix) with ESMTP id 06C296018F for ; Mon, 2 Feb 2015 15:28:21 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id l61so39648935wev.13 for ; Mon, 02 Feb 2015 07:28:22 -0800 (PST) X-Received: by 10.194.81.161 with SMTP id b1mr45545912wjy.2.1422890902810; Mon, 02 Feb 2015 07:28:22 -0800 (PST) Received: from hackbox.linaro.org ([81.128.185.36]) by mx.google.com with ESMTPSA id x10sm20336299wif.15.2015.02.02.07.28.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Feb 2015 07:28:22 -0800 (PST) From: Nicolas Dechesne To: openembedded-devel@lists.openembedded.org, cazfi74@gmail.com Date: Mon, 2 Feb 2015 15:27:44 +0000 Message-Id: <1422890864-24641-1-git-send-email-nicolas.dechesne@linaro.org> X-Mailer: git-send-email 1.9.1 Cc: Nicolas Dechesne Subject: [oe] [meta-games][PATCH] supertuxkart: initial recipe for v0.8.1 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: nicolas.dechesne@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 * the 2 patches are needed to build against mesa 10, they are backported from upstream, since there is no new release as of yet. * tested on Snapdragon (ARMv7 + adreno GPU), running freedreno Mesa Gallium driver * Build tested for qemux86 Signed-off-by: Nicolas Dechesne --- On some distro like Debian/Ubuntu the package is split in supertuxkart and supertuxkart-data to separate the rather large (~300MB) platform independent media files. I haven't done it here, but that could be done if needed.. ...01-Use-system-s-glext.h-glxext.h-on-linux.patch | 28 ++++++++++++++++++ ...ch-from-jpirie-for-fixing-mesa-10-compila.patch | 33 ++++++++++++++++++++++ recipes-games/supertuxkart/supertuxkart_0.8.1.bb | 19 +++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 recipes-games/supertuxkart/files/0001-Use-system-s-glext.h-glxext.h-on-linux.patch create mode 100644 recipes-games/supertuxkart/files/0002-Applied-patch-from-jpirie-for-fixing-mesa-10-compila.patch create mode 100644 recipes-games/supertuxkart/supertuxkart_0.8.1.bb diff --git a/recipes-games/supertuxkart/files/0001-Use-system-s-glext.h-glxext.h-on-linux.patch b/recipes-games/supertuxkart/files/0001-Use-system-s-glext.h-glxext.h-on-linux.patch new file mode 100644 index 0000000..cf61c44 --- /dev/null +++ b/recipes-games/supertuxkart/files/0001-Use-system-s-glext.h-glxext.h-on-linux.patch @@ -0,0 +1,28 @@ +From 8771edf61fcf3ced4afb9e9bc08897f575d86834 Mon Sep 17 00:00:00 2001 +From: Deve +Date: Sat, 17 May 2014 09:18:25 +0200 +Subject: [PATCH 1/2] Use system's glext.h/glxext.h on linux. + +--- + lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h b/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h +index 7f9e0df..586d0c4 100644 +--- a/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h ++++ b/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h +@@ -61,9 +61,9 @@ + #include + #include + #if defined(_IRR_OPENGL_USE_EXTPOINTER_) +- #include "glext.h" ++ #include + #undef GLX_ARB_get_proc_address // avoid problems with local glxext.h +- #include "glxext.h" ++ #include + #endif + #endif + +-- +2.1.4 + diff --git a/recipes-games/supertuxkart/files/0002-Applied-patch-from-jpirie-for-fixing-mesa-10-compila.patch b/recipes-games/supertuxkart/files/0002-Applied-patch-from-jpirie-for-fixing-mesa-10-compila.patch new file mode 100644 index 0000000..3162ba6 --- /dev/null +++ b/recipes-games/supertuxkart/files/0002-Applied-patch-from-jpirie-for-fixing-mesa-10-compila.patch @@ -0,0 +1,33 @@ +From 1a922afa0b03b9cc35e9fb4945deb3f73a5d39b4 Mon Sep 17 00:00:00 2001 +From: Deve +Date: Sat, 17 May 2014 09:21:07 +0200 +Subject: [PATCH 2/2] Applied patch from jpirie for fixing mesa 10 compilation + problems. + +--- + lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h b/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h +index 586d0c4..b39f8b5 100644 +--- a/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h ++++ b/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h +@@ -49,6 +49,7 @@ + #define NO_SDL_GLEXT + #include + #include ++ typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode); + #include "glext.h" + #else + #if defined(_IRR_OPENGL_USE_EXTPOINTER_) +@@ -61,6 +62,7 @@ + #include + #include + #if defined(_IRR_OPENGL_USE_EXTPOINTER_) ++ typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode); + #include + #undef GLX_ARB_get_proc_address // avoid problems with local glxext.h + #include +-- +2.1.4 + diff --git a/recipes-games/supertuxkart/supertuxkart_0.8.1.bb b/recipes-games/supertuxkart/supertuxkart_0.8.1.bb new file mode 100644 index 0000000..126bbd2 --- /dev/null +++ b/recipes-games/supertuxkart/supertuxkart_0.8.1.bb @@ -0,0 +1,19 @@ +DESCRIPTION = "SuperTuxKart is a kart racing game featuring Tux and his friends" +HOMEAPAGE = "http://supertuxkart.sourceforge.net" +SECTION = "x11/application" +LICENSE = "GPLv2 & GPLv3+ " +LIC_FILES_CHKSUM = "file://COPYING;md5=a71cb78659d60f2ced58a594cb65bfba" + +DEPENDS = "libogg libvorbis libxrandr virtual/libgl openal-soft fribidi curl" + +inherit cmake + +S = "${WORKDIR}/SuperTuxKart-${PV}" + +SRC_URI = "http://sourceforge.net/projects/supertuxkart/files/SuperTuxKart/${PV}/supertuxkart-${PV}-src.tar.bz2;protocol=https \ + file://0001-Use-system-s-glext.h-glxext.h-on-linux.patch \ + file://0002-Applied-patch-from-jpirie-for-fixing-mesa-10-compila.patch" + +SRC_URI[md5sum] = "aa31ecf883dc35859eec76c667f1a6d6" +SRC_URI[sha256sum] = "335301ae61b0c177be68d5593c65e5b197dc807421f08a8a35740a254cacf8d6" +