diff --git a/pkg/libbase58/Makefile b/pkg/libbase58/Makefile new file mode 100644 index 0000000000..bbe4827606 --- /dev/null +++ b/pkg/libbase58/Makefile @@ -0,0 +1,11 @@ +PKG_NAME=libbase58 +PKG_URL=https://github.com/bitcoin/libbase58 +PKG_VERSION=d7591398443987e84d19833d86634c6ffe8b0796 +PKG_LICENSE=MIT + +include $(RIOTBASE)/pkg/pkg.mk + +.PHONY: all + +all: + "$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME) diff --git a/pkg/libbase58/Makefile.dep b/pkg/libbase58/Makefile.dep new file mode 100644 index 0000000000..ec9bf57823 --- /dev/null +++ b/pkg/libbase58/Makefile.dep @@ -0,0 +1 @@ +USEMODULE += posix_headers diff --git a/pkg/libbase58/Makefile.include b/pkg/libbase58/Makefile.include new file mode 100644 index 0000000000..946f8aacca --- /dev/null +++ b/pkg/libbase58/Makefile.include @@ -0,0 +1 @@ +INCLUDES += -I$(PKGDIRBASE)/libbase58 diff --git a/pkg/libbase58/Makefile.libbase58 b/pkg/libbase58/Makefile.libbase58 new file mode 100644 index 0000000000..1bad734ec4 --- /dev/null +++ b/pkg/libbase58/Makefile.libbase58 @@ -0,0 +1,5 @@ +SRC := base58.c + +CFLAGS += -Wno-unused-parameter + +include $(RIOTBASE)/Makefile.base diff --git a/pkg/libbase58/doc.txt b/pkg/libbase58/doc.txt new file mode 100644 index 0000000000..8be8d939ce --- /dev/null +++ b/pkg/libbase58/doc.txt @@ -0,0 +1,8 @@ +/** + * @defgroup pkg_libbase58 JSON parser library + * @ingroup pkg + * @ingroup sys_serialization + * @brief C library for Bitcoin's base58 encoding + * + * @see https://github.com/bitcoin/libbase58 + */