52c524c733
Upstream moved to https://muscle.apdu.fr/ according to
http://pcsclite.alioth.debian.org/, updated _SITE and Config.in.
Added license hash.
Added optional systemd support available since upstream commit
30e10951f8 (diff-67e997bcfdac55191033d57a16d1408a)
We need to add systemd support in this patch because omitting it will
cause an error during configure:
checking for LIBSYSTEMD... no
configure: error: install libsystemd-dev or use --disable-libsystemd
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
54 lines
1.5 KiB
Makefile
54 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# pcsc-lite
|
|
#
|
|
################################################################################
|
|
|
|
PCSC_LITE_VERSION = 1.8.23
|
|
PCSC_LITE_SOURCE = pcsc-lite-$(PCSC_LITE_VERSION).tar.bz2
|
|
PCSC_LITE_SITE = https://pcsclite.apdu.fr/files
|
|
PCSC_LITE_INSTALL_STAGING = YES
|
|
PCSC_LITE_DEPENDENCIES = host-pkgconf
|
|
PCSC_LITE_LICENSE = BSD-3-Clause
|
|
PCSC_LITE_LICENSE_FILES = COPYING
|
|
PCSC_LITE_AUTORECONF = YES
|
|
|
|
# - libudev and libusb are optional
|
|
# - libudev and libusb can't be used together
|
|
# - libudev has a priority over libusb
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
PCSC_LITE_CONF_OPTS += --enable-libudev --disable-libusb
|
|
PCSC_LITE_DEPENDENCIES += udev
|
|
else
|
|
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
|
PCSC_LITE_CONF_OPTS += --enable-libusb --disable-libudev
|
|
PCSC_LITE_DEPENDENCIES += libusb
|
|
else
|
|
PCSC_LITE_CONF_OPTS += --disable-libusb --disable-libudev
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
PCSC_LITE_CONF_OPTS += --enable-libsystemd
|
|
PCSC_LITE_DEPENDENCIES += systemd
|
|
else
|
|
PCSC_LITE_CONF_OPTS += --disable-libsystemd
|
|
endif
|
|
|
|
ifeq ($(PACKAGE_PCSC_LITE_DEBUGATR),y)
|
|
PCSC_LITE_CONF_OPTS += --enable-debugatr
|
|
endif
|
|
|
|
ifeq ($(PACKAGE_PCSC_LITE_EMBEDDED),y)
|
|
PCSC_LITE_CONF_OPTS += --enable-embedded
|
|
endif
|
|
|
|
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
|
|
|
|
$(eval $(autotools-package))
|