1
0

Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=bc
  9. PKG_VERSION:=1.06.95
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
  12. PKG_SOURCE_URL:=ftp://ftp.debian.org/debian/pool/main/b/bc
  13. PKG_MD5SUM:=24d0831812d8262b6cac8316b0bac483
  14. PKG_MAINTAINER:=Bruno Randolf <br1@einfach.org>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/bc/Default
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. URL:=http://packages.debian.org/bc
  22. endef
  23. define Package/bc
  24. $(call Package/bc/Default)
  25. TITLE:=Arbitrary precision calculator language
  26. DEPENDS:=+libreadline +libncurses
  27. endef
  28. define Package/bc/description
  29. bc is a language that supports arbitrary precision numbers with
  30. interactive execution of statements.
  31. endef
  32. define Package/dc
  33. $(call Package/bc/Default)
  34. TITLE:=Arbitrary precision reverse-polish calculator
  35. DEPENDS:=bc
  36. endef
  37. define Package/dc/description
  38. dc is a reverse-polish desk calculator which supports unlimited
  39. precision arithmetic.
  40. endef
  41. CONFIGURE_ARGS += --with-readline
  42. define Package/bc/install
  43. $(INSTALL_DIR) $(1)/usr/bin
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/bc/bc $(1)/usr/bin/
  45. endef
  46. define Package/dc/install
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) $(PKG_BUILD_DIR)/dc/dc $(1)/usr/bin/
  49. endef
  50. $(eval $(call BuildPackage,bc))
  51. $(eval $(call BuildPackage,dc))