You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2019 Jerônimo Cordoni Pellegrini <j_p@aleph0.info>
  3. #
  4. # This file is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for details
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=chicken-scheme-interpreter
  9. PKG_VERSION=5.0.0
  10. PKG_RELEASE:=1
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/chicken-$(PKG_VERSION)
  12. PKG_SOURCE:=chicken-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://code.call-cc.org/releases/5.0.0/
  14. PKG_HASH:=a8b94bb94c5d6a4348cedd75dc334ac80924bcd9a7a7a3d6af5121e57ef66595
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=LICENSE
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/chicken-scheme-interpreter
  19. SECTION:=lang
  20. CATEGORY:=Languages
  21. TITLE:=Chicken Scheme
  22. URL:=https://call-cc.org
  23. MAINTAINER:=Jeronimo Pellegrini <j_p@aleph0.info>
  24. endef
  25. define Package/chicken-scheme-interpreter/description
  26. Chicken is an implementation of the Scheme language. It is portable, efficient, and supports
  27. the R5RS and R7RS (work in progress) standards, and many extensions.
  28. Chicken can be used as a scripting language to automate tasks.
  29. This package contains the interpreter, 'csi', only --
  30. the compiler and the package installer are not included because they depend on a C compiler.
  31. For more information, please refer to the Chicken Scheme website at https://call-cc.org.
  32. endef
  33. MAKE_FLAGS += PLATFORM=linux C_COMPILER=$(TARGET_CC) LINKER=$(TARGET_CC) PREFIX=/usr C_COMPILER_OPTIMIZATION_OPTIONS="$(TARGET_CFLAGS)"
  34. # not installed:
  35. # - csc and chicken, the compiler
  36. # - the include dir (only useful with the compiler)
  37. # - install, uninstall, status, and chicken-do, which deal with modules (installation of more modules depends on the compiler)
  38. # - profiler
  39. # - feathers, the debugger
  40. # - libchicken.a, the static library
  41. define Package/chicken-scheme-interpreter/install
  42. $(INSTALL_DIR) $(1)/usr/bin
  43. $(INSTALL_DIR) $(1)/usr/lib/chicken/9
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/csi $(1)/usr/bin/
  45. $(CP) $(PKG_BUILD_DIR)/libchicken.so.9 $(1)/usr/lib/
  46. $(CP) $(PKG_BUILD_DIR)/libchicken.so $(1)/usr/lib/
  47. $(CP) $(PKG_BUILD_DIR)/*.import.so $(1)/usr/lib/chicken/9/
  48. $(CP) $(PKG_BUILD_DIR)/types.db $(1)/usr/lib/chicken/9/
  49. endef
  50. $(eval $(call BuildPackage,chicken-scheme-interpreter))