kumquat-buildroot/package/xorcurses/xorcurses.mk
Thomas Huth 6a216093ca package/xorcurses: new package
XorCurses is a remake of the 8-bit game 'Xor' by Astral Software.
Your task is to roam around a series of mazes where you have to
collect all blue masks before finding the exit. You have two 'shields'
(players) and you can use either one at any time and switch between
them. While the first level is simply a matter of navigation, the
following levels introduce further objects like bombs and teleports,
which have to be used right to solve the puzzles.

Signed-off-by: Thomas Huth <huth@tuxfamily.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2021-01-09 22:59:01 +01:00

28 lines
888 B
Makefile

################################################################################
#
# xorcurses
#
################################################################################
XORCURSES_VERSION = 04b664826c5bd30dd483f6a5c8c189ef97e255da
XORCURSES_SITE = $(call github,jwm-art-net,XorCurses,$(XORCURSES_VERSION))
XORCURSES_DEPENDENCIES = ncurses
XORCURSES_LICENSE = GPL-3.0
XORCURSES_LICENSE_FILES = README
define XORCURSES_BUILD_CMDS
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) -std=gnu99 \
-DDATADIR='\"/usr/share/xorcurses\"' \
-DVERSION='\"$(XORCURSES_VERSION)\"'"
endef
define XORCURSES_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/xorcurses $(TARGET_DIR)/usr/bin/xorcurses
mkdir -p $(TARGET_DIR)/usr/share/xorcurses/maps
$(INSTALL) -D -m 0644 $(@D)/maps/*.xcm \
$(TARGET_DIR)/usr/share/xorcurses/maps/
endef
$(eval $(generic-package))