[Jderobot-admin] jderobot-r951 - in trunk: . debian scripts scripts/cmake

rocapal en jderobot.org rocapal en jderobot.org
Mar Jul 23 15:58:40 CEST 2013


Author: rocapal
Date: 2013-07-23 15:57:40 +0200 (Tue, 23 Jul 2013)
New Revision: 951

Added:
   trunk/scripts/cmake/
   trunk/scripts/cmake/postinst
   trunk/scripts/cmake/postrm
Modified:
   trunk/CMakeLists.txt
   trunk/debian/changelog
Log:
added creation process of debian packages with cmake


Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt	2013-07-22 10:01:07 UTC (rev 950)
+++ trunk/CMakeLists.txt	2013-07-23 13:57:40 UTC (rev 951)
@@ -1,4 +1,4 @@
-project (JDEROBOT)
+project (jderobot)
 
 cmake_minimum_required(VERSION 2.8)
 
@@ -21,21 +21,27 @@
 
 
 
-SET( COMPONENTS calibrator  calibratorKinect  naooperator         basic_component		         
-		                    opencvdemo
-					cameraserver         introrob            
-		cameraview			recorder
-		cameraview_icestorm  kinectViewer        
+SET( COMPONENTS calibrator  
+		calibratorKinect
+		naooperator         
+		basic_component	   
+		opencvdemo
+		cameraserver         
+		introrob            
+		cameraview
+		recorder
+		cameraview_icestorm
+		kinectViewer        
 		wiimoteClient
-		       colortuner replayController basic_server
-
-
+		colortuner 
+		replayController 
+		basic_server
 		
 ) #Componentes que forman JDErobot
 
 IF( Gearbox_INCLUDE_DIR ) 
 	#librerías que dependen de gearbox
-	SET( COMPONENTS   ${COMPONENTS}  bgfglab replayer wiimoteServer)
+	SET( COMPONENTS  ${COMPONENTS}  bgfglab replayer wiimoteServer)
 ENDIF()
 
 
@@ -203,3 +209,39 @@
 add_custom_target(uninstall
     COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
 
+#
+# Deb packages
+#
+
+
+include (InstallRequiredSystemLibraries)
+SET (CPACK_GENERATOR "DEB")
+SET (CPACK_SOURCE_GENERATOR TGZ)
+SET (CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
+SET (CPACK_SET_DESTDIR "on")
+SET (CPACK_PACKAGING_INSTALL_PREFIX "/usr/local")
+
+
+SET (VERSION 5.2.0-1)
+# CPack version numbers for release tarball name.
+SET (CPACK_PACKAGE_VERSION_MAJOR 5)
+SET (CPACK_PACKAGE_VERSION_MINOR 2)
+SET (CPACK_PACKAGE_VERSION_PATCH 0)
+SET ($ {VERSION} CPACK_DEBIAN_PACKAGE_VERSION)
+
+SET (CPACK_DEBIAN_PACKAGE_PRIORITY "extra")
+SET (CPACK_DEBIAN_PACKAGE_SECTION "net")
+SET (CPACK_DEBIAN_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR})
+
+set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
+    "${CMAKE_CURRENT_SOURCE_DIR}/scripts/cmake/postinst"
+    "${CMAKE_CURRENT_SOURCE_DIR}/scripts/cmake/postrm")
+
+SET (CPACK_PACKAGE_DESCRIPTION_SUMMARY "jderobot is a software development suite for robotics applications.")
+SET (CPACK_PACKAGE_DESCRIPTION "jderobot is a software development suite for robotics applications, written in C++ language. It provides a programming environment where the robot control program is made up of a collection of several concurrent asynchronous threads named schemas. It is based on JDE cognitive architecture for autonomous robots.")
+
+SET (CPACK_PACKAGE_CONTACT "Roberto Calvo <rocapal en gsyc.urjc.es>")
+SET (CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}_${VERSION}_${CPACK_DEBIAN_ARCHITECTURE}")
+
+SET (CPACK_COMPONENTS_ALL Libraries ApplicationData)
+include (CPack Documentation)

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2013-07-22 10:01:07 UTC (rev 950)
+++ trunk/debian/changelog	2013-07-23 13:57:40 UTC (rev 951)
@@ -1,3 +1,21 @@
+jderobot (5.2.0-1) unstable; urgency=low
+
+  * Added cmake compilation process
+  * New structure libs and components
+  * Added openNi component
+  * Added calibrator kinnect component
+  * Added recorder/replayer component
+  * Added visualHFSM component
+  * Added wiimote component
+  * Added bgfgsegmentation lib
+  * Added geometry lib
+  * Added parallelIce lib
+  * Added vision lib
+  * Updated ICE interfaces
+  * Added some examples
+
+ -- Roberto Calvo <rocapal en gsyc.urjc.es>  Tue, 23 Jul 2013 11:44:14 +0200
+
 jderobot (5.0.4-1) unstable; urgency=low
 
   * Bug gazeboserver fixed

Added: trunk/scripts/cmake/postinst
===================================================================
--- trunk/scripts/cmake/postinst	                        (rev 0)
+++ trunk/scripts/cmake/postinst	2013-07-23 13:57:40 UTC (rev 951)
@@ -0,0 +1,5 @@
+#!/bin/sh
+# Extract CMake macros during configure 
+
+echo "/usr/local/lib/jderobot/" > /etc/ld.so.conf.d/jderobot.conf
+ldconfig

Added: trunk/scripts/cmake/postrm
===================================================================
--- trunk/scripts/cmake/postrm	                        (rev 0)
+++ trunk/scripts/cmake/postrm	2013-07-23 13:57:40 UTC (rev 951)
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+rm -f /etc/ld.so.conf.d/jderobot.conf
+ldconfig



More information about the Jderobot-admin mailing list