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
34 bc is a language that supports arbitrary precision numbers with interactive
\\\
35 execution of statements.
39 $(call Package
/bc
/Default
)
41 TITLE
:=Arbitrary precision reverse-polish calculator
43 dc is a reverse-polish desk calculator which supports unlimited precision
\\\
47 define Package
/bc
/install
48 $(INSTALL_DIR
) $(1)/usr
/bin
49 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/bc
/bc
$(1)/usr
/bin
/
52 define Package
/dc
/install
53 $(INSTALL_DIR
) $(1)/usr
/bin
54 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dc
/dc
$(1)/usr
/bin
/
57 $(eval
$(call BuildPackage
,bc
))
58 $(eval
$(call BuildPackage
,dc
))