2016-08-24 01:12:27 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://www.softsynth.com/pforth/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Portable Forth in C"
|
2017-01-30 00:34:10 +01:00
|
|
|
_COMMIT=f1994bf609c5b053c5c0d7db2062b570fa9f5ead
|
|
|
|
TERMUX_PKG_VERSION=20170116
|
2016-08-24 01:12:27 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/philburk/pforth/archive/${_COMMIT}.zip
|
2017-01-30 00:34:10 +01:00
|
|
|
TERMUX_PKG_SHA256=fffd7aec1f6601c48a9e2baa284c82d4b22a77f5860a49d83bd811ca4ea18a05
|
2016-08-24 01:12:27 +02:00
|
|
|
TERMUX_PKG_HOSTBUILD=yes
|
|
|
|
|
|
|
|
termux_step_host_build () {
|
2016-09-14 23:12:09 +02:00
|
|
|
cp -Rf $TERMUX_PKG_SRCDIR/* .
|
2016-08-24 01:12:27 +02:00
|
|
|
cd build/unix
|
2016-09-04 00:45:08 +02:00
|
|
|
CC=gcc make pfdicdat.h
|
2016-08-24 01:12:27 +02:00
|
|
|
CC=gcc make all
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_pre_configure () {
|
|
|
|
for file in pfdicdat.h pforth; do
|
|
|
|
cp $TERMUX_PKG_HOSTBUILD_DIR/build/unix/$file $TERMUX_PKG_SRCDIR/build/unix/$file
|
2017-04-18 08:19:48 +02:00
|
|
|
touch -d "next hour" $TERMUX_PKG_SRCDIR/build/unix/$file
|
2016-08-24 01:12:27 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
export TERMUX_PKG_BUILDDIR=$TERMUX_PKG_SRCDIR/build/unix
|
|
|
|
export CC="$CC $CFLAGS"
|
|
|
|
}
|
|
|
|
termux_step_make_install () {
|
|
|
|
cp $TERMUX_PKG_BUILDDIR/pforth_standalone $TERMUX_PREFIX/bin/pforth
|
|
|
|
}
|