Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= bc
  5. PKG_VERSION:= 1.06
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= d44b5dddebd8a7a7309aea6c36fda117
  8. PKG_DESCR:= arbitrary precision calculator language
  9. PKG_SECTION:= sys/utils
  10. PKG_BUILDDEP:= m4-host flex-host
  11. HOST_BUILDDEP:= m4-host flex-host
  12. PKG_URL:= http://www.gnu.org/software/bc/
  13. PKG_SITES:= http://ftp.gnu.org/pub/gnu/bc/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. PKG_SUBPKGS:= BC DC
  16. include ${ADK_TOPDIR}/mk/host.mk
  17. include ${ADK_TOPDIR}/mk/package.mk
  18. $(eval $(call HOST_template,BC,bc,${PKG_VERSION}-${PKG_RELEASE}))
  19. $(eval $(call PKG_template,BC,bc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,DC,dc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. bc-install:
  22. ${INSTALL_DIR} ${IDIR_BC}/usr/bin
  23. ${INSTALL_BIN} ${WRKBUILD}/bc/bc ${IDIR_BC}/usr/bin/bc
  24. dc-install:
  25. ${INSTALL_DIR} ${IDIR_DC}/usr/bin
  26. ${INSTALL_BIN} ${WRKBUILD}/dc/dc ${IDIR_DC}/usr/bin/dc
  27. include ${ADK_TOPDIR}/mk/host-bottom.mk
  28. include ${ADK_TOPDIR}/mk/pkg-bottom.mk