2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).orig.
tar.gz
15 PKG_SOURCE_URL
:=ftp
://ftp.debian.org
/debian
/pool
/main
/b
/bc
16 PKG_MD5SUM
:=24d0831812d8262b6cac8316b0bac483
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/bc
/Default
23 URL
:=http
://packages.debian.org
/bc
27 $(call Package
/bc
/Default
)
28 TITLE
:=Arbitrary precision calculator language
32 define Package
/bc
/description
33 bc is a language that supports arbitrary precision numbers with
34 interactive execution of statements.
38 $(call Package
/bc
/Default
)
39 TITLE
:=Arbitrary precision reverse-polish calculator
43 define Package
/dc
/description
44 dc is a reverse-polish desk calculator which supports unlimited
48 CONFIGURE_ARGS
+= --with-readline
50 define Package
/bc
/install
51 $(INSTALL_DIR
) $(1)/usr
/bin
52 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/bc
/bc
$(1)/usr
/bin
/
55 define Package
/dc
/install
56 $(INSTALL_DIR
) $(1)/usr
/bin
57 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dc
/dc
$(1)/usr
/bin
/
60 $(eval
$(call BuildPackage
,bc
))
61 $(eval
$(call BuildPackage
,dc
))