diff --git a/repos/libports/recipes/api/pcsc-lite/content.mk b/repos/libports/recipes/api/pcsc-lite/content.mk new file mode 100644 index 0000000000..63e9fb9ace --- /dev/null +++ b/repos/libports/recipes/api/pcsc-lite/content.mk @@ -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 $@ diff --git a/repos/libports/recipes/api/pcsc-lite/hash b/repos/libports/recipes/api/pcsc-lite/hash new file mode 100644 index 0000000000..507fb5c6f4 --- /dev/null +++ b/repos/libports/recipes/api/pcsc-lite/hash @@ -0,0 +1 @@ +2022-06-15 f2d91225517ac072d1a539515f1970507cf16519 diff --git a/repos/libports/recipes/src/pcsc-lite/api b/repos/libports/recipes/src/pcsc-lite/api new file mode 100644 index 0000000000..5d61c52aeb --- /dev/null +++ b/repos/libports/recipes/src/pcsc-lite/api @@ -0,0 +1 @@ +pcsc-lite diff --git a/repos/libports/recipes/src/pcsc-lite/content.mk b/repos/libports/recipes/src/pcsc-lite/content.mk new file mode 100644 index 0000000000..9d080989d5 --- /dev/null +++ b/repos/libports/recipes/src/pcsc-lite/content.mk @@ -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 >> $@ diff --git a/repos/libports/recipes/src/pcsc-lite/hash b/repos/libports/recipes/src/pcsc-lite/hash new file mode 100644 index 0000000000..8be667410b --- /dev/null +++ b/repos/libports/recipes/src/pcsc-lite/hash @@ -0,0 +1 @@ +2022-06-20-h 540ad8c43f8a0643107072ae2cb7585f253dd37f diff --git a/repos/libports/recipes/src/pcsc-lite/used_apis b/repos/libports/recipes/src/pcsc-lite/used_apis new file mode 100644 index 0000000000..92e540435e --- /dev/null +++ b/repos/libports/recipes/src/pcsc-lite/used_apis @@ -0,0 +1,3 @@ +base +libc +libusb