Add tinyscheme

This commit is contained in:
Fredrik Fornwall 2016-01-31 09:29:07 -05:00
parent be0d31241f
commit 362ea15214
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,17 @@
TERMUX_PKG_HOMEPAGE=http://tinyscheme.sourceforge.net/home.html
TERMUX_PKG_DESCRIPTION="Very small scheme implementation"
TERMUX_PKG_VERSION=1.41
TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/tinyscheme/tinyscheme/tinyscheme-1.41/tinyscheme-1.41.tar.gz
TERMUX_PKG_BUILD_IN_SRC=yes
# TERMUX_PKG_DEPENDS="pcre, openssl, libuuid"
# TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-ssl=openssl --disable-iri"
AR+=" crs"
LD=$CC
# TODO: Add the tsx extension with file/networking (http://heras-gilsanz.com/manuel/tsx.html)
# and the regexp extension (http://downloads.sourceforge.net/project/tinyscheme/tinyscheme-regex/1.3/re-1.3.tar.gz)
#termux_step_pre_make () {
#TSX_TARFILE=$TERMUX_PKG_CACHEDIR/tsx-1.1.tar.gz
#test ! -f $TSX_TARFILE && curl -o $TSX_TARFILE "http://heras-gilsanz.com/manuel/tsx-1.1.tgz"
#}

View File

@ -0,0 +1,30 @@
diff -u -r ../tinyscheme-1.41/makefile ./makefile
--- ../tinyscheme-1.41/makefile 2013-04-14 16:08:33.000000000 -0400
+++ ./makefile 2016-01-24 18:02:10.122962806 -0500
@@ -18,7 +18,6 @@
#AR= echo
# Unix, generally
-CC = gcc -fpic -pedantic
DEBUG=-g -Wall -Wno-char-subscripts -O
Osuf=o
SOsuf=so
@@ -27,11 +26,8 @@
LIBPREFIX=lib
OUT = -o $@
RM= -rm -f
-AR= ar crs
# Linux
-LD = gcc
-LDFLAGS = -shared
DEBUG=-g -Wno-char-subscripts -O
SYS_LIBS= -ldl -lm
PLATFORM_FEATURES= -DSUN_DL=1
@@ -96,3 +92,6 @@
tags: TAGS
TAGS: $(TAGS_SRCS)
etags $(TAGS_SRCS)
+
+install: scheme
+ cp scheme @TERMUX_PREFIX@/bin/tinyscheme