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.

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