openmamba logo
Distribuzione GNU/Linux
distribuzione community wiki forum anomalie eventi prodotti
software   comunità wiki forum anomalie eventi prodotti
packages libwebcam-0.2.0-uvcdynctrl_no_debian_packaging.patch
      Pagine: < 1 >  SCARICA      
--- libwebcam-0.2.0/uvcdynctrl/CMakeLists.txt	2010-02-22 23:25:35.000000000 +0100
+++ libwebcam-0.2.0/uvcdynctrl/CMakeLists.txt-openmamba	2010-03-16 21:34:41.000000000 +0100
@@ -119,39 +119,10 @@
 )
 
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
 #
 # Packaging
 #
 
-# Prerequisites
-execute_process (
-	COMMAND				/usr/bin/dpkg --print-architecture
-	OUTPUT_VARIABLE		CPACK_DEBIAN_PACKAGE_ARCHITECTURE
-	RESULT_VARIABLE		EXECUTE_RESULT
-	OUTPUT_STRIP_TRAILING_WHITESPACE
-	ERROR_QUIET
-)
-if (EXECUTE_RESULT)
-	message(FATAL_ERROR "Unable to determine current dpkg architecture: ${EXECUTE_RESULT}")
-else (EXECUTE_RESULT)
-	message("** Debian package architecture: ${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")
-endif (EXECUTE_RESULT)
-
 # Generic
 set (CPACK_GENERATOR					"TBZ2;DEB")
 set (CPACK_PACKAGE_NAME					"uvcdynctrl")
@@ -170,36 +141,3 @@
 # file and running 'dpkg-shlibdeps -O debian/usr/bin/uvcdynctrl'.
 set (CPACK_DEBIAN_PACKAGE_MAINTAINER	"Martin Rubli <martin_rubli@...>")
 set (CPACK_DEBIAN_PACKAGE_DEPENDS		"libwebcam (>= 0.2), libc6 (>= 2.7)")
-
-# Instead of actually packing we just generate a CPack configuration file. The top level
-# README file explains how to package the project.
-if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../common/build/CPackConfig.cmake.conf")
-	message ("** Creating CPack configuration file for ${CPACK_PACKAGE_NAME} ...")
-	configure_file (
-		${CMAKE_CURRENT_SOURCE_DIR}/../common/build/CPackConfig.cmake.conf
-		${CMAKE_CURRENT_BINARY_DIR}/CPackConfig.cmake
-	)
-endif (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../common/build/CPackConfig.cmake.conf")
-
-# Source packaging
-# Note that we only enable source packaging if we're not building from the top-level
-# directory. The reason for this is that source packaging at the top-level includes
-# the entire tree by default and exclude patterns are not suitable in our case.
-if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
-	set (CPACK_SOURCE_GENERATOR				"TBZ2")
-	set (CPACK_SOURCE_PACKAGE_FILE_NAME		"${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
-
-	# The following is a list of semicolon separate regexp patterns of files and
-	# directories to ignore. Regexp anchors like ^ and $ can be used but because
-	# CPack matches entire paths ^ won't work for file matching. We can use / on
-	# the left-hand side instead. Also note that backslashes need to be double-
-	# escaped (i.e. \\\\). Therefore Perl's \. to match a dot becomes \\\\. here.
-	set (CPACK_SOURCE_IGNORE_FILES
-		"/\\\\.svn/"								# Subversion directories
-		"/\\\\..+$"									# Hidden files and directories
-		"build"										# Build directories
-		"tags;/doxygen-output"						# Misc
-	)
-
-	include (CPack)
-endif (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})