Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] bc: new package
@ 2013-09-18  4:12 Matt Weber
  2013-09-18  4:15 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Weber @ 2013-09-18  4:12 UTC (permalink / raw)
  To: buildroot

Built against GCC4.7 ARM glib and x86 ulibc.

Signed-off-by: Matt Weber <mlweber1@rockwellcollins.com>
---
 package/Config.in    |    1 +
 package/bc/Config.in |   14 ++++++++++++++
 package/bc/bc.mk     |   18 ++++++++++++++++++
 3 files changed, 33 insertions(+), 0 deletions(-)
 create mode 100644 package/bc/Config.in
 create mode 100644 package/bc/bc.mk

diff --git a/package/Config.in b/package/Config.in
index 973d32c..e9af20c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -731,6 +731,7 @@ endmenu
 
 menu "Miscellaneous"
 source "package/aespipe/Config.in"
+source "package/bc/Config.in"
 source "package/collectd/Config.in"
 source "package/empty/Config.in"
 source "package/googlefontdirectory/Config.in"
diff --git a/package/bc/Config.in b/package/bc/Config.in
new file mode 100644
index 0000000..a28978d
--- /dev/null
+++ b/package/bc/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_BC
+	bool "bc"
+	help
+	  'bc' is an arbitrary precision numeric processing language
+	  Its syntax is similar to C, but differs in many substantial
+	  areas. It supports interactive execution of statements. 'Bc'
+	  is a utility included in the POSIX P1003.2/D11 draft standard.
+	  This version does not use the historical method of having bc
+	  be a compiler for the dc calculator (the POSIX document doesn't
+	  specify how bc must be implemented). This version has a single
+	  executable that both compiles the language and runs the resulting
+	  'byte code.' The byte code is not the dc language.
+
+	  http://www.gnu.org/software/bc
diff --git a/package/bc/bc.mk b/package/bc/bc.mk
new file mode 100644
index 0000000..ad13021
--- /dev/null
+++ b/package/bc/bc.mk
@@ -0,0 +1,18 @@
+################################################################################
+#
+# bc
+#
+################################################################################
+BC_VERSION = 1.06
+BC_SITE = http://ftp.gnu.org/pub/gnu/bc/
+BC_SOURCE = bc-$(BC_VERSION).tar.gz
+BC_LICENSE = GPLv2+ LGPLv2.1+
+BC_LICENSE_FILES = COPYING COPYING.LIB
+BC_INSTALL_STAGING = NO
+
+# Build after busybox so target ends up with bc's "dc" version
+ifeq ($(BR2_PACKAGE_BUSYBOX),y)
+BC_DEPENDENCIES += busybox
+endif
+
+$(eval $(autotools-package))
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] bc: new package
  2013-09-18  4:12 [Buildroot] [PATCH 1/1] bc: new package Matt Weber
@ 2013-09-18  4:15 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2013-09-18  4:15 UTC (permalink / raw)
  To: buildroot

Dear Matt Weber,

On Tue, 17 Sep 2013 23:12:29 -0500, Matt Weber wrote:

> diff --git a/package/bc/bc.mk b/package/bc/bc.mk
> new file mode 100644
> index 0000000..ad13021
> --- /dev/null
> +++ b/package/bc/bc.mk
> @@ -0,0 +1,18 @@
> +################################################################################
> +#
> +# bc
> +#
> +################################################################################

There should be one empty line between the header and the first
variable.

> +BC_VERSION = 1.06
> +BC_SITE = http://ftp.gnu.org/pub/gnu/bc/

This should use $(BR2_GNU_MIRROR).

> +BC_SOURCE = bc-$(BC_VERSION).tar.gz

And this line is not needed, as this is the default value.

> +BC_LICENSE = GPLv2+ LGPLv2.1+
> +BC_LICENSE_FILES = COPYING COPYING.LIB
> +BC_INSTALL_STAGING = NO

This last line is not needed, as this is the default.

> +
> +# Build after busybox so target ends up with bc's "dc" version
> +ifeq ($(BR2_PACKAGE_BUSYBOX),y)
> +BC_DEPENDENCIES += busybox
> +endif
> +
> +$(eval $(autotools-package))

Other than that, seems good.

Thanks!

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-18  4:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-18  4:12 [Buildroot] [PATCH 1/1] bc: new package Matt Weber
2013-09-18  4:15 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox