From 41fa0537fd23447e6fb4ea6cf8e0b98cd21ea97c Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Wed, 7 Sep 2016 19:47:38 +0200 Subject: [PATCH] port of Crypto++ http://www.cryptopp.com/ Issue #45 --- lib/import/import-cryptopp.mk | 2 ++ lib/mk/cryptopp.mk | 13 +++++++++++++ ports/cryptopp.hash | 1 + ports/cryptopp.port | 10 ++++++++++ 4 files changed, 26 insertions(+) create mode 100644 lib/import/import-cryptopp.mk create mode 100644 lib/mk/cryptopp.mk create mode 100644 ports/cryptopp.hash create mode 100644 ports/cryptopp.port diff --git a/lib/import/import-cryptopp.mk b/lib/import/import-cryptopp.mk new file mode 100644 index 0000000..098d6d7 --- /dev/null +++ b/lib/import/import-cryptopp.mk @@ -0,0 +1,2 @@ +INC_DIR += $(call select_from_ports,cryptopp)/include/cryptopp + diff --git a/lib/mk/cryptopp.mk b/lib/mk/cryptopp.mk new file mode 100644 index 0000000..dc116b0 --- /dev/null +++ b/lib/mk/cryptopp.mk @@ -0,0 +1,13 @@ +CRYPTOPP_SRC_DIR = $(call select_from_ports,cryptopp)/src/lib/cryptopp + +LIBS += stdcxx + +CRYPTOPP_SRC_CC := $(notdir $(wildcard $(CRYPTOPP_SRC_DIR)/*.cpp)) + +CRYPTOPP_FILTER = bench.cpp bench2.cpp test.cpp validat1.cpp + +SRC_CC := $(filter-out $(CRYPTOPP_FILTER),$(CRYPTOPP_SRC_CC)) + +CC_WARN += -Wno-delete-non-virtual-dtor + +vpath %.cpp $(CRYPTOPP_SRC_DIR) diff --git a/ports/cryptopp.hash b/ports/cryptopp.hash new file mode 100644 index 0000000..656bd27 --- /dev/null +++ b/ports/cryptopp.hash @@ -0,0 +1 @@ +d0158e4c08b079db77e4eb63198253865598af89 diff --git a/ports/cryptopp.port b/ports/cryptopp.port new file mode 100644 index 0000000..de327f4 --- /dev/null +++ b/ports/cryptopp.port @@ -0,0 +1,10 @@ +LICENSE := boost +VERSION := 5.6.3 +DOWNLOADS := cryptopp.archive + +URL(cryptopp) := http://www.cryptopp.com/cryptopp563.zip +SHA(cryptopp) := f2fcd1fbf884bed70a69b565970ecd8b33a68cc4 +DIR(cryptopp) := src/lib/cryptopp + +DIRS := include/cryptopp +DIR_CONTENT(include/cryptopp) := src/lib/cryptopp/*.h