From af9e0f04828980ac826057ba41b5b2b4b03cc79f Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 5 Oct 2019 19:19:39 +0200 Subject: Linux: modifications to cmake files to use GTK3 on CentOS and change packages names --- src/Build/CMakeLists.txt | 16 ++++++++-------- src/Build/build_cmake_deb.sh | 0 src/Build/build_cmake_rpm.sh | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) mode change 100644 => 100755 src/Build/build_cmake_deb.sh mode change 100644 => 100755 src/Build/build_cmake_rpm.sh diff --git a/src/Build/CMakeLists.txt b/src/Build/CMakeLists.txt index c77a7b96..e59cf7ad 100644 --- a/src/Build/CMakeLists.txt +++ b/src/Build/CMakeLists.txt @@ -12,11 +12,11 @@ endif() # - Set PROJECT_NAME and CONFLICT_PACKAGE values if (NOGUI) - set( PROJECT_NAME "VeraCrypt-Console" ) - set( CONFLICT_PACKAGE "VeraCrypt" ) + set( PROJECT_NAME "veracrypt-console" ) + set( CONFLICT_PACKAGE "veracrypt" ) else() - set( PROJECT_NAME "VeraCrypt" ) - set( CONFLICT_PACKAGE "VeraCrypt-Console" ) + set( PROJECT_NAME "veracrypt" ) + set( CONFLICT_PACKAGE "veracrypt-console" ) endif() project(${PROJECT_NAME}) @@ -230,9 +230,9 @@ list(GET FULL_VERSION_LIST 0 VERSION) list(GET FULL_VERSION_LIST 1 RELEASE) string(REPLACE "-" "." RELEASE ${RELEASE}) -set( VENDOR "Idrix" ) +set( VENDOR "IDRIX" ) set( LICENSE "VeraCrypt License" ) -set( CONTACT "VeraCrypt " ) +set( CONTACT "VeraCrypt Team " ) set( CPACK_PACKAGE_DESCRIPTION_SUMMARY "Disk encryption with strong security based on TrueCrypt." ) set( CPACK_PACKAGE_DESCRIPTION "This package contains binaries for VeraCrypt, a disk encryption with strong security based on TrueCrypt." ) set( CPACK_PACKAGE_NAME ${PROJECT_NAME} ) @@ -293,7 +293,7 @@ elseif ( ( PLATFORM STREQUAL "CentOS" ) OR ( PLATFORM STREQUAL "openSUSE" ) ) set( CPACK_RPM_PACKAGE_AUTOREQ "no" ) # disable automatic shared libraries dependency detection (most of the time buggy) if ( PLATFORM STREQUAL "CentOS" ) - set( CPACK_RPM_PACKAGE_REQUIRES "fuse, device-mapper, gtk2") + set( CPACK_RPM_PACKAGE_REQUIRES "fuse, device-mapper, gtk3") elseif ( PLATFORM STREQUAL "openSUSE" ) # TODO endif() @@ -314,4 +314,4 @@ elseif ( ( PLATFORM STREQUAL "CentOS" ) OR ( PLATFORM STREQUAL "openSUSE" ) ) endif() -include(CPack) \ No newline at end of file +include(CPack) diff --git a/src/Build/build_cmake_deb.sh b/src/Build/build_cmake_deb.sh old mode 100644 new mode 100755 diff --git a/src/Build/build_cmake_rpm.sh b/src/Build/build_cmake_rpm.sh old mode 100644 new mode 100755 index ae9f0bfb..218d63c0 --- a/src/Build/build_cmake_rpm.sh +++ b/src/Build/build_cmake_rpm.sh @@ -23,7 +23,7 @@ echo "Building GUI version of VeraCrypt for RPM using wxWidgets static libraries # This will be the temporary wxWidgets directory export WX_BUILD_DIR=$PARENTDIR/wxBuildGui -make WXSTATIC=1 wxbuild || exit 1 +make WXSTATIC=1 WITHGTK3=1 wxbuild || exit 1 make WXSTATIC=1 clean || exit 1 make WXSTATIC=1 || exit 1 make WXSTATIC=1 install DESTDIR="$PARENTDIR/VeraCrypt_Setup/GUI" || exit 1 @@ -42,7 +42,7 @@ echo "Building console version of VeraCrypt for RPM using wxWidgets static libra # This will be the temporary wxWidgets directory export WX_BUILD_DIR=$PARENTDIR/wxBuildConsole -make WXSTATIC=1 NOGUI=1 wxbuild || exit 1 +make WXSTATIC=1 WITHGTK3=1 NOGUI=1 wxbuild || exit 1 make WXSTATIC=1 NOGUI=1 clean || exit 1 make WXSTATIC=1 NOGUI=1 || exit 1 make WXSTATIC=1 NOGUI=1 install DESTDIR="$PARENTDIR/VeraCrypt_Setup/Console" || exit 1 @@ -62,4 +62,4 @@ cmake -H$SCRIPTPATH -B$PARENTDIR/VeraCrypt_Packaging -DVERACRYPT_BUILD_DIR="$PAR cpack --config $PARENTDIR/VeraCrypt_Packaging/CPackConfig.cmake || exit 1 cmake -H$SCRIPTPATH -B$PARENTDIR/VeraCrypt_Packaging -DVERACRYPT_BUILD_DIR="$PARENTDIR/VeraCrypt_Setup/Console" -DNOGUI=TRUE || exit 1 -cpack --config $PARENTDIR/VeraCrypt_Packaging/CPackConfig.cmake|| exit 1 \ No newline at end of file +cpack --config $PARENTDIR/VeraCrypt_Packaging/CPackConfig.cmake|| exit 1 -- cgit v1.2.3