Blame view

buildroot/buildroot-2016.08.1/package/fastd/fastd.mk 1.04 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
39
40
41
  ################################################################################
  #
  # fastd
  #
  ################################################################################
  
  FASTD_VERSION = 18
  FASTD_SITE = https://projects.universe-factory.net/attachments/download/86
  FASTD_SOURCE = fastd-$(FASTD_VERSION).tar.xz
  FASTD_LICENSE = BSD-2c
  FASTD_LICENSE_FILES = COPYRIGHT
  FASTD_CONF_OPTS = -DENABLE_LIBSODIUM=ON
  FASTD_DEPENDENCIES = host-bison host-pkgconf libuecc libsodium libcap
  
  ifeq ($(BR2_PACKAGE_OPENSSL),y)
  FASTD_CONF_OPTS += -DENABLE_OPENSSL=ON
  FASTD_DEPENDENCIES += openssl
  else
  FASTD_CONF_OPTS += -DENABLE_OPENSSL=OFF
  endif
  
  ifeq ($(BR2_PACKAGE_FASTD_STATUS_SOCKET),y)
  FASTD_CONF_OPTS += -DWITH_STATUS_SOCKET=ON
  FASTD_DEPENDENCIES += json-c
  else
  FASTD_CONF_OPTS += -DWITH_STATUS_SOCKET=OFF
  endif
  
  ifeq ($(BR2_INIT_SYSTEMD),y)
  FASTD_CONF_OPTS += -DENABLE_SYSTEMD=ON
  else
  FASTD_CONF_OPTS += -DENABLE_SYSTEMD=OFF
  endif
  
  ifeq ($(BR2_GCC_ENABLE_LTO),y)
  FASTD_CONF_OPTS += -DENABLE_LTO=ON
  else
  FASTD_CONF_OPTS += -DENABLE_LTO=OFF
  endif
  
  $(eval $(cmake-package))