kumquat-buildroot/package/opentyrian/opentyrian.mk
Yann E. MORIN 64e7c63528 package/opentyrian: switch to using github
OpenTyrian was previously managed in a Mercurial repository hosted on
Bitbucket. Mid-2020, Bitbucket shut off all its Mercurial repositories:
    https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket

Since then, OpenTyrian's source code is inacessible, but we have had no
build failure associated as there is an old archive hosted on s.b.o, so
that all builds fallback to downloading that:
    http://sources.buildroot.net/opentyrian/opentyrian-9c9f0ec3532b.tar.gz

However, the project has been revived (kinda) on github:
    https://github.com/opentyrian/opentyrian

Git commit cf5dbeb69eebd9ef9afc4473088d9469b79589eb has been found to
be the closest, both in content and date, to the Mercuail reference
9c9f0ec3532b we were using. The only deltas are in Mercurial-specific
files:

 b/.hg_archival.txt |    5     0     5     0 -----
 b/.hgtags          |    2     1     1     0 +-
 2 files changed, 1 insertion(+), 6 deletions(-)

While at it, add a hash file.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Julien Boibessot <julien.boibessot@armadeus.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2021-05-14 20:39:55 +02:00

36 lines
971 B
Makefile

################################################################################
#
# opentyrian
#
################################################################################
OPENTYRIAN_VERSION = cf5dbeb69eebd9ef9afc4473088d9469b79589eb
OPENTYRIAN_SITE = $(call github,opentyrian,opentyrian,$(OPENTYRIAN_VERSION))
OPENTYRIAN_LICENSE = GPL-2.0+
OPENTYRIAN_LICENSE_FILES = COPYING
OPENTYRIAN_DEPENDENCIES = sdl
ifeq ($(BR2_PACKAGE_OPENTYRIAN_NET),y)
OPENTYRIAN_DEPENDENCIES += sdl_net
OPENTYRIAN_NETWORK = true
else
OPENTYRIAN_NETWORK = false
endif
define OPENTYRIAN_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) PLATFORM=UNIX \
CC="$(TARGET_CC)" \
STRIP="/bin/true" \
SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config" \
LDFLAGS="$(TARGET_LDFLAGS) -lm" \
WITH_NETWORK="$(OPENTYRIAN_NETWORK)" \
-C $(@D) release
endef
define OPENTYRIAN_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/opentyrian $(TARGET_DIR)/usr/bin/opentyrian
endef
$(eval $(generic-package))