From 8e51a31bbf199efae573b64a88a8763f48b56bc4 Mon Sep 17 00:00:00 2001 From: pi31415 Date: Wed, 23 May 2018 08:32:57 -0800 Subject: [PATCH] TinyScheme: Adds options to install library files --- lang/tinyscheme/Config.in | 12 ++++++++++++ lang/tinyscheme/Makefile | 8 ++++++++ 2 files changed, 20 insertions(+) create mode 100644 lang/tinyscheme/Config.in diff --git a/lang/tinyscheme/Config.in b/lang/tinyscheme/Config.in new file mode 100644 index 0000000..51461ed --- /dev/null +++ b/lang/tinyscheme/Config.in @@ -0,0 +1,12 @@ +menu "Configuration" + depends on PACKAGE_tinyscheme + +config TINYSCHEME_SHARED_LIB + bool "Install shared library" + default n + +config TINYSCHEME_AR_LIB + bool "Install library archive file" + default n + +endmenu diff --git a/lang/tinyscheme/Makefile b/lang/tinyscheme/Makefile index 06681b0..8bb049e 100644 --- a/lang/tinyscheme/Makefile +++ b/lang/tinyscheme/Makefile @@ -43,6 +43,10 @@ define Package/tinyscheme MAINTAINER=Christopher Howard endef +define Package/tinyscheme/config + source "$(SOURCE)/Config.in" +endef + define Package/tinyscheme/description TinyScheme is a lightweight Scheme interpreter that implements as large a subset of R5RS as was possible without getting very large and complicated. @@ -56,8 +60,12 @@ define Package/tinyscheme/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/scheme $(1)/usr/bin/tinyscheme $(INSTALL_DIR) $(1)/usr/lib +ifeq ($(CONFIG_TINYSCHEME_SHARED_LIB),y) $(INSTALL_DATA) $(PKG_BUILD_DIR)/libtinyscheme.so $(1)/usr/lib/libtinyscheme.so +endif +ifeq ($(CONFIG_TINYSCHEME_AR_LIB),y) $(INSTALL_DATA) $(PKG_BUILD_DIR)/libtinyscheme.a $(1)/usr/lib/libtinyscheme.a +endif $(INSTALL_DIR) $(1)/usr/lib/tinyscheme $(INSTALL_DATA) $(PKG_BUILD_DIR)/init.scm $(1)/usr/lib/tinyscheme/init.scm endef -- 2.25.1