2006-10-30 13:51:50 +00:00
|
|
|
#
|
2006-07-31 05:16:32 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=bc
|
2008-11-23 23:33:49 +00:00
|
|
|
PKG_VERSION:=1.06.94
|
2006-07-31 05:16:32 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2008-11-23 23:33:49 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
|
|
|
|
PKG_SOURCE_URL:=ftp://ftp.debian.org/debian/pool/main/b/bc
|
|
|
|
PKG_MD5SUM:=ea7704fc02b359ce92fa4360c802fb23
|
2006-07-31 05:16:32 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
define Package/bc/Default
|
2006-07-31 05:16:32 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2009-06-13 17:01:55 +00:00
|
|
|
URL:=http://packages.debian.org/bc
|
2006-07-31 05:16:32 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
define Package/bc
|
|
|
|
$(call Package/bc/Default)
|
|
|
|
TITLE:=Arbitrary precision calculator language
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bc/description
|
|
|
|
bc is a language that supports arbitrary precision numbers with interactive
|
2006-10-30 13:51:50 +00:00
|
|
|
execution of statements.
|
|
|
|
endef
|
|
|
|
|
2006-07-31 05:16:32 +00:00
|
|
|
define Package/dc
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Package/bc/Default)
|
2006-07-31 05:16:32 +00:00
|
|
|
DEPENDS:=bc
|
2006-10-30 13:51:50 +00:00
|
|
|
TITLE:=Arbitrary precision reverse-polish calculator
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dc/description
|
|
|
|
dc is a reverse-polish desk calculator which supports unlimited precision
|
2006-10-30 13:51:50 +00:00
|
|
|
arithmetic.
|
2006-07-31 05:16:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bc/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bc/bc $(1)/usr/bin/
|
2006-07-31 05:16:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dc/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dc/dc $(1)/usr/bin/
|
2006-07-31 05:16:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,bc))
|
|
|
|
$(eval $(call BuildPackage,dc))
|