|
@@ -23,7 +23,7 @@ include $(TOPDIR)/rules.mk
|
|
|
|
|
|
PKG_NAME:=tinyscheme
|
|
|
PKG_VERSION:=1.41
|
|
|
-PKG_RELEASE:=1
|
|
|
+PKG_RELEASE:=2
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/tinyscheme-$(PKG_VERSION)
|
|
|
PKG_SOURCE:=tinyscheme-$(PKG_VERSION).tar.gz
|
|
@@ -38,18 +38,35 @@ include $(INCLUDE_DIR)/package.mk
|
|
|
define Package/tinyscheme
|
|
|
SECTION:=lang
|
|
|
CATEGORY:=Languages
|
|
|
- TITLE:=TinyScheme programming language
|
|
|
+ TITLE:=Interpreter for the TinyScheme programming language
|
|
|
URL:=http://tinyscheme.sourceforge.net
|
|
|
+ MAINTAINER=Christopher Howard <christopher.howard@qlfiles.net>
|
|
|
+endef
|
|
|
+
|
|
|
+define Package/tinyscheme-embedded
|
|
|
+ SECTION:=lang
|
|
|
+ CATEGORY:=Languages
|
|
|
+ TITLE:=Library for embedding the TinyScheme programming language
|
|
|
+ URL:=http://tinyscheme.sourceforge.net
|
|
|
+ MAINTAINER=Christopher Howard <christopher.howard@qlfiles.net>
|
|
|
+ DEPENDS:=tinyscheme
|
|
|
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.
|
|
|
- This package installs only the tinyscheme binary, not the shared library.
|
|
|
+TinyScheme is a lightweight Scheme interpreter that implements as large
|
|
|
+a subset of R5RS as was possible without getting very large and complicated.
|
|
|
+This package installs the tinyscheme interpreter and init file.
|
|
|
endef
|
|
|
|
|
|
-define Build/Configure
|
|
|
- $(call Build/Configure/Default,--with-linux-headers=$(LINUX_DIR))
|
|
|
+define Package/tinyscheme-embedded/description
|
|
|
+TinyScheme is a lightweight Scheme interpreter that implements as large
|
|
|
+a subset of R5RS as was possible without getting very large and complicated.
|
|
|
+This package installs the library required for embedding TinyScheme in a C
|
|
|
+program.
|
|
|
+endef
|
|
|
+
|
|
|
+define Build/Compile
|
|
|
+ $(call Build/Compile/Default,PLATFORM_FEATURES='-fPIC -DInitFile="\"/usr/lib/tinyscheme/init.scm\""')
|
|
|
endef
|
|
|
|
|
|
define Package/tinyscheme/install
|
|
@@ -59,4 +76,11 @@ define Package/tinyscheme/install
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/init.scm $(1)/usr/lib/tinyscheme/init.scm
|
|
|
endef
|
|
|
|
|
|
+define Package/tinyscheme-embedded/install
|
|
|
+ $(INSTALL_DIR) $(1)/usr/lib
|
|
|
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/libtinyscheme.so $(1)/usr/lib/libtinyscheme.so
|
|
|
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/libtinyscheme.a $(1)/usr/lib/libtinyscheme.a
|
|
|
+endef
|
|
|
+
|
|
|
$(eval $(call BuildPackage,tinyscheme))
|
|
|
+$(eval $(call BuildPackage,tinyscheme-embedded))
|