Blame view

buildroot/buildroot-2016.08.1/package/pinentry/pinentry.mk 1.91 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
  ################################################################################
  #
  # pinentry
  #
  ################################################################################
  
  PINENTRY_VERSION = 0.9.4
  PINENTRY_SOURCE = pinentry-$(PINENTRY_VERSION).tar.bz2
  PINENTRY_SITE = ftp://ftp.gnupg.org/gcrypt/pinentry
  PINENTRY_LICENSE = GPLv2+
  PINENTRY_LICENSE_FILES = COPYING
  PINENTRY_DEPENDENCIES = \
  	$(if $(BR2_PACKAGE_LIBICONV),libiconv) \
  	host-pkgconf
  PINENTRY_CONF_OPTS += --without-libcap       # requires PAM
  
  # pinentry uses some std::string functionality that needs C++11
  # support when gcc >= 5.x. This should be removed when bumping
  # pinentry, since newer versions no longer use std::string.
  ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_5),y)
  PINENTRY_CONF_ENV = CXXFLAGS="$(TARGET_CXXFLAGS) -std=gnu++11"
  endif
  
  # build with X if available
  ifeq ($(BR2_PACKAGE_XORG7),y)
  PINENTRY_CONF_OPTS += --with-x
  else
  PINENTRY_CONF_OPTS += --without-x
  endif
  
  ifeq ($(BR2_PACKAGE_LIBSECRET),y)
  PINENTRY_CONF_OPTS += --enable-libsecret
  PINENTRY_DEPENDENCIES += libsecret
  else
  PINENTRY_CONF_OPTS += --disable-libsecret
  endif
  
  # pinentry-ncurses backend
  ifeq ($(BR2_PACKAGE_PINENTRY_NCURSES),y)
  PINENTRY_CONF_OPTS += --enable-ncurses --with-ncurses-include-dir=none
  PINENTRY_DEPENDENCIES += ncurses
  else
  PINENTRY_CONF_OPTS += --disable-ncurses
  endif
  
  # pinentry-gtk2 backend
  ifeq ($(BR2_PACKAGE_PINENTRY_GTK2),y)
  PINENTRY_CONF_OPTS += --enable-pinentry-gtk2
  PINENTRY_DEPENDENCIES += libgtk2
  else
  PINENTRY_CONF_OPTS += --disable-pinentry-gtk2
  endif
  
  # pinentry-qt4 backend
  ifeq ($(BR2_PACKAGE_PINENTRY_QT4),y)
  # -pthread needs to be passed for certain toolchains
  # http://autobuild.buildroot.net/results/6be/6be109ccedec603a67cebdb31b55865dcce0e128/
  PINENTRY_CONF_OPTS += LIBS=-pthread MOC=$(HOST_DIR)/usr/bin/moc
  PINENTRY_CONF_OPTS += --enable-pinentry-qt4
  PINENTRY_DEPENDENCIES += qt
  else
  PINENTRY_CONF_OPTS += --disable-pinentry-qt4
  endif
  
  $(eval $(autotools-package))