From patchwork Thu Jul 21 21:46:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Prado X-Patchwork-Id: 651464 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rwS6r2D5fz9srZ for ; Fri, 22 Jul 2016 07:47:15 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=e-labworks-com.20150623.gappssmtp.com header.i=@e-labworks-com.20150623.gappssmtp.com header.b=dNm85EIE; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 978A931535; Thu, 21 Jul 2016 21:47:13 +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 HyusLvJl90dh; Thu, 21 Jul 2016 21:47:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 8705731544; Thu, 21 Jul 2016 21:47:11 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id BAB2C1C120C for ; Thu, 21 Jul 2016 21:47:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B5C788A5B0 for ; Thu, 21 Jul 2016 21:47:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tpl33PI8i2WW for ; Thu, 21 Jul 2016 21:47:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk0-f196.google.com (mail-qk0-f196.google.com [209.85.220.196]) by hemlock.osuosl.org (Postfix) with ESMTPS id 620BA8A5A9 for ; Thu, 21 Jul 2016 21:47:09 +0000 (UTC) Received: by mail-qk0-f196.google.com with SMTP id q62so7308057qkf.2 for ; Thu, 21 Jul 2016 14:47:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=e-labworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=WR/eVgHgDikEnQOzkU6dG/idvOz9TNeNn5X+Pvm+xy4=; b=dNm85EIEhhDRKyPHVR/5m7D9knsTTRkCHjbyjbmPxKSEhLJ0MnMYPVfjnLc3yaKppg JV7bG1thuZHyj2QVT1hMKIPeTfP8iZmSA61RmSBeONfccGGvKcMuGzhf5WeEMpO3kCy8 3DAh41N5v2Sam1z7cNV/eVoqIHrB8JZbuB2dssAdo08B/Pjd6Od2VVK9YWzzAvXouIPh cP8BndCl+O0xPlACBuXKf0ACQZTpiBdgdZtsoq7fgkfCJvUFeSaNoYBI4+A4WBDNwKZm h0JRNECHD79GUI4YmrXnsJEI9Tox+gQF0zwXBZk0IM5Gygb8gXEjzSkfrQ7Nf2VP8WS5 2jEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WR/eVgHgDikEnQOzkU6dG/idvOz9TNeNn5X+Pvm+xy4=; b=mkkN4jNBceeTAgEJkY879i85U4+6AvepHKbG4nguwgY+IfJFiZ72ijhkmm8qcY2AR+ 6r/ZNrJmnnbJok49gYXqbLZiAzYtnG/GIzGD4MGzj3ljkWAfNwpXvZwHBz+hnrb4dy/7 a5Z1JECoMDnkUR8MD8tlfooYTS97sSYM035gpIw8GgmYIONj6untA5YpzqCu9G4pJ6sQ jwgSIHaD8F+/gGuaQEco8aNIBHQKz65vmCjRuj3m07NGTkUMuGMDK3KMpZ3boi74y8wE KMaJSY+jU240PXm5ViWOqxJ7W1byYkeIHluaUnYGKTS5KbeH5/VyfHlTWsQgY9Q7Awp9 s5Wg== X-Gm-Message-State: AEkooutaTP9DLXEawQD1oBFRjeTWOhCXp04BKI/DdN8he7JgDyJ1FNzpXs5CPDVCRBPbIw== X-Received: by 10.55.163.133 with SMTP id m127mr640681qke.71.1469137628427; Thu, 21 Jul 2016 14:47:08 -0700 (PDT) Received: from localhost.localdomain ([177.32.209.20]) by smtp.gmail.com with ESMTPSA id c26sm5529691qte.1.2016.07.21.14.47.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Jul 2016 14:47:07 -0700 (PDT) From: Sergio Prado To: buildroot@buildroot.org Date: Thu, 21 Jul 2016 18:46:47 -0300 Message-Id: <1469137607-8560-1-git-send-email-sergio.prado@e-labworks.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH] stella: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Stella is a multi-platform Atari 2600 VCS emulator. Signed-off-by: Sergio Prado --- package/Config.in | 1 + .../0001-Add-cross-compilation-support.patch | 43 ++++++++++++++++++++++ package/stella/Config.in | 12 ++++++ package/stella/stella.hash | 2 + package/stella/stella.mk | 25 +++++++++++++ 5 files changed, 83 insertions(+) create mode 100644 package/stella/0001-Add-cross-compilation-support.patch create mode 100644 package/stella/Config.in create mode 100644 package/stella/stella.hash create mode 100644 package/stella/stella.mk diff --git a/package/Config.in b/package/Config.in index 009b8280a378..952937d1ab16 100644 --- a/package/Config.in +++ b/package/Config.in @@ -220,6 +220,7 @@ menu "Games" source "package/prboom/Config.in" source "package/rubix/Config.in" source "package/sl/Config.in" + source "package/stella/Config.in" source "package/supertuxkart/Config.in" endmenu diff --git a/package/stella/0001-Add-cross-compilation-support.patch b/package/stella/0001-Add-cross-compilation-support.patch new file mode 100644 index 000000000000..f75b88a46985 --- /dev/null +++ b/package/stella/0001-Add-cross-compilation-support.patch @@ -0,0 +1,43 @@ +From 4d1087d29606c092919dd4375df674521af31c9c Mon Sep 17 00:00:00 2001 +From: Sergio Prado +Date: Thu, 21 Jul 2016 13:36:21 -0300 +Subject: [PATCH] Add cross-compilation support + +Signed-off-by: Sergio Prado +--- + Makefile | 2 +- + configure | 5 +++-- + 2 files changed, 4 insertions(+), 3 deletions(-) + +diff --git a/Makefile b/Makefile +index 6dd0129587b3..b1aea5eed4a1 100644 +--- a/Makefile ++++ b/Makefile +@@ -172,7 +172,7 @@ config.mak: $(srcdir)/configure + + install: all + $(INSTALL) -d "$(DESTDIR)$(BINDIR)" +- $(INSTALL) -c -s -m 755 "$(srcdir)/stella$(EXEEXT)" "$(DESTDIR)$(BINDIR)/stella$(EXEEXT)" ++ $(INSTALL) -c -m 755 "$(srcdir)/stella$(EXEEXT)" "$(DESTDIR)$(BINDIR)/stella$(EXEEXT)" + $(INSTALL) -d "$(DESTDIR)$(DOCDIR)" + $(INSTALL) -c -m 644 "$(srcdir)/Announce.txt" "$(srcdir)/Changes.txt" "$(srcdir)/Copyright.txt" "$(srcdir)/License.txt" "$(srcdir)/README-SDL.txt" "$(srcdir)/Readme.txt" "$(srcdir)/Todo.txt" "$(srcdir)/docs/index.html" "$(srcdir)/docs/debugger.html" "$(DESTDIR)$(DOCDIR)/" + $(INSTALL) -d "$(DESTDIR)$(DOCDIR)/graphics" +diff --git a/configure b/configure +index 0d90a4f0acde..a4afea8e1880 100755 +--- a/configure ++++ b/configure +@@ -502,8 +502,9 @@ if test -n "$_host"; then + _host_os=win32 + ;; + *) +- echo "Cross-compiling to unknown target, please add your target to configure." +- exit 1 ++ echo "Cross-compiling to $_host target" ++ DEFINES="$DEFINES -DUNIX" ++ _host_os=unix + ;; + esac + +-- +1.9.1 + diff --git a/package/stella/Config.in b/package/stella/Config.in new file mode 100644 index 000000000000..0bb96db68fbb --- /dev/null +++ b/package/stella/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_STELLA + bool "stella" + select BR2_PACKAGE_SDL2 + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11 + help + Stella is a multi-platform Atari 2600 VCS emulator. + + http://stella.sourceforge.net/ + +comment "stella needs a toolchain w/ C++, gcc >= 4.8" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 diff --git a/package/stella/stella.hash b/package/stella/stella.hash new file mode 100644 index 000000000000..71defd28d0f2 --- /dev/null +++ b/package/stella/stella.hash @@ -0,0 +1,2 @@ +# Locally computed: +sha256 b2727a0e2d3b112d35dcb89b4bdc789e2c7f15e9d9c7054a69a2f67facd7416e stella-4.7.2-src.tar.xz diff --git a/package/stella/stella.mk b/package/stella/stella.mk new file mode 100644 index 000000000000..789a586bfd99 --- /dev/null +++ b/package/stella/stella.mk @@ -0,0 +1,25 @@ +################################################################################ +# +# stella +# +################################################################################ + +STELLA_VERSION = 4.7.2 +STELLA_SOURCE = stella-$(STELLA_VERSION)-src.tar.xz +STELLA_SITE = http://downloads.sourceforge.net/stella +LIBFOO_LICENSE = GPLv2 +LIBFOO_LICENSE_FILES = License.txt + +STELLA_DEPENDENCIES = sdl2 + +STELLA_CONF_OPTS = --with-sdl-prefix=$(STAGING_DIR)/usr + +ifeq ($(BR2_PACKAGE_LIBPNG),y) +STELLA_DEPENDENCIES += libpng +endif + +ifeq ($(BR2_PACKAGE_ZLIB),y) +STELLA_DEPENDENCIES += zlib +endif + +$(eval $(autotools-package))