- No need to explicitly state two times section and category since this is already done in define Package/chicken-scheme/Default - Also add TITLE to Default - Add conflict between chicken-scheme-interpreter and chicken-scheme-full They both provide the same files: /usr/lib/libchicken.so /usr/lib/chicken/11/chicken.time.import.so /usr/lib/chicken/11/chicken.fixnum.import.so /usr/lib/chicken/11/chicken.internal.import.so /usr/lib/chicken/11/chicken.tcp.import.so /usr/lib/chicken/11/chicken.continuation.import.so /usr/lib/chicken/11/chicken.port.import.so /usr/lib/chicken/11/chicken.random.import.so /usr/lib/chicken/11/chicken.compiler.user-pass.import.so /usr/lib/chicken/11/chicken.process-context.import.so /usr/lib/chicken/11/chicken.bitwise.import.so /usr/lib/chicken/11/srfi-4.import.so /usr/lib/chicken/11/chicken.load.import.so /usr/lib/chicken/11/chicken.blob.import.so /usr/lib/chicken/11/chicken.time.posix.import.so /usr/lib/chicken/11/chicken.file.posix.import.so /usr/lib/chicken/11/chicken.flonum.import.so /usr/lib/chicken/11/chicken.condition.import.so /usr/lib/chicken/11/chicken.pretty-print.import.so /usr/lib/chicken/11/types.db /usr/lib/chicken/11/chicken.foreign.import.so /usr/lib/chicken/11/chicken.repl.import.so /usr/lib/chicken/11/chicken.pathname.import.so /usr/lib/chicken/11/chicken.sort.import.so /usr/lib/chicken/11/chicken.keyword.import.so /usr/lib/chicken/11/chicken.process.signal.import.so /usr/lib/chicken/11/chicken.platform.import.so /usr/lib/chicken/11/chicken.base.import.so /usr/lib/chicken/11/chicken.syntax.import.so /usr/lib/chicken/11/chicken.file.import.so /usr/lib/chicken/11/chicken.memory.import.so /usr/lib/chicken/11/chicken.gc.import.so /usr/lib/chicken/11/chicken.io.import.so /usr/lib/chicken/11/chicken.memory.representation.import.so /usr/lib/chicken/11/chicken.process.import.so /usr/lib/chicken/11/chicken.plist.import.so /usr/lib/chicken/11/chicken.string.import.so /usr/lib/chicken/11/chicken.errno.import.so /usr/lib/chicken/11/chicken.format.import.so /usr/lib/chicken/11/chicken.eval.import.so /usr/lib/chicken/11/chicken.irregex.import.so /usr/lib/chicken/11/chicken.process-context.posix.import.so /usr/lib/chicken/11/chicken.read-syntax.import.so /usr/lib/chicken/11/chicken.csi.import.so /usr/lib/chicken/11/chicken.locative.import.so /usr/bin/csi Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
141 lines
5.2 KiB
Makefile
141 lines
5.2 KiB
Makefile
# Copyright (C) 2019-2020 Jerônimo Cordoni Pellegrini <j_p@aleph0.info>
|
|
#
|
|
# This file is free software, licensed under the GNU General Public License v3
|
|
# or later.
|
|
# See /LICENSE for details
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=chicken-scheme
|
|
PKG_VERSION:=5.2.0
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/chicken-$(PKG_VERSION)
|
|
PKG_SOURCE:=chicken-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://code.call-cc.org/releases/$(PKG_VERSION)/
|
|
PKG_HASH:=819149c8ce7303a9b381d3fdc1d5765c5f9ac4dee6f627d1652f47966a8780fa
|
|
PKG_MAINTAINER:=Jeronimo Pellegrini <j_p@aleph0.info>
|
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/chicken-scheme/Default
|
|
TITLE:=Chicken Scheme
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
URL:=https://call-cc.org
|
|
ABI_VERSION:=11
|
|
endef
|
|
|
|
##
|
|
## chicken-scheme-interpreter
|
|
##
|
|
|
|
define Package/chicken-scheme-interpreter
|
|
$(call Package/chicken-scheme/Default)
|
|
TITLE+=interpreter only
|
|
CONFLICTS:=chicken-scheme-full
|
|
endef
|
|
|
|
define Package/chicken-scheme-interpreter/description
|
|
Chicken is an implementation of the Scheme language. It is portable, efficient, and supports
|
|
the R5RS and R7RS (work in progress) standards, and many extensions.
|
|
Chicken can be used as a scripting language to automate tasks.
|
|
This package contains the interpreter, 'csi', only --
|
|
the compiler and the package installer are not included because they depend on a C compiler.
|
|
For more information, please refer to the Chicken Scheme website at https://call-cc.org.
|
|
endef
|
|
|
|
MAKE_FLAGS += PLATFORM=linux C_COMPILER=$(TARGET_CC) LINKER=$(TARGET_CC) PREFIX=/usr C_COMPILER_OPTIMIZATION_OPTIONS="$(TARGET_CFLAGS)"
|
|
|
|
# not installed:
|
|
# - csc and chicken, the compiler
|
|
# - the include dir (only useful with the compiler)
|
|
# - install, uninstall, status, and chicken-do, which deal with modules
|
|
# (installation of more modules depends on the compiler)
|
|
# - profiler
|
|
# - feathers, the debugger
|
|
# - libchicken.a, the static library
|
|
define Package/chicken-scheme-interpreter/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_DIR) $(1)/usr/lib/chicken/$(ABI_VERSION)
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/csi $(1)/usr/bin/
|
|
$(CP) $(PKG_BUILD_DIR)/libchicken.so.$(ABI_VERSION) $(1)/usr/lib/
|
|
$(CP) $(PKG_BUILD_DIR)/libchicken.so $(1)/usr/lib/
|
|
$(CP) $(PKG_BUILD_DIR)/*.import.so $(1)/usr/lib/chicken/$(ABI_VERSION)/
|
|
$(CP) $(PKG_BUILD_DIR)/types.db $(1)/usr/lib/chicken/$(ABI_VERSION)/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,chicken-scheme-interpreter))
|
|
|
|
|
|
|
|
##
|
|
## chicken-scheme-full
|
|
##
|
|
|
|
# mips-openwrt-linux-musl-gcc dowsn't seem to link with libchicken.so.
|
|
# already tried -lchicken and passing /usr/lib/libchicken.so on the command
|
|
# line.
|
|
# also tried -Wl,-R/usr/lib,-R/usr/lib/chicken/$(ABI_VERSION)
|
|
#
|
|
# current solution: we do not strip binaries in chicken-scheme-full
|
|
# we do this by unsetting STRIP and RSTRIP, *and* reloading rules.mk
|
|
#
|
|
STRIP:=:
|
|
RSTRIP:=:
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
define Package/chicken-scheme-full
|
|
$(call Package/chicken-scheme/Default)
|
|
TITLE+=full package
|
|
# csc depends on gcc; chicken-install uses the 'install' command from coreutils
|
|
EXTRA_DEPENDS:= gcc, coreutils-install
|
|
endef
|
|
|
|
define Package/chicken-scheme-full/description
|
|
Chicken is an implementation of the Scheme language. It is portable, efficient, and supports
|
|
the R5RS and R7RS (work in progress) standards, and many extensions.
|
|
Chicken can be used as a scripting language to automate tasks.
|
|
This package contains the interpreter, 'csi'; the compiler, 'csc';
|
|
the tools for installing and removing eggs (modules); the profiler and
|
|
the debugger.
|
|
Note that this package depends on gcc, which is quite large (more than 100Mb).
|
|
For more information, please refer to the Chicken Scheme website at https://call-cc.org.
|
|
endef
|
|
|
|
|
|
# not installed:
|
|
# - libchicken.a, the static library
|
|
define Package/chicken-scheme-full/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_DIR) $(1)/usr/lib/chicken/$(ABI_VERSION)
|
|
$(INSTALL_DIR) $(1)/usr/include/chicken
|
|
$(INSTALL_DIR) $(1)/usr/share/chicken
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/csi $(1)/usr/bin/
|
|
$(CP) $(PKG_BUILD_DIR)/libchicken.so.$(ABI_VERSION) $(1)/usr/lib/
|
|
$(CP) $(PKG_BUILD_DIR)/libchicken.so $(1)/usr/lib/
|
|
$(CP) $(PKG_BUILD_DIR)/*.import.so $(1)/usr/lib/chicken/$(ABI_VERSION)/
|
|
$(CP) $(PKG_BUILD_DIR)/types.db $(1)/usr/lib/chicken/$(ABI_VERSION)/
|
|
# csc
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/csc $(1)/usr/bin/
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chicken $(1)/usr/bin/
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/chicken.h $(1)/usr/include/chicken/
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/chicken-config.h $(1)/usr/include/chicken/
|
|
# chicken-install
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chicken-install $(1)/usr/bin/
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chicken-uninstall $(1)/usr/bin/
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chicken-status $(1)/usr/bin/
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chicken-do $(1)/usr/bin/
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/setup.defaults $(1)/usr/share/chicken/
|
|
# profile
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chicken-profile $(1)/usr/bin/
|
|
# feathers
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/feathers.tcl $(1)/usr/share/chicken/
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/feathers $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,chicken-scheme-full))
|