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.