Commit da23b2d0 authored by Rohit Yadav's avatar Rohit Yadav Committed by Hugo Beauzée-Luyssen

Automatically set architecture, force package name and install prefix

Signed-off-by: default avatarHugo Beauzée-Luyssen <beauze.h@gmail.com>
parent efe7a8e6
......@@ -53,6 +53,7 @@ ENDIF(WIN32)
IF (UNIX)
SET(WITH_PROFILING FALSE CACHE BOOL "Build with profiling support" )
SET(CMAKE_INSTALL_PREFIX /usr)
ENDIF(UNIX)
SET(WITH_GUI TRUE CACHE BOOL "Enable the VLMC's GUI")
......@@ -158,6 +159,8 @@ INCLUDE(InstallRequiredSystemLibraries)
SET(CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME})
SET(CPACK_PACKAGE_NAME ${PROJECT_NAME_SHORT})
SET(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
# Force package name
SET(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME})
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "VideoLan Movie Creator")
SET(CPACK_PACKAGE_DESCRIPTION
"VLMC \n VideoLAN Movie Creator is a cross-platform, non-linear video editing software based on the VLC Media Player.")
......@@ -195,9 +198,6 @@ INCLUDE ( ${CMAKE_MODULE_PATH}/DpkgBuild.cmake )
IF ( DPKG_FOUND )
SET(CPACK_GENERATOR "DEB")
SET(CPACK_SET_DESTDIR TRUE)
SET(CPACK_DEBIAN_PACKAGE_DESCRIPTION ${CPACK_PACKAGE_DESCRIPTION})
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${CPACK_PACKAGE_DESCRIPTION_SUMMARY})
SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE i386) #change to your architecture here
# FIXME: Check stuff: libvlc2 etc. in future as VLC 1.1+ releases
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt4-gui ( >= 4.6 ), libqt4-network ( >= 4.6 ), libqt4-svg ( >= 4.6 ), libqt4-xml ( >= 4.6 )")
ENDIF ( DPKG_FOUND )
......@@ -205,7 +205,6 @@ ENDIF ( DPKG_FOUND )
#Mac
IF( APPLE )
SET(CPACK_GENERATOR "DragNDrop")
SET(CPACK_PACKAGE_FILE_NAME "VLMC")
#Libraries are bundled directly
SET(CPACK_COMPONENT_LIBRARIES_HIDDEN TRUE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment