mark click as broken for now - fails to build and should be replaced with a newer...
[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 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/bc/Default
25 SECTION:=utils
26 CATEGORY:=Utilities
27 URL:=http://www.gnu.org/software/bc/
28 endef
29
30 define Package/bc
31 $(call Package/bc/Default)
32 TITLE:=Arbitrary precision calculator language
33 DESCRIPTION:=\
34 bc is a language that supports arbitrary precision numbers with interactive \\\
35 execution of statements.
36 endef
37
38 define Package/dc
39 $(call Package/bc/Default)
40 DEPENDS:=bc
41 TITLE:=Arbitrary precision reverse-polish calculator
42 DESCRIPTION:=\
43 dc is a reverse-polish desk calculator which supports unlimited precision \\\
44 arithmetic.
45 endef
46
47 define Package/bc/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bc/bc $(1)/usr/bin/
50 endef
51
52 define Package/dc/install
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dc/dc $(1)/usr/bin/
55 endef
56
57 $(eval $(call BuildPackage,bc))
58 $(eval $(call BuildPackage,dc))