diff --git a/packages/tinyfugue/build.sh b/packages/tinyfugue/build.sh new file mode 100644 index 000000000..cbae8a565 --- /dev/null +++ b/packages/tinyfugue/build.sh @@ -0,0 +1,19 @@ +TERMUX_PKG_HOMEPAGE=http://tinyfugue.sourceforge.net/ +TERMUX_PKG_DESCRIPTION="Flexible, screen-oriented MUD client, for use with any type of MUD" +TERMUX_PKG_LICENSE="GPL-2.0" +TERMUX_PKG_VERSION=5.0b8 +_COMMIT=854c76f33a4eda6cd64e0b7dc3e07e5de8bbfada +TERMUX_PKG_SRCURL=https://github.com/Longlius/tinyfugue/archive/${_COMMIT}.zip +TERMUX_PKG_SHA256=59579de448b7e892a2b4dbfa7a7db7859382a90ec2bd77ce50c515358253461d +TERMUX_PKG_DEPENDS="ncurses, openssl, pcre, zlib" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" +--enable-termcap=ncurses +--disable-mailcheck +" + +termux_step_pre_configure() { + # CFLAGS are passed utilities built for host, but GCC + # can't understand "-Oz". + CFLAGS="${CFLAGS/-Oz/-Os}" +} diff --git a/packages/tinyfugue/tinyfugue_unix_unix.mak.patch b/packages/tinyfugue/tinyfugue_unix_unix.mak.patch new file mode 100644 index 000000000..71e2a057c --- /dev/null +++ b/packages/tinyfugue/tinyfugue_unix_unix.mak.patch @@ -0,0 +1,12 @@ +diff -uNr tinyfugue/unix/unix.mak tinyfugue.mod/unix/unix.mak +--- tinyfugue/unix/unix.mak 2014-02-11 02:48:45.000000000 +0200 ++++ tinyfugue.mod/unix/unix.mak 2020-01-02 17:11:01.818254627 +0200 +@@ -140,7 +140,7 @@ + rm -f worldqueue.tf; ln -s world-q.tf worldqueue.tf; + + makehelp: makehelp.c +- $(CC) $(CFLAGS) -o makehelp makehelp.c ++ $(CC_FOR_BUILD) $(CFLAGS) -o makehelp makehelp.c + + __always__: +