Blame view

buildroot/buildroot-2016.08.1/package/opentyrian/opentyrian.mk 917 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  ################################################################################
  #
  # opentyrian
  #
  ################################################################################
  
  OPENTYRIAN_VERSION = 9c9f0ec3532b
  OPENTYRIAN_SITE = https://bitbucket.org/opentyrian/opentyrian
  OPENTYRIAN_SITE_METHOD = hg
  OPENTYRIAN_LICENSE = GPLv2+
  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
  	$(MAKE) PLATFORM=UNIX \
  		CC="$(TARGET_CC)" \
  		STRIP="/bin/true" \
  		SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config" \
  		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))