xref: /OK3568_Linux_fs/buildroot/package/opentyrian/opentyrian.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# opentyrian
4#
5################################################################################
6
7OPENTYRIAN_VERSION = cf5dbeb69eebd9ef9afc4473088d9469b79589eb
8OPENTYRIAN_SITE = $(call github,opentyrian,opentyrian,$(OPENTYRIAN_VERSION))
9OPENTYRIAN_LICENSE = GPL-2.0+
10OPENTYRIAN_LICENSE_FILES = COPYING
11
12OPENTYRIAN_DEPENDENCIES = sdl
13
14ifeq ($(BR2_PACKAGE_OPENTYRIAN_NET),y)
15OPENTYRIAN_DEPENDENCIES += sdl_net
16OPENTYRIAN_NETWORK = true
17else
18OPENTYRIAN_NETWORK = false
19endif
20
21define OPENTYRIAN_BUILD_CMDS
22	$(TARGET_MAKE_ENV) $(MAKE) PLATFORM=UNIX \
23		CC="$(TARGET_CC)" \
24		STRIP="/bin/true" \
25		SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config" \
26		LDFLAGS="$(TARGET_LDFLAGS) -lm" \
27		WITH_NETWORK="$(OPENTYRIAN_NETWORK)" \
28		-C $(@D) release
29endef
30
31define OPENTYRIAN_INSTALL_TARGET_CMDS
32	$(INSTALL) -D -m 0755 $(@D)/opentyrian $(TARGET_DIR)/usr/bin/opentyrian
33endef
34
35$(eval $(generic-package))
36