From patchwork Tue Apr 30 20:00:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sagaert Johan X-Patchwork-Id: 240683 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 C54532C00BC for ; Wed, 1 May 2013 06:01:31 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0374A103C2E; Tue, 30 Apr 2013 20:01:12 +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 Ko2j1btcivt9; Tue, 30 Apr 2013 20:01:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 966CE10B871; Tue, 30 Apr 2013 20:01:09 +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 29EE88F75E for ; Tue, 30 Apr 2013 20:01:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 32B7D8C140 for ; Tue, 30 Apr 2013 20:01:26 +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 OarcK8cSPmJ7 for ; Tue, 30 Apr 2013 20:01:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailrelay001.isp.belgacom.be (mailrelay001.isp.belgacom.be [195.238.6.51]) by whitealder.osuosl.org (Postfix) with ESMTP id 499908BCF2 for ; Tue, 30 Apr 2013 20:01:22 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As8LAEMigFFR8u1E/2dsb2JhbABSgwc2vl4EAX0XdIJ8I09LN4gQsTCOXIxngRWBHR2DOgOTWAODS4EmkAeDDzo Received: from 68.237-242-81.adsl-dyn.isp.belgacom.be (HELO debian605.apex) ([81.242.237.68]) by relay.skynet.be with ESMTP; 30 Apr 2013 22:01:21 +0200 From: Sagaert Johan To: buildroot@busybox.net Date: Tue, 30 Apr 2013 22:00:47 +0200 Message-Id: <1367352047-8940-1-git-send-email-sagaert.johan@skynet.be> X-Mailer: git-send-email 1.8.2.1 Cc: Sagaert Johan Subject: [Buildroot] [PATCH 1/1] new package : git 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 new package : git Signed-off-by: Sagaert Johan --- package/Config.in | 1 + package/git/Config.in | 7 +++++++ package/git/git.mk | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 package/git/Config.in create mode 100644 package/git/git.mk diff --git a/package/Config.in b/package/Config.in index a530afc..4a02f6f 100644 --- a/package/Config.in +++ b/package/Config.in @@ -73,6 +73,7 @@ source "package/gawk/Config.in" endif source "toolchain/gcc/Config.in.2" source "package/gettext/Config.in" +source "package/git/Config.in" source "package/gperf/Config.in" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS source "package/grep/Config.in" diff --git a/package/git/Config.in b/package/git/Config.in new file mode 100644 index 0000000..c3c060e --- /dev/null +++ b/package/git/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_GIT + bool "git" + help + Git is a free and open source distributed version control system + designed to handle everything from small to very large projects. + + http://git-scm.com diff --git a/package/git/git.mk b/package/git/git.mk new file mode 100644 index 0000000..da58b11 --- /dev/null +++ b/package/git/git.mk @@ -0,0 +1,54 @@ +############################################################# +# +# git +# +############################################################# +# resolves tag 1.8.2.1 +GIT_VERSION = 5bda18c186e455f8e65f976d3bf333ab1f4b5b53 +GIT_SITE = https://github.com/git/git.git +GIT_SITE_METHOD = git +GIT_LICENSE = LGPLv2.1+ +GIT_LICENSE_FILES = COPYING + +GIT_AUTORECONF = YES + +GIT_DEPENDENCIES += $(if $(BR2_PACKAGE_ZLIB),zlib) +GIT_DEPENDENCIES += $(if $(BR2_PACKAGE_OPENSSL),openssl) +GIT_DEPENDENCIES += $(if $(BR2_PACKAGE_PERL),perl) +GIT_DEPENDENCIES += $(if $(BR2_PACKAGE_CURL),curl) +GIT_DEPENDENCIES += $(if $(BR2_PACKAGE_EXPAT),expat) +GIT_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv) +GIT_DEPENDENCIES += $(if $(BR2_PACKAGE_TCL),tcl) + +ifeq ($(BR2_PACKAGE_OPENSSL),n) + GIT_CONF_OPT += --without-openssl +endif + +ifeq ($(BR2_PACKAGE_PERL),y) + GIT_CONF_OPT += --with-libpcre +endif + +ifeq ($(BR2_PACKAGE_CURL),n) + GIT_CONF_OPT += --without-curl +endif + +ifeq ($(BR2_PACKAGE_EXPAT),n) + GIT_CONF_OPT += --without-expat +endif + +ifeq ($(BR2_PACKAGE_LIBICONV),n) + GIT_CONF_OPT += --without-iconv +else + GIT_CONF_OPT += --with-iconv=/usr/lib +endif + +ifeq ($(BR2_PACKAGE_TCL),n) + GIT_CONF_OPT += --without-tcltk +endif + +# assume yes for these tests, configure will bail out otherwise +# saying error: cannot run test program while cross compiling +GIT_CONF_ENV = ac_cv_fread_reads_directories=yes \ + ac_cv_snprintf_returns_bogus=yes + +$(eval $(autotools-package))