2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-10-07 21:05:12 +02:00
|
|
|
#
|
2013-06-06 01:53:28 +02:00
|
|
|
# pcsc-lite
|
2012-10-07 21:05:12 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-30 01:25:46 +01:00
|
|
|
|
2017-09-17 10:25:24 +02:00
|
|
|
PCSC_LITE_VERSION = 1.8.22
|
2012-10-07 21:05:12 +02:00
|
|
|
PCSC_LITE_SOURCE = pcsc-lite-$(PCSC_LITE_VERSION).tar.bz2
|
2017-04-21 15:53:51 +02:00
|
|
|
PCSC_LITE_SITE = http://alioth.debian.org/frs/download.php/file/4203
|
2012-10-07 21:05:12 +02:00
|
|
|
PCSC_LITE_INSTALL_STAGING = YES
|
2012-10-22 17:47:52 +02:00
|
|
|
PCSC_LITE_DEPENDENCIES = host-pkgconf
|
2017-03-30 15:43:38 +02:00
|
|
|
PCSC_LITE_LICENSE = BSD-3-Clause
|
2013-01-30 01:25:46 +01:00
|
|
|
PCSC_LITE_LICENSE_FILES = COPYING
|
2014-02-27 10:18:40 +01:00
|
|
|
PCSC_LITE_AUTORECONF = YES
|
2012-10-07 21:05:12 +02:00
|
|
|
|
|
|
|
# - libudev and libusb are optional
|
|
|
|
# - libudev and libusb can't be used together
|
|
|
|
# - libudev has a priority over libusb
|
|
|
|
|
2014-02-07 14:21:33 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
PCSC_LITE_CONF_OPTS += --enable-libudev --disable-libusb
|
2012-10-07 21:05:12 +02:00
|
|
|
PCSC_LITE_DEPENDENCIES += udev
|
|
|
|
else
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
PCSC_LITE_CONF_OPTS += --enable-libusb --disable-libudev
|
2012-10-07 21:05:12 +02:00
|
|
|
PCSC_LITE_DEPENDENCIES += libusb
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
PCSC_LITE_CONF_OPTS += --disable-libusb --disable-libudev
|
2012-10-07 21:05:12 +02:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(PACKAGE_PCSC_LITE_DEBUGATR),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
PCSC_LITE_CONF_OPTS += --enable-debugatr
|
2012-10-07 21:05:12 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(PACKAGE_PCSC_LITE_EMBEDDED),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
PCSC_LITE_CONF_OPTS += --enable-embedded
|
2012-10-07 21:05:12 +02:00
|
|
|
endif
|
|
|
|
|
2017-03-28 11:55:47 +02:00
|
|
|
define PCSC_LITE_INSTALL_INIT_SYSTEMD
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/sockets.target.wants
|
|
|
|
ln -sf ../../../../usr/lib/systemd/system/pcscd.socket \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/sockets.target.wants/pcscd.socket
|
|
|
|
endef
|
|
|
|
|
2012-10-07 21:05:12 +02:00
|
|
|
$(eval $(autotools-package))
|