2016-01-31 15:24:51 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://racket-lang.org
|
|
|
|
TERMUX_PKG_DESCRIPTION="Full-spectrum programming language going beyond Lisp and Scheme"
|
2018-03-20 23:04:46 +01:00
|
|
|
TERMUX_PKG_VERSION=6.12
|
2016-04-11 00:53:05 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://mirror.racket-lang.org/installers/${TERMUX_PKG_VERSION}/racket-minimal-${TERMUX_PKG_VERSION}-src-builtpkgs.tgz
|
2018-03-20 23:04:46 +01:00
|
|
|
|
|
|
|
TERMUX_PKG_SHA256=295a422d60af2a3186a18783d033c167eeed07b936c79f404d25123a0209d683
|
|
|
|
TERMUX_PKG_NO_DEVELSPLIT=true
|
2016-04-11 00:53:05 +02:00
|
|
|
TERMUX_PKG_HOSTBUILD=true
|
|
|
|
TERMUX_PKG_DEPENDS="libffi, libandroid-support"
|
2018-03-20 23:04:46 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-racket=$TERMUX_PKG_HOSTBUILD_DIR/racket/racketcgc --enable-libs --disable-shared --disable-gracket --enable-libffi"
|
2016-11-22 23:12:28 +01:00
|
|
|
|
|
|
|
termux_step_host_build () {
|
|
|
|
$TERMUX_PKG_SRCDIR/src/configure ${TERMUX_PKG_EXTRA_HOSTBUILD_CONFIGURE_ARGS}
|
|
|
|
make -j $TERMUX_MAKE_PROCESSES
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_pre_configure () {
|
2018-03-20 23:04:46 +01:00
|
|
|
CPPFLAGS+=" -I$TERMUX_PKG_SRCDIR/src/racket/include -I$TERMUX_PKG_BUILDDIR/racket"
|
2016-11-22 23:12:28 +01:00
|
|
|
# Due to use of syslog.
|
|
|
|
LDFLAGS+=" -llog"
|
2016-01-31 15:24:51 +01:00
|
|
|
export TERMUX_PKG_SRCDIR=$TERMUX_PKG_SRCDIR/src
|
|
|
|
}
|