fix bind compile
[openwrt/svn-archive/archive.git] / utils / bc / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=bc
11 PKG_VERSION:=1.06
12 PKG_RELEASE:=1
13 PKG_MD5SUM:=d44b5dddebd8a7a7309aea6c36fda117
14
15 PKG_SOURCE_URL:=@GNU/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_CAT:=zcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/bc
25 SECTION:=utils
26 CATEGORY:=Utilities
27 MENU:=1
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/
31 endef
32
33 define Package/dc
34 SECTION:=utils
35 CATEGORY:=Utilities
36 DEPENDS:=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/
40 endef
41
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)
45 endef
46
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)
50 endef
51
52 $(eval $(call BuildPackage,bc))
53 $(eval $(call BuildPackage,dc))