Commit | Line | Data |
---|---|---|
59f0d218 FF |
1 | TERMUX_PKG_HOMEPAGE=http://frotz.sourceforge.net/ |
2 | TERMUX_PKG_DESCRIPTION="Interpreter for Infocom and other Z-machine interactive fiction (IF) games" | |
3 | # frotz does not depend on dialog, but the script zgames we bundle below in termux_step_make_install() do. | |
4 | TERMUX_PKG_DEPENDS="ncurses, dialog" | |
83093c05 FF |
5 | TERMUX_PKG_VERSION=2.44 |
6 | TERMUX_PKG_SRCURL=https://github.com/DavidGriffith/frotz/archive/${TERMUX_PKG_VERSION}.tar.gz | |
7 | TERMUX_PKG_FOLDERNAME=frotz-${TERMUX_PKG_VERSION} | |
59f0d218 FF |
8 | TERMUX_PKG_BUILD_IN_SRC=yes |
9 | ||
7ce56385 FF |
10 | termux_step_pre_configure() { |
11 | # Pull request submitted to replace rindex() with strrchr() at | |
12 | # https://github.com/DavidGriffith/frotz/pull/20 | |
13 | CFLAGS+=" -Drindex=strrchr" | |
14 | } | |
83093c05 | 15 | |
59f0d218 FF |
16 | termux_step_make () { |
17 | CC="$CC $CFLAGS $CPPFLAGS $LDFLAGS" PREFIX=$TERMUX_PREFIX make -j $TERMUX_MAKE_PROCESSES install | |
18 | } | |
19 | ||
20 | termux_step_make_install () { | |
21 | cp $TERMUX_PKG_BUILDER_DIR/zgames $TERMUX_PREFIX/bin/zgames | |
22 | chmod +x $TERMUX_PREFIX/bin/zgames | |
23 | } |