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