2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_MD5SUM:=d44b5dddebd8a7a7309aea6c36fda117
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 include $(INCLUDE_DIR)/package.mk
24 define Package/bc/Default
27 URL:=http://www.gnu.org/software/bc/
31 $(call Package/bc/Default)
32 TITLE:=Arbitrary precision calculator language
35 define Package/bc/description
36 bc is a language that supports arbitrary precision numbers with interactive
37 execution of statements.
41 $(call Package/bc/Default)
43 TITLE:=Arbitrary precision reverse-polish calculator
46 define Package/dc/description
47 dc is a reverse-polish desk calculator which supports unlimited precision
51 define Package/bc/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bc/bc $(1)/usr/bin/
56 define Package/dc/install
57 $(INSTALL_DIR) $(1)/usr/bin
58 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dc/dc $(1)/usr/bin/
61 $(eval $(call BuildPackage,bc))
62 $(eval $(call BuildPackage,dc))