xref: /OK3568_Linux_fs/buildroot/package/pcsc-lite/pcsc-lite.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# pcsc-lite
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunPCSC_LITE_VERSION = 1.9.4
8*4882a593SmuzhiyunPCSC_LITE_SOURCE = pcsc-lite-$(PCSC_LITE_VERSION).tar.bz2
9*4882a593SmuzhiyunPCSC_LITE_SITE = https://pcsclite.apdu.fr/files
10*4882a593SmuzhiyunPCSC_LITE_INSTALL_STAGING = YES
11*4882a593SmuzhiyunPCSC_LITE_DEPENDENCIES = host-pkgconf
12*4882a593SmuzhiyunPCSC_LITE_LICENSE = BSD-2-Clause (auth), BSD-3-Clause, GPL-3.0+ (demo, spy, tests), ISC (simclist)
13*4882a593SmuzhiyunPCSC_LITE_LICENSE_FILES = COPYING GPL-3.0.txt
14*4882a593SmuzhiyunPCSC_LITE_SELINUX_MODULES = pcscd
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun# - libudev and libusb are optional
17*4882a593Smuzhiyun# - libudev and libusb can't be used together
18*4882a593Smuzhiyun# - libudev has a priority over libusb
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_HAS_UDEV),y)
21*4882a593SmuzhiyunPCSC_LITE_CONF_OPTS += --enable-libudev --disable-libusb
22*4882a593SmuzhiyunPCSC_LITE_DEPENDENCIES += udev
23*4882a593Smuzhiyunelse
24*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBUSB),y)
25*4882a593SmuzhiyunPCSC_LITE_CONF_OPTS += --enable-libusb --disable-libudev
26*4882a593SmuzhiyunPCSC_LITE_DEPENDENCIES += libusb
27*4882a593Smuzhiyunelse
28*4882a593SmuzhiyunPCSC_LITE_CONF_OPTS += --disable-libusb --disable-libudev
29*4882a593Smuzhiyunendif
30*4882a593Smuzhiyunendif
31*4882a593Smuzhiyun
32*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SYSTEMD),y)
33*4882a593SmuzhiyunPCSC_LITE_CONF_OPTS += --enable-libsystemd
34*4882a593SmuzhiyunPCSC_LITE_DEPENDENCIES += systemd
35*4882a593Smuzhiyunelse
36*4882a593SmuzhiyunPCSC_LITE_CONF_OPTS += --disable-libsystemd
37*4882a593Smuzhiyunendif
38*4882a593Smuzhiyun
39*4882a593Smuzhiyunifeq ($(PACKAGE_PCSC_LITE_DEBUGATR),y)
40*4882a593SmuzhiyunPCSC_LITE_CONF_OPTS += --enable-debugatr
41*4882a593Smuzhiyunendif
42*4882a593Smuzhiyun
43*4882a593Smuzhiyunifeq ($(PACKAGE_PCSC_LITE_EMBEDDED),y)
44*4882a593SmuzhiyunPCSC_LITE_CONF_OPTS += --enable-embedded
45*4882a593Smuzhiyunendif
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun$(eval $(autotools-package))
48