From patchwork Wed Apr 4 16:49:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 150771 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 91445B6FF7 for ; Thu, 5 Apr 2012 02:49:15 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 178A9320C3; Wed, 4 Apr 2012 16:49:14 +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 0QR2OB67QoVg; Wed, 4 Apr 2012 16:49:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 56E2C2066F; Wed, 4 Apr 2012 16:49: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 E4B908F753 for ; Wed, 4 Apr 2012 16:49:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DE7AE8B563 for ; Wed, 4 Apr 2012 16:49:09 +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 JxjaAwKpj-kp for ; Wed, 4 Apr 2012 16:49:08 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pz0-f53.google.com (mail-pz0-f53.google.com [209.85.210.53]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4AEC48B29B for ; Wed, 4 Apr 2012 16:49:08 +0000 (UTC) Received: by dajr28 with SMTP id r28so535041daj.40 for ; Wed, 04 Apr 2012 09:49:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=MJyqE/bhkxeDExiHMOK4dsDjAqq1kN8+c6uizdwbqPE=; b=HSSxfhUNhGn2RjD5VwoetXZFOxZjfkJBzkIr1XzJCP1iXFK4v5yuX9Pa2HVnjgfQnm jS2aqKU5I62apxYemmyrDHG87oyr+xYA4vjrexRoSeMsCdEHLVHAdf9BGIxDb2VVYUqL U94uT5vBQ7vCQmQbWK6lWqqYoxyS1+IOlLz9jQOfO6nRYAhPDV355nDpeKnusQWcCtN8 tNLQtwl/X8ufp1kJNKNtXq05RNhHWhAstg2DjwSts8P1C7/2oyOAJ0AwEcQIg2uNWxv5 /3xkPCbHWph+6fwfhI+VnMw3KzwlMKqx1A+aioYQwOSTfsXoB0TDlp6fJNUYsyMD6ucr v2PA== MIME-Version: 1.0 Received: by 10.68.72.138 with SMTP id d10mr39308362pbv.15.1333558147695; Wed, 04 Apr 2012 09:49:07 -0700 (PDT) Received: by 10.68.12.137 with HTTP; Wed, 4 Apr 2012 09:49:07 -0700 (PDT) Date: Wed, 4 Apr 2012 17:49:07 +0100 Message-ID: From: Will Newton To: buildroot@busybox.net Subject: [Buildroot] [PATCH] erlang: Add 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 --- package/Config.in | 1 + package/erlang/Config.in | 9 +++++++++ package/erlang/erlang-build-fix.patch | 13 +++++++++++++ package/erlang/erlang.mk | 26 ++++++++++++++++++++++++++ 4 files changed, 49 insertions(+), 0 deletions(-) create mode 100644 package/erlang/Config.in create mode 100644 package/erlang/erlang-build-fix.patch create mode 100644 package/erlang/erlang.mk diff --git a/package/Config.in b/package/Config.in index b84d7f1..8c36952 100644 --- a/package/Config.in +++ b/package/Config.in @@ -227,6 +227,7 @@ source "package/xfsprogs/Config.in" endmenu menu "Interpreter languages and scripting" +source "package/erlang/Config.in" source "package/haserl/Config.in" source "package/lua/Config.in" if BR2_PACKAGE_LUA diff --git a/package/erlang/Config.in b/package/erlang/Config.in new file mode 100644 index 0000000..78f34ac --- /dev/null +++ b/package/erlang/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_ERLANG + bool "erlang" + select BR2_PACKAGE_NCURSES + help + Erlang is a programming language used to build massively scalable + soft real-time systems with requirements on high availability. + Some of its uses are in telecoms, banking, e-commerce, computer + telephony and instant messaging. Erlang's runtime system has + built-in support for concurrency, distribution and fault tolerance. diff --git a/package/erlang/erlang-build-fix.patch b/package/erlang/erlang-build-fix.patch new file mode 100644 index 0000000..d2938a5 --- /dev/null +++ b/package/erlang/erlang-build-fix.patch @@ -0,0 +1,13 @@ +apply-patches.sh deletes this file from the source directory. + +--- erlang-R15B01.old/lib/tools/emacs/Makefile 2012-04-04 15:54:29.271832192 +0100 ++++ erlang-R15B01/lib/tools/emacs/Makefile 2012-04-04 15:55:16.978957307 +0100 +@@ -51,7 +51,7 @@ + + ELC_FILES = $(EMACS_FILES:%=%.elc) + +-TEST_FILES = test.erl.indented test.erl.orig ++TEST_FILES = test.erl.indented + + # ---------------------------------------------------- + # Targets diff --git a/package/erlang/erlang.mk b/package/erlang/erlang.mk new file mode 100644 index 0000000..e8ce8bc --- /dev/null +++ b/package/erlang/erlang.mk @@ -0,0 +1,26 @@ +############################################################# +# +# erlang +# +############################################################# + +ERLANG_VERSION = R15B01 +ERLANG_SITE = http://www.erlang.org/download +ERLANG_SOURCE = otp_src_$(ERLANG_VERSION).tar.gz +ERLANG_DEPENDENCIES = ncurses host-erlang + +# The configure checks for these functions fail incorrectly +ERLANG_CONF_ENV = ac_cv_func_isnan=yes ac_cv_func_isinf=yes + +# Remove source, example, gs and wx files from the target +define ERLANG_REMOVE_UNUSED + find $(TARGET_DIR)/usr/lib/erlang -type d -name src -prune -exec rm -rf {} \; + find $(TARGET_DIR)/usr/lib/erlang -type d -name examples -prune -exec rm -rf {} \; + rm -rf $(TARGET_DIR)/usr/lib/erlang/lib/gs-* + rm -rf $(TARGET_DIR)/usr/lib/erlang/lib/wx-* +endef + +ERLANG_POST_INSTALL_TARGET_HOOKS += ERLANG_REMOVE_UNUSED + +$(eval $(call AUTOTARGETS)) +$(eval $(call AUTOTARGETS,host))