From patchwork Wed Aug 8 20:26:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Stefan_Fr=C3=B6berg?= X-Patchwork-Id: 175954 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 3FA6A2C007B for ; Thu, 9 Aug 2012 06:35:17 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D1DD410B999; Wed, 8 Aug 2012 20:35:15 +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 bp6wNVrOedNc; Wed, 8 Aug 2012 20:35:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id E832010B959; Wed, 8 Aug 2012 20:35:11 +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 8E1418F791 for ; Wed, 8 Aug 2012 20:35:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7FE4D8D18C for ; Wed, 8 Aug 2012 20:35:10 +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 Mi3DZsJ3DFGR for ; Wed, 8 Aug 2012 20:35:05 +0000 (UTC) X-Greylist: delayed 00:08:49 by SQLgrey-1.7.6 Received: from mail.petroprogram.com (mail.petroprogram.com [194.89.34.74]) by whitealder.osuosl.org (Postfix) with ESMTPS id 686F68D183 for ; Wed, 8 Aug 2012 20:35:05 +0000 (UTC) Received: from [127.0.0.1] (unknown [194.89.34.74]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: stefan.froberg@petroprogram.com) by mail.petroprogram.com (Postfix) with ESMTPSA id B87A644161 for ; Wed, 8 Aug 2012 23:14:38 +0300 (EEST) Message-ID: <5022CB63.9020908@petroprogram.com> Date: Wed, 08 Aug 2012 23:26:11 +0300 From: =?ISO-8859-1?Q?Stefan_Fr=F6berg?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: buildroot@busybox.net X-Enigmail-Version: 1.4.3 Subject: [Buildroot] [PATCH] yasm: 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: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net My first git format patch. This is needed by Firefox WebM support. Firefox is almost ready too but need few changes to cairo and libpng. Hopefully it went right (can somebody suggest some good, git online tutorial or book?). Stefan Signed-off-by: Stefan Froberg --- package/Config.in | 1 + package/yasm/Config.in | 9 +++++++++ package/yasm/yasm.mk | 23 +++++++++++++++++++++++ 3 files changed, 33 insertions(+), 0 deletions(-) create mode 100644 package/yasm/Config.in create mode 100644 package/yasm/yasm.mk diff --git a/package/Config.in b/package/Config.in index f308de7..bde4318 100644 --- a/package/Config.in +++ b/package/Config.in @@ -91,6 +91,7 @@ source "package/sstrip/Config.in" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS source "package/tar/Config.in" endif +source "package/yasm/Config.in" endmenu menu "Games" diff --git a/package/yasm/Config.in b/package/yasm/Config.in new file mode 100644 index 0000000..f8fbc9b --- /dev/null +++ b/package/yasm/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_YASM + bool "yasm" + help + Yasm is a complete rewrite of the NASM-2.10.01 assembler. + It supports the x86 and AMD64 instruction sets, accepts NASM + and GAS assembler syntaxes and outputs binary, ELF32 and ELF64 + object formats. + + diff --git a/package/yasm/yasm.mk b/package/yasm/yasm.mk new file mode 100644 index 0000000..280efd2 --- /dev/null +++ b/package/yasm/yasm.mk @@ -0,0 +1,23 @@ +############################################################# +# +# yasm +# +############################################################# +YASM_VERSION = 1.2.0 +YASM_SOURCE = yasm-$(YASM_VERSION).tar.gz +YASM_SITE = http://www.tortall.net/projects/yasm/releases/ +YASM_CONF_OPT = --enable-shared + +define YASM_PRE_CONFIGURE_FIXUP +# This sed prevents it compiling 2 programs (vsyasm and ytasm) +# that are only of use on Microsoft Windows. +# cd $(@D) + sed -i 's#) ytasm.*#)#' $(@D)/Makefile.in +endef + +YASM_PRE_CONFIGURE_HOOKS += YASM_PRE_CONFIGURE_FIXUP + + + +$(eval $(call AUTOTARGETS)) +$(eval $(call AUTOTARGETS,host))