From 39ccd649655406ba07bfc62a4e93f3a74d4d0690 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cenk=20G=C3=BCndo=C4=9Fan?= <mail@cgundogan.de>
Date: Thu, 6 Oct 2016 15:53:38 +0200
Subject: [PATCH] pkg: ndn-riot: initial import of ndn-riot pkg

---
 Makefile.dep                  |  8 ++++++++
 pkg/ndn-riot/Makefile         | 11 +++++++++++
 pkg/ndn-riot/Makefile.include |  2 ++
 3 files changed, 21 insertions(+)
 create mode 100644 pkg/ndn-riot/Makefile
 create mode 100644 pkg/ndn-riot/Makefile.include

diff --git a/Makefile.dep b/Makefile.dep
index 6fbd8a1e6f..ea5924cfab 100644
--- a/Makefile.dep
+++ b/Makefile.dep
@@ -14,6 +14,14 @@ ifneq (,$(filter cbor_ctime,$(USEMODULE)))
   endif
 endif
 
+ifneq (,$(filter ndn-riot,$(USEPKG)))
+  USEMODULE += gnrc
+  USEMODULE += xtimer
+  USEMODULE += random
+  USEMODULE += hashes
+  USEPKG += micro-ecc
+endif
+
 ifneq (,$(filter csma_sender,$(USEMODULE)))
   USEMODULE += random
   USEMODULE += xtimer
diff --git a/pkg/ndn-riot/Makefile b/pkg/ndn-riot/Makefile
new file mode 100644
index 0000000000..54c04bba88
--- /dev/null
+++ b/pkg/ndn-riot/Makefile
@@ -0,0 +1,11 @@
+PKG_NAME=ndn-riot
+PKG_URL=https://github.com/named-data-iot/ndn-riot
+PKG_VERSION=34c5eb8adf198049f0a56048825b505c561a8874
+PKG_LICENSE=LGPLv2.1
+
+.PHONY: all
+
+all: git-download
+	"$(MAKE)" -C $(PKG_BUILDDIR)
+
+include $(RIOTBASE)/pkg/pkg.mk
diff --git a/pkg/ndn-riot/Makefile.include b/pkg/ndn-riot/Makefile.include
new file mode 100644
index 0000000000..5b2eed6144
--- /dev/null
+++ b/pkg/ndn-riot/Makefile.include
@@ -0,0 +1,2 @@
+INCLUDES += -I$(PKGDIRBASE)
+USEMODULE += ndn-encoding
-- 
GitLab