frotz: Update frotz from 2.43 to 2.44
[termux-packages] / packages / frotz / build.sh
CommitLineData
59f0d218
FF
1TERMUX_PKG_HOMEPAGE=http://frotz.sourceforge.net/
2TERMUX_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.
4TERMUX_PKG_DEPENDS="ncurses, dialog"
83093c05
FF
5TERMUX_PKG_VERSION=2.44
6TERMUX_PKG_SRCURL=https://github.com/DavidGriffith/frotz/archive/${TERMUX_PKG_VERSION}.tar.gz
7TERMUX_PKG_FOLDERNAME=frotz-${TERMUX_PKG_VERSION}
59f0d218
FF
8TERMUX_PKG_BUILD_IN_SRC=yes
9
83093c05
FF
10# Pull request submitted to replace rindex() with strrchr() at
11# https://github.com/DavidGriffith/frotz/pull/20
12CFLAGS+=" -Drindex=strrchr"
13
59f0d218
FF
14termux_step_make () {
15 CC="$CC $CFLAGS $CPPFLAGS $LDFLAGS" PREFIX=$TERMUX_PREFIX make -j $TERMUX_MAKE_PROCESSES install
16}
17
18termux_step_make_install () {
19 cp $TERMUX_PKG_BUILDER_DIR/zgames $TERMUX_PREFIX/bin/zgames
20 chmod +x $TERMUX_PREFIX/bin/zgames
21}