This commit is contained in:
Leonid Pliushch 2019-02-17 18:49:01 +02:00
parent b1988a732d
commit 7fff0bec2b
5 changed files with 0 additions and 94 deletions

View File

@ -1,22 +0,0 @@
TERMUX_PKG_HOMEPAGE=https://racket-lang.org
TERMUX_PKG_DESCRIPTION="Full-spectrum programming language going beyond Lisp and Scheme"
TERMUX_PKG_VERSION=6.12
TERMUX_PKG_SRCURL=https://mirror.racket-lang.org/installers/${TERMUX_PKG_VERSION}/racket-minimal-${TERMUX_PKG_VERSION}-src-builtpkgs.tgz
TERMUX_PKG_SHA256=295a422d60af2a3186a18783d033c167eeed07b936c79f404d25123a0209d683
TERMUX_PKG_NO_DEVELSPLIT=true
TERMUX_PKG_HOSTBUILD=true
TERMUX_PKG_DEPENDS="libffi, libandroid-support"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-racket=$TERMUX_PKG_HOSTBUILD_DIR/racket/racketcgc --enable-libs --disable-shared --disable-gracket --enable-libffi"
termux_step_host_build() {
$TERMUX_PKG_SRCDIR/src/configure ${TERMUX_PKG_EXTRA_HOSTBUILD_CONFIGURE_ARGS}
make -j $TERMUX_MAKE_PROCESSES
}
termux_step_pre_configure() {
CPPFLAGS+=" -I$TERMUX_PKG_SRCDIR/src/racket/include -I$TERMUX_PKG_BUILDDIR/racket"
# Due to use of syslog.
LDFLAGS+=" -llog"
export TERMUX_PKG_SRCDIR=$TERMUX_PKG_SRCDIR/src
}

View File

@ -1,12 +0,0 @@
diff -u -r ../racket-6.6/collects/racket/system.rkt ./collects/racket/system.rkt
--- ../racket-6.6/collects/racket/system.rkt 2016-04-15 16:33:56.000000000 -0400
+++ ./collects/racket/system.rkt 2016-11-22 16:45:09.576844179 -0500
@@ -17,7 +17,7 @@
(define (shell-path/args who argstr)
(case (system-type)
- [(unix macosx) (append '("/bin/sh" "-c") (list argstr))]
+ [(unix macosx) (append '("@TERMUX_PREFIX@/bin/sh" "-c") (list argstr))]
[(windows) (let ([cmd
(let ([d (find-system-path 'sys-dir)])
(let ([cmd (build-path d "cmd.exe")])

View File

@ -1,10 +0,0 @@
--- ../cache/racket-6.11/src/racket/gc2/newgc.c 2017-07-07 19:13:22.000000000 +0000
+++ ./src/racket/gc2/newgc.c 2018-01-05 05:55:28.900376813 +0000
@@ -10,6 +10,7 @@
#include <stdio.h>
#include <string.h>
#include <errno.h>
+#include <strings.h>
#include "platforms.h"
#include "../src/schpriv.h"
#include "gc2.h"

View File

@ -1,18 +0,0 @@
--- ../cache/racket-6.12/src/rktio/rktio_dll.c 2017-10-12 18:23:27.000000000 +0000
+++ ./src/rktio/rktio_dll.c 2018-03-18 01:22:17.345952252 +0000
@@ -1,5 +1,6 @@
#include "rktio.h"
#include "rktio_private.h"
+#include "scheme.h"
#include <stdlib.h>
#include <string.h>
@@ -63,7 +64,7 @@
return dll;
#ifdef RKTIO_SYSTEM_UNIX
-# if defined(__ANDROID__)
+# if defined(__ANDROID__) && !defined(__x86_64__) && !defined(__aarch64__)
if (!name) handle = RTLD_DEFAULT; else
# elif defined(__CYGWIN32__)
if (!name) { handle = RTLD_DEFAULT; null_ok = 1; } else

View File

@ -1,32 +0,0 @@
--- ../cache/racket-6.12/src/racket/sconfig.h 2017-10-12 18:23:27.000000000 +0000
+++ ./src/racket/sconfig.h 2018-02-07 01:18:13.911569478 +0000
@@ -124,10 +124,12 @@
# endif
# if defined(__x86_64__)
# define SCHEME_PLATFORM_LIBRARY_SUBPATH "x86_64-"SPLS_LINUX
# define REGISTER_POOR_MACHINE
# define ASM_DBLPREC_CONTROL_87
+#ifndef __ANDROID__
# define MZ_TRY_EXTFLONUMS
# endif
+# endif
# ifndef SCHEME_PLATFORM_LIBRARY_SUBPATH
# define SCHEME_PLATFORM_LIBRARY_SUBPATH "unknown-"SPLS_LINUX
# endif
@@ -147,12 +149,16 @@
#if defined(__i386__)
# define MZ_USE_JIT_I386
# define MZ_JIT_USE_MPROTECT
+#ifndef __ANDROID__
# define MZ_USE_DWARF_LIBUNWIND
#endif
+#endif
#if defined(__x86_64__)
# define MZ_USE_JIT_X86_64
# define MZ_JIT_USE_MPROTECT
+#ifndef __ANDROID__
# define MZ_USE_DWARF_LIBUNWIND
+#endif
#endif
#if defined(__powerpc__) && !defined(__powerpc64__)
# define MZ_USE_JIT_PPC