From f8cb5e5abe71e85e469386f7377675fc00ab1400 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Tue, 21 Mar 2017 14:40:27 +0100 Subject: [PATCH] pkg: minmea: initial import of minmea NMEA GPS parser library --- pkg/minmea/Makefile | 12 ++++++++++++ pkg/minmea/Makefile.include | 1 + pkg/minmea/Makefile.minmea | 10 ++++++++++ pkg/minmea/README.md | 11 +++++++++++ 4 files changed, 34 insertions(+) create mode 100644 pkg/minmea/Makefile create mode 100644 pkg/minmea/Makefile.include create mode 100644 pkg/minmea/Makefile.minmea create mode 100644 pkg/minmea/README.md diff --git a/pkg/minmea/Makefile b/pkg/minmea/Makefile new file mode 100644 index 0000000000..96a0dda7d0 --- /dev/null +++ b/pkg/minmea/Makefile @@ -0,0 +1,12 @@ +PKG_NAME=minmea +PKG_URL=https://github.com/kaspar030/minmea +PKG_VERSION=f3253039a32af98924b0606316a83c8129dff4d4 +PKG_LICENSE=WTFPL + +.PHONY: all + +all: git-download + @cp Makefile.${PKG_NAME} $(PKG_BUILDDIR)/Makefile + "$(MAKE)" -C $(PKG_BUILDDIR) + +include $(RIOTBASE)/pkg/pkg.mk diff --git a/pkg/minmea/Makefile.include b/pkg/minmea/Makefile.include new file mode 100644 index 0000000000..5b2fdf0c31 --- /dev/null +++ b/pkg/minmea/Makefile.include @@ -0,0 +1 @@ +INCLUDES += -I$(PKGDIRBASE)/minmea diff --git a/pkg/minmea/Makefile.minmea b/pkg/minmea/Makefile.minmea new file mode 100644 index 0000000000..0c9989b558 --- /dev/null +++ b/pkg/minmea/Makefile.minmea @@ -0,0 +1,10 @@ +MODULE=minmea + +CFLAGS += -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_DARWIN_C_SOURCE + +# see minmea README.md +CFLAGS += -Dtimegm=mktime + +SRC := minmea.c + +include $(RIOTBASE)/Makefile.base diff --git a/pkg/minmea/README.md b/pkg/minmea/README.md new file mode 100644 index 0000000000..f4285d7a28 --- /dev/null +++ b/pkg/minmea/README.md @@ -0,0 +1,11 @@ +# Introduction + +"Minmea is a minimalistic GPS parser library written in pure C intended for +resource-constrained platforms, especially microcontrollers and other embedded +systems." + +See https://github.com/cloudyourcar/minmea for more information. + +# License + +Licensed under WTFPL.