allow dund to grab ppp options gathered from the network scripts
[openwrt/svn-archive/archive.git] / utils / bc / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=bc
12 PKG_VERSION:=1.06
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@GNU/
17 PKG_MD5SUM:=d44b5dddebd8a7a7309aea6c36fda117
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/bc/Default
24 SECTION:=utils
25 CATEGORY:=Utilities
26 URL:=http://www.gnu.org/software/bc/
27 endef
28
29 define Package/bc
30 $(call Package/bc/Default)
31 TITLE:=Arbitrary precision calculator language
32 endef
33
34 define Package/bc/description
35 bc is a language that supports arbitrary precision numbers with interactive
36 execution of statements.
37 endef
38
39 define Package/dc
40 $(call Package/bc/Default)
41 DEPENDS:=bc
42 TITLE:=Arbitrary precision reverse-polish calculator
43 endef
44
45 define Package/dc/description
46 dc is a reverse-polish desk calculator which supports unlimited precision
47 arithmetic.
48 endef
49
50 define Package/bc/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bc/bc $(1)/usr/bin/
53 endef
54
55 define Package/dc/install
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dc/dc $(1)/usr/bin/
58 endef
59
60 $(eval $(call BuildPackage,bc))
61 $(eval $(call BuildPackage,dc))