2006-10-30 13:51:50 +00:00
|
|
|
#
|
2006-07-31 05:16:32 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=bc
|
|
|
|
PKG_VERSION:=1.06
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=@GNU/
|
|
|
|
PKG_MD5SUM:=d44b5dddebd8a7a7309aea6c36fda117
|
2006-07-31 05:16:32 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
define Package/bc/Default
|
2006-07-31 05:16:32 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
URL:=http://www.gnu.org/software/bc/
|
|
|
|
endef
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
define Package/bc
|
|
|
|
$(call Package/bc/Default)
|
|
|
|
TITLE:=Arbitrary precision calculator language
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bc/description
|
|
|
|
bc is a language that supports arbitrary precision numbers with interactive
|
2006-10-30 13:51:50 +00:00
|
|
|
execution of statements.
|
|
|
|
endef
|
|
|
|
|
2006-07-31 05:16:32 +00:00
|
|
|
define Package/dc
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Package/bc/Default)
|
2006-07-31 05:16:32 +00:00
|
|
|
DEPENDS:=bc
|
2006-10-30 13:51:50 +00:00
|
|
|
TITLE:=Arbitrary precision reverse-polish calculator
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dc/description
|
|
|
|
dc is a reverse-polish desk calculator which supports unlimited precision
|
2006-10-30 13:51:50 +00:00
|
|
|
arithmetic.
|
2006-07-31 05:16:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bc/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bc/bc $(1)/usr/bin/
|
2006-07-31 05:16:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/dc/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dc/dc $(1)/usr/bin/
|
2006-07-31 05:16:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,bc))
|
|
|
|
$(eval $(call BuildPackage,dc))
|