package/frotz: new package
Frotz is an interpreter for old Infocom adventures and other Z-code games. Signed-off-by: Thomas Huth <huth@tuxfamily.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
a530fd4a42
commit
122df1fcd3
@ -2564,6 +2564,7 @@ F: toolchain/
|
||||
|
||||
N: Thomas Huth <huth@tuxfamily.org>
|
||||
F: package/ascii-invaders/
|
||||
F: package/frotz/
|
||||
F: package/xorcurses/
|
||||
|
||||
N: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
|
@ -265,6 +265,7 @@ menu "Games"
|
||||
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"
|
||||
|
10
package/frotz/Config.in
Normal file
10
package/frotz/Config.in
Normal file
@ -0,0 +1,10 @@
|
||||
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/
|
3
package/frotz/frotz.hash
Normal file
3
package/frotz/frotz.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 7e488140791259a1a8c9e16a0c467ca69b694b918c28ffe3d83c654bcb253cca frotz-2.51.tar.bz2
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
31
package/frotz/frotz.mk
Normal file
31
package/frotz/frotz.mk
Normal file
@ -0,0 +1,31 @@
|
||||
################################################################################
|
||||
#
|
||||
# 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))
|
Loading…
Reference in New Issue
Block a user