N: Thomas Huth <huth@tuxfamily.org>
F: package/ascii-invaders/
+F: package/frotz/
F: package/xorcurses/
N: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
source "package/doom-wad/Config.in"
source "package/flare-engine/Config.in"
source "package/flare-game/Config.in"
+ source "package/frotz/Config.in"
source "package/gnuchess/Config.in"
source "package/lbreakout2/Config.in"
source "package/ltris/Config.in"
--- /dev/null
+config BR2_PACKAGE_FROTZ
+ bool "frotz"
+ select BR2_PACKAGE_NCURSES
+ help
+ Frotz is an interpreter for old Infocom adventure games and
+ other Z-code games. Note that frotz can not be run as root.
+ You must add a normal user to your buildroot configuration to
+ be able to use it.
+
+ https://661.org/proj/if/frotz/
--- /dev/null
+# Locally calculated
+sha256 7e488140791259a1a8c9e16a0c467ca69b694b918c28ffe3d83c654bcb253cca frotz-2.51.tar.bz2
+sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
--- /dev/null
+################################################################################
+#
+# Frotz
+#
+################################################################################
+
+FROTZ_VERSION = 2.51
+FROTZ_SOURCE = frotz-$(FROTZ_VERSION).tar.bz2
+FROTZ_SITE = https://gitlab.com/DavidGriffith/frotz/-/archive/$(FROTZ_VERSION)
+FROTZ_DEPENDENCIES = host-pkgconf ncurses
+FROTZ_LICENSE = GPL-2.0+
+FROTZ_LICENSE_FILES = COPYING
+
+ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
+FROTZ_CURSES=ncursesw
+FROTZ_UTF8=yes
+else
+FROTZ_CURSES=ncurses
+endif
+
+define FROTZ_BUILD_CMDS
+ $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) PREFIX=/usr CONFIG_DIR=/etc \
+ SOUND_TYPE=none CURSES="$(FROTZ_CURSES)" USE_UTF8=$(FROTZ_UTF8) \
+ CFLAGS="$(TARGET_CFLAGS) -std=c99"
+endef
+
+define FROTZ_INSTALL_TARGET_CMDS
+ $(INSTALL) -D -m 0755 $(@D)/frotz $(TARGET_DIR)/usr/bin/frotz
+endef
+
+$(eval $(generic-package))