buildroot/package/ascii-invaders/ascii-invaders.mk
Thomas Petazzoni 902fed5184 package/ascii-invaders: drop the SOURCE variable
There is no need to override the SOURCE variable when the github macro
is used, and in fact keeping the default SOURCE value gives a much
more sensible tarball name, so let's drop the SOURCE variable
entirely.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-09-12 09:27:15 +02:00

28 lines
921 B
Makefile

################################################################################
#
# ASCII-Invaders
#
################################################################################
ASCII_INVADERS_VERSION = 1.0.1
ASCII_INVADERS_SITE = $(call github,macdice,ascii-invaders,v$(ASCII_INVADERS_VERSION))
ASCII_INVADERS_DEPENDENCIES = ncurses
ASCII_INVADERS_LICENSE = GPL-2.0+
ASCII_INVADERS_LICENSE_FILES = LICENSE
# For compiling statically, libraries must be specified after the object file
define ASCII_INVADERS_POST_EXTRACT_FIXUP
sed -i 's/\$$(LIBS) invaders.o/invaders.o \$$(LIBS)/' $(@D)/Makefile
endef
ASCII_INVADERS_POST_EXTRACT_HOOKS += ASCII_INVADERS_POST_EXTRACT_FIXUP
define ASCII_INVADERS_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
endef
define ASCII_INVADERS_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/ascii_invaders $(TARGET_DIR)/usr/bin/ascii_invaders
endef
$(eval $(generic-package))