1 # Copyright (C) 2006 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
13 PKG_MD5SUM:=d44b5dddebd8a7a7309aea6c36fda117
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22 include $(INCLUDE_DIR)/package.mk
28 TITLE:=Arbitrary precision calculator language
29 DESCRIPTION:=bc is a language that supports arbitrary precision numbers with interactive execution of statements.
30 URL:=http://www.gnu.org/software/bc/
37 TITLE:=Arbitrary precision calculator
38 DESCRIPTION:=dc is a reverse-polish desk calculator which supports unlimited precision arithmetic.
39 URL:=http://www.gnu.org/software/bc/
42 define Package/bc/install
43 install -m0755 -d $(1)/usr/bin
44 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME) $(1)/usr/bin/$(PKG_NAME)
47 define Package/dc/install
48 install -m0755 -d $(1)/usr/bin
49 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME) $(1)/usr/bin/$(PKG_NAME)
52 $(eval $(call BuildPackage,bc))
53 $(eval $(call BuildPackage,dc))