summaryrefslogtreecommitdiff
path: root/package/bc
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/bc
Initial import
Diffstat (limited to 'package/bc')
-rw-r--r--package/bc/Config.in22
-rw-r--r--package/bc/Makefile31
-rw-r--r--package/bc/ipkg/bc.control4
-rw-r--r--package/bc/ipkg/dc.control4
4 files changed, 61 insertions, 0 deletions
diff --git a/package/bc/Config.in b/package/bc/Config.in
new file mode 100644
index 000000000..cae451a06
--- /dev/null
+++ b/package/bc/Config.in
@@ -0,0 +1,22 @@
+config ADK_COMPILE_BC
+ tristate
+ depends ADK_PACKAGE_BC || ADK_PACKAGE_DC
+ default n
+
+config ADK_PACKAGE_BC
+ prompt "bc................................ Arbitrary precision calculator language"
+ tristate
+ default n
+ select ADK_COMPILE_BC
+ help
+ bc is a language that supports arbitrary precision numbers with
+ interactive execution of statements.
+
+config ADK_PACKAGE_DC
+ prompt "dc................................ Arbitrary precision calculator"
+ tristate
+ default n
+ select ADK_COMPILE_BC
+ help
+ dc is a reverse-polish desk calculator which supports unlimited
+ precision arithmetic.
diff --git a/package/bc/Makefile b/package/bc/Makefile
new file mode 100644
index 000000000..f48912f7f
--- /dev/null
+++ b/package/bc/Makefile
@@ -0,0 +1,31 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= bc
+PKG_VERSION:= 1.06
+PKG_RELEASE:= 1
+PKG_MD5SUM:= d44b5dddebd8a7a7309aea6c36fda117
+MASTER_SITES:= http://ftp.gnu.org/pub/gnu/bc/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,BC,bc,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,DC,dc,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE= gnu
+BUILD_STYLE= auto
+INSTALL_STYLE= auto
+
+post-install:
+ # bc
+ ${INSTALL_DIR} ${IDIR_BC}/usr/bin
+ ${INSTALL_BIN} ${WRKBUILD}/bc/bc ${IDIR_BC}/usr/bin/bc
+ # dc
+ ${INSTALL_DIR} ${IDIR_DC}/usr/bin
+ ${INSTALL_BIN} ${WRKBUILD}/dc/dc ${IDIR_DC}/usr/bin/dc
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/bc/ipkg/bc.control b/package/bc/ipkg/bc.control
new file mode 100644
index 000000000..e22ed5b7c
--- /dev/null
+++ b/package/bc/ipkg/bc.control
@@ -0,0 +1,4 @@
+Package: bc
+Priority: optional
+Section: util
+Description: An arbitrary precision calculator language
diff --git a/package/bc/ipkg/dc.control b/package/bc/ipkg/dc.control
new file mode 100644
index 000000000..1ef852500
--- /dev/null
+++ b/package/bc/ipkg/dc.control
@@ -0,0 +1,4 @@
+Package: dc
+Priority: optional
+Section: util
+Description: An arbitrary precision calculator