Skip to contentSkip to conversation

bc: new package

PATCH Superseded Matt Weber 2 participants 2 messages Sep 18, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Matt Weber

author
#0 lore raw

PATCH 1/1 bc: new package

Built against GCC4.7 ARM glib and x86 ulibc.

---
 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
package/Config.in +1 -0
index 973d32c..e9af20c 100644
@@ -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"
package/bc/Config.in new file +14 -0
new file mode 100644
index 0000000..a28978d
@@ -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
package/bc/bc.mk new file +18 -0
new file mode 100644
index 0000000..ad13021
@@ -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))
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 bc: new package

Dear Matt Weber,

package/bc/bc.mk line 5

Quoted 11 lines · Matt Weber
package/bc/bc.mk new file +5 -0
new file mode 100644
index 0000000..ad13021
@@ -0,0 +1,18 @@
+################################################################################
+#
+# bc
+#
+################################################################################

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

package/bc/bc.mk line 7

Quoted 2 lines
package/bc/bc.mk new file +2 -0
+BC_VERSION = 1.06
+BC_SITE = http://ftp.gnu.org/pub/gnu/bc/

This should use $(BR2_GNU_MIRROR).

package/bc/bc.mk line 8

Quoted 1 line
package/bc/bc.mk new file +1 -0
+BC_SOURCE = bc-$(BC_VERSION).tar.gz

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

package/bc/bc.mk line 11

Quoted 3 lines
package/bc/bc.mk new file +3 -0
+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.

package/bc/bc.mk line 18

Quoted 7 lines
package/bc/bc.mk new file +7 -0
+
+# 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

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