From a547ce3178d19c6b5624cbc05294992ed68dd6d9 Mon Sep 17 00:00:00 2001
From: Olivier Stasse <ostasse@laas.fr>
Date: Wed, 11 Jul 2018 05:18:40 +0200
Subject: [PATCH] [wip/roscontrol-sot] Add detection of pal distro.

---
 roscontrol-sot/Makefile | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/roscontrol-sot/Makefile b/roscontrol-sot/Makefile
index 02fc406d..f5368ef7 100644
--- a/roscontrol-sot/Makefile
+++ b/roscontrol-sot/Makefile
@@ -8,7 +8,7 @@ ROSNAME=		$(subst -,_,${PKGBASE})
 DISTNAME=		${ROSNAME}-${VERSION}
 WRKSRC=			${WRKDIR}/${ROSNAME}-${VERSION}
 DIST_SUBDIR=		${PKGBASE}
-PKGREVISION=		2
+PKGREVISION=		3
 
 CATEGORIES=		wip
 #MASTER_SITES=		${MASTER_SITE_OPENROBOTS:=roscontrol_sot/}
@@ -51,13 +51,15 @@ include ../../wip/py-dynamic-graph-v3/depend.mk
 include ../../wip/sot-core-v3/depend.mk
 include ../../wip/sot-dynamic-pinocchio-v3/depend.mk
 include ../../mk/robotpkg.prefs.mk
+include ../../wip/sysdep/pal-distro.mk
 include ../../wip/pal-hardware-interfaces/depend.mk
-include ../../wip/prf-ros-control/depend.mk
-#ifeq (Ubuntu,${OPSYS})
-#  ifneq (,$(filter 16.04,${OS_VERSION}))
-#    include ../../wip/prf-ros-controllers/depend.mk
-#  endif
-#endif
+
+ifeq (palerbium,${OPSYS})
+  include ../../motion/ros-control/depend.mk
+else
+  include ../../wip/prf-ros-control/depend.mk
+endif
+
 include ../../devel/ros-roscpp-core/depend.mk
 include ../../devel/ros-catkin/depend.mk
 include ../../pkgtools/pkg-config/depend.mk
-- 
GitLab