diff --git a/srcpkgs/kvirc/files/TryRunResults.cmake b/srcpkgs/kvirc/files/TryRunResults.cmake new file mode 100644 index 00000000000..c22ef45054d --- /dev/null +++ b/srcpkgs/kvirc/files/TryRunResults.cmake @@ -0,0 +1,46 @@ +# This file was generated by CMake because it detected TRY_RUN() commands +# in crosscompiling mode. It will be overwritten by the next CMake run. +# Copy it to a safe location, set the variables to appropriate values +# and use it then to preset the CMake cache (using -C). + + +# TEST_DID_RUN +# indicates whether the executable would have been able to run on its +# target platform. If so, set TEST_DID_RUN to +# the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". +# TEST_DID_RUN__TRYRUN_OUTPUT +# contains the text the executable would have printed on stdout and stderr. +# If the executable would not have been able to run, set TEST_DID_RUN__TRYRUN_OUTPUT empty. +# Otherwise check if the output is evaluated by the calling CMake code. If so, +# check what the source file would have printed when called with the given arguments. +# The TEST_DID_COMPILE variable holds the build result for this TRY_RUN(). +# +# Source file : /builddir/kvirc-4.2.0/cmake/datetime.cpp +# Executable : /builddir/kvirc-4.2.0/build/CMakeFiles/cmTC_f21bc-TEST_DID_RUN +# Run arguments : +# Called from: [1] /builddir/kvirc-4.2.0/CMakeLists.txt + +set( TEST_DID_RUN + "0" + CACHE STRING "Result from TRY_RUN" FORCE) + +set( TEST_DID_RUN__TRYRUN_OUTPUT + "0000-00-00 00:00:00 AAA" + CACHE STRING "Output from TRY_RUN" FORCE) + + +# TEST_DID_RUN_DYNLABELS +# indicates whether the executable would have been able to run on its +# target platform. If so, set TEST_DID_RUN_DYNLABELS to +# the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". +# The TEST_DID_COMPILE_DYNLABELS variable holds the build result for this TRY_RUN(). +# +# Source file : /builddir/kvirc-4.2.0/cmake/dynlabels.cpp +# Executable : /builddir/kvirc-4.2.0/build/CMakeFiles/cmTC_6108c-TEST_DID_RUN_DYNLABELS +# Run arguments : +# Called from: [1] /builddir/kvirc-4.2.0/CMakeLists.txt + +set( TEST_DID_RUN_DYNLABELS + "0" + CACHE STRING "Result from TRY_RUN" FORCE) + diff --git a/srcpkgs/kvirc/template b/srcpkgs/kvirc/template index 30a78964a63..40f4e81da95 100644 --- a/srcpkgs/kvirc/template +++ b/srcpkgs/kvirc/template @@ -1,14 +1,24 @@ # Template file for 'kvirc' pkgname=kvirc version=4.2.0 -revision=15 +revision=16 build_style=cmake -configure_args="-DWANT_ENV_FLAGS=1" +configure_args="-DWANT_ENV_FLAGS=1 -DWANT_KDE4=0" hostmakedepends="automoc4" -makedepends="zlib-devel qt-devel qt-webkit-devel libressl-devel python-devel kdelibs-devel perl" +makedepends="zlib-devel qt-devel qt-webkit-devel libressl-devel python-devel perl" short_desc="Qt-based IRC client" maintainer="Andrea Brancaleoni " -license="GPL-2" +license="GPL-2.0-or-later" homepage="http://www.kvirc.net" distfiles="ftp://ftp.kvirc.de/pub/kvirc/${version}/source/${pkgname}-${version}.tar.bz2" checksum=9a547d52d804e39c9635c8dc58bccaf4d34341ef16a9a652a5eb5568d4d762cb + +if [ "$CROSS_BUILD" ];then + hostmakedepends+=" qt-qmake qt-host-tools" +fi + +pre_configure() { + if [ "$CROSS_BUILD" ]; then + configure_args+=" -C ${FILESDIR}/TryRunResults.cmake" + fi +}