<commit_before>PKG_NAME=relic
PKG_URL=https://github.com/relic-toolkit/relic.git
PKG_VERSION=0b0442a8218df8d309266923f2dd5b9ae3b318ce
PKG_LICENSE=LGPL-2.1

include $(RIOTBASE)/pkg/pkg.mk

.PHONY: ..cmake_version_supported

RELIC_BUILD_DIR = $(PKG_BUILDDIR)/build
RELIC_SOURCE_DIR = $(PKG_BUILDDIR)

CMAKE_MINIMAL_VERSION = 3.6.0

CFLAGS += -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-function -Wno-newline-eof

TOOLCHAIN_FILE = $(RELIC_SOURCE_DIR)/xcompile-toolchain.cmake

all: $(BINDIR)/$(PKG_NAME).a

$(BINDIR)/$(PKG_NAME).a: $(RELIC_BUILD_DIR)/lib/librelic_s.a<commit_msg>pkg/relic: add custom prepared target<commit_after>PKG_NAME=relic
PKG_URL=https://github.com/relic-toolkit/relic.git
PKG_VERSION=0b0442a8218df8d309266923f2dd5b9ae3b318ce
PKG_LICENSE=LGPL-2.1

PKG_CUSTOM_PREPARED = $(PKGDIRBASE)/$(PKG_NAME)/build/include

include $(RIOTBASE)/pkg/pkg.mk

.PHONY: ..cmake_version_supported

RELIC_BUILD_DIR = $(PKG_BUILDDIR)/build
RELIC_SOURCE_DIR = $(PKG_BUILDDIR)

CMAKE_MINIMAL_VERSION = 3.6.0

CFLAGS += -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-function -Wno-newline-eof

TOOLCHAIN_FILE = $(RELIC_SOURCE_DIR)/xcompile-toolchain.cmake

all: $(BINDIR)/$(PKG_NAME).a

$(PKG_CUSTOM_PREPARED):
	$(info [INFO] Relic: create include directory in build)
	mkdir -p $(PKG_CUSTOM_PREPARED)

$(BINDIR)/$(PKG_NAME).a: $(RELIC_BUILD_DIR)/lib/librelic_s.a
{'fraction_non_alphanumeric': 0.14181286549707603, 'fraction_numerical': 0.04532163742690058, 'mean_word_length': 6.56353591160221, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2926291', 'n_tokens_mistral': 640, 'n_tokens_neox': 617, 'n_words': 65}