2014-04-30 21:34:56 +02:00
|
|
|
################################################################################
|
2014-02-11 09:43:19 +01:00
|
|
|
#
|
|
|
|
# opentyrian
|
|
|
|
#
|
2014-04-30 21:34:56 +02:00
|
|
|
################################################################################
|
2014-02-11 09:43:19 +01:00
|
|
|
|
2015-02-24 09:24:41 +01:00
|
|
|
OPENTYRIAN_VERSION = 9c9f0ec3532b
|
2015-04-23 07:46:30 +02:00
|
|
|
OPENTYRIAN_SITE = https://bitbucket.org/opentyrian/opentyrian
|
2015-02-24 09:24:41 +01:00
|
|
|
OPENTYRIAN_SITE_METHOD = hg
|
2017-03-30 15:43:32 +02:00
|
|
|
OPENTYRIAN_LICENSE = GPL-2.0+
|
2014-02-11 09:43:19 +01:00
|
|
|
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
|
2016-10-14 00:13:30 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) PLATFORM=UNIX \
|
2014-02-11 09:43:19 +01:00
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
STRIP="/bin/true" \
|
|
|
|
SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config" \
|
2017-04-03 14:25:43 +02:00
|
|
|
LDFLAGS="$(TARGET_LDFLAGS) -lm" \
|
2014-02-11 09:43:19 +01:00
|
|
|
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))
|