pcsc-lite: src and api recipe

Ref #4582
This commit is contained in:
Martin Stein 2022-06-22 14:30:08 +02:00 committed by Christian Helmuth
parent 8f228e3035
commit 3286d37c64
6 changed files with 95 additions and 0 deletions

View File

@ -0,0 +1,19 @@
MIRROR_FROM_REP_DIR := lib/import/import-pcsc-lite.mk
content: $(MIRROR_FROM_REP_DIR)
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/pcsc-lite)
content: include
include:
mkdir -p $@
cp -r $(PORT_DIR)/include/PCSC/* $@
content: LICENSE
LICENSE:
cp $(PORT_DIR)/src/lib/pcsc-lite/COPYING $@

View File

@ -0,0 +1 @@
2022-06-15 f2d91225517ac072d1a539515f1970507cf16519

View File

@ -0,0 +1 @@
pcsc-lite

View File

@ -0,0 +1,70 @@
CCID_DIR := $(call port_dir,$(REP_DIR)/ports/ccid)
PCSC_DIR := $(call port_dir,$(REP_DIR)/ports/pcsc-lite)
MIRROR_FROM_CCID_DIR := \
$(shell \
cd $(CCID_DIR); \
find src/lib/ccid -type f | \
grep -v "\.git")
MIRROR_FROM_PCSC_DIR := \
$(shell cd $(PCSC_DIR); find include -type f) \
$(shell \
cd $(PCSC_DIR); \
find src/lib/pcsc-lite -type f | \
grep -v "\.git") \
MIRROR_FROM_REP_DIR += \
lib/mk/pcsc-lite.mk \
lib/mk/ccid.mk \
$(shell cd $(REP_DIR) && find src/lib/pcsc-lite -type f) \
$(shell cd $(REP_DIR) && find src/lib/ccid -type f)
MIRROR_FROM_CCID_DIR := \
$(filter-out $(MIRROR_FROM_REP_DIR), $(MIRROR_FROM_CCID_DIR))
MIRROR_FROM_PCSC_DIR := \
$(filter-out $(MIRROR_FROM_REP_DIR), $(MIRROR_FROM_PCSC_DIR))
content: $(MIRROR_FROM_CCID_DIR)
$(MIRROR_FROM_CCID_DIR):
mkdir -p $(dir $@)
cp -r $(CCID_DIR)/$@ $(dir $@)
content: $(MIRROR_FROM_PCSC_DIR)
$(MIRROR_FROM_PCSC_DIR):
mkdir -p $(dir $@)
cp -r $(PCSC_DIR)/$@ $(dir $@)
content: $(MIRROR_FROM_REP_DIR)
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
content: src/lib/pcsc-lite/target.mk
src/lib/pcsc-lite/target.mk:
mkdir -p $(dir $@)
echo "LIBS = pcsc-lite" > $@
content: src/lib/ccid/target.mk
src/lib/ccid/target.mk:
mkdir -p $(dir $@)
echo "LIBS = ccid" > $@
content: LICENSE
LICENSE:
echo "" >> $@
echo "ccid library" >> $@
echo "############" >> $@
echo "" >> $@
cat $(CCID_DIR)/src/lib/ccid/COPYING >> $@
echo "" >> $@
echo "pcsc-lite library" >> $@
echo "#################" >> $@
echo "" >> $@
cat $(PCSC_DIR)/src/lib/pcsc-lite/COPYING >> $@

View File

@ -0,0 +1 @@
2022-06-20-h 540ad8c43f8a0643107072ae2cb7585f253dd37f

View File

@ -0,0 +1,3 @@
base
libc
libusb