Blame view

buildroot/buildroot-2016.08.1/package/chocolate-doom/chocolate-doom.mk 1.15 KB
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
37
38
  ################################################################################
  #
  # chocolate-doom
  #
  ################################################################################
  
  CHOCOLATE_DOOM_VERSION = 2.2.1
  CHOCOLATE_DOOM_SITE = http://www.chocolate-doom.org/downloads/$(CHOCOLATE_DOOM_VERSION)
  CHOCOLATE_DOOM_LICENSE = GPLv2+
  CHOCOLATE_DOOM_LICENSE_FILES = COPYING
  CHOCOLATE_DOOM_DEPENDENCIES = host-pkgconf sdl sdl_mixer sdl_net
  
  # We're patching configure.ac, so we need to autoreconf
  CHOCOLATE_DOOM_AUTORECONF = YES
  
  # Avoid installing desktop entries, icons, etc.
  CHOCOLATE_DOOM_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-exec
  
  CHOCOLATE_DOOM_CONF_OPTS = \
  	--disable-sdltest \
  	--with-sdl-prefix=$(STAGING_DIR)/usr \
  	--with-sdl-exec-prefix=$(STAGING_DIR)/usr
  
  ifeq ($(BR2_PACKAGE_LIBPNG),y)
  CHOCOLATE_DOOM_DEPENDENCIES += libpng
  CHOCOLATE_DOOM_CONF_OPTS += --with-libpng
  else
  CHOCOLATE_DOOM_CONF_OPTS += --without-libpng
  endif
  
  ifeq ($(BR2_PACKAGE_LIBSAMPLERATE),y)
  CHOCOLATE_DOOM_DEPENDENCIES += libsamplerate
  CHOCOLATE_DOOM_CONF_OPTS += --with-libsamplerate
  else
  CHOCOLATE_DOOM_CONF_OPTS += --without-libsamplerate
  endif
  
  $(eval $(autotools-package))