From c8e74a665722afafea5c497e13d97b82a8bec21d Mon Sep 17 00:00:00 2001
From: Olivier Stasse <olivier.stasse@gmail.com>
Date: Thu, 28 Jan 2016 15:19:02 +0100
Subject: [PATCH] [wip/sot-hrp2] Add depend.mk + Fix category

---
 sot-hrp2/Makefile  |  2 +-
 sot-hrp2/depend.mk | 27 +++++++++++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletion(-)
 create mode 100644 sot-hrp2/depend.mk

diff --git a/sot-hrp2/Makefile b/sot-hrp2/Makefile
index 93bb4760..76bae221 100644
--- a/sot-hrp2/Makefile
+++ b/sot-hrp2/Makefile
@@ -5,7 +5,7 @@ DISTNAME=		sot-hrp2-1.1.2
 MASTER_SITES=		${MASTER_SITE_OPENROBOTS:=sot-hrp2/}
 MASTER_REPOSITORY=	${MASTER_REPOSITORY_GITHUB}stack-of-tasks/sot-hrp2
 
-CATEGORIES=		robots
+CATEGORIES=		wip
 COMMENT=		This packages provides a generic Stack Of Tasks library for the humanoid robot HRP-2.
 LICENSE=		gnu-lgpl-v3
 MAINTAINER=		hpp@laas.fr
diff --git a/sot-hrp2/depend.mk b/sot-hrp2/depend.mk
new file mode 100644
index 00000000..91646969
--- /dev/null
+++ b/sot-hrp2/depend.mk
@@ -0,0 +1,27 @@
+# robotpkg depend.mk for:	wip/sot-hrp2
+# Created:			Olivier Stasse on Thu, 28th Jan 2016
+#
+
+DEPEND_DEPTH:=		${DEPEND_DEPTH}+
+SOT_HRP2_DEPEND_MK:=	${SOT_HRP2_DEPEND_MK}+
+
+ifeq (+,$(DEPEND_DEPTH))
+DEPEND_PKG+=		sot-hrp2
+endif
+
+ifeq (+,$(SOTH_DEPEND_MK)) # -------------------------------------------
+
+PREFER.sot-hrp2?=	robotpkg
+
+SYSTEM_SEARCH.sot-hrp2=\
+	include/sot-hrp2/config.h				\
+	'lib/pkgconfig/sot-hrp2.pc:/Version/s/[^0-9.]//gp'
+
+DEPEND_USE+=		sot-hrp2
+
+DEPEND_ABI.sot-hrp2?=	sot-hrp2>=1.0.1
+DEPEND_DIR.sot-hrp2?=	../../wip/sot-hrp2
+
+endif # SOT_HRP2_DEPEND_MK -------------------------------------------------
+
+DEPEND_DEPTH:=		${DEPEND_DEPTH:+=}
-- 
GitLab