--- libwebcam/CMakeLists.txt.orig 2010-04-29 13:29:06.000000000 +0200 +++ libwebcam/CMakeLists.txt 2010-04-29 13:29:19.000000000 +0200 @@ -75,74 +75,3 @@ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT LIBWEBCAM ) - - - -# -# 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 "libwebcam") -set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Webcam utility library") -set (CPACK_PACKAGE_DESCRIPTION "Provides camera, control, and frame format enumeration and simplifies camera control access. Also allows for configuring the Linux UVC driver's dynamic control mechanism.") -set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING.LESSER") -set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README") -set (CPACK_PACKAGE_VENDOR "Logitech") -set (CPACK_PACKAGE_VERSION "0.2.0") -set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}") - -# Debian -# The dependencies are obtained by extracting the (dependency lacking) .deb package -# into a directory called 'debian', adding a fake "Source: ..." line to the debian/control -# file and running 'dpkg-shlibdeps -O debian/usr/lib/libwebcam.so'. -set (CPACK_DEBIAN_PACKAGE_MAINTAINER "Martin Rubli ") -set (CPACK_DEBIAN_PACKAGE_DEPENDS "libxml2 (>= 2.6.27), libc6 (>= 2.4)") - -# 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}) --- uvcdynctrl/CMakeLists.txt.orig 2010-04-29 13:29:29.000000000 +0200 +++ uvcdynctrl/CMakeLists.txt 2010-04-29 13:29:37.000000000 +0200 @@ -96,75 +96,3 @@ DESTINATION /etc/udev PATTERN ".svn" EXCLUDE ) - - - -# -# 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") -set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Manage dynamic controls in uvcvideo") -set (CPACK_PACKAGE_DESCRIPTION "Command line tool to obtain and change camera controls and manage dynamic controls.") -set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING") -set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README") -set (CPACK_PACKAGE_VENDOR "Logitech") -set (CPACK_PACKAGE_VERSION "${UVCDYNCTRL_VERSION}") -set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}") -set (CPACK_SET_DESTDIR "ON") # Necessary because of the absolute install paths - -# Debian -# The dependencies are obtained by extracting the (dependency lacking) .deb package -# into a directory called 'debian', adding a fake "Source: ..." line to the debian/control -# file and running 'dpkg-shlibdeps -O debian/usr/bin/uvcdynctrl'. -set (CPACK_DEBIAN_PACKAGE_MAINTAINER "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})