vigra: fix cross
This commit is contained in:
parent
92a492443f
commit
7928bd1462
|
@ -0,0 +1,30 @@
|
|||
# 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).
|
||||
|
||||
|
||||
# RUN_RESULT
|
||||
# indicates whether the executable would have been able to run on its
|
||||
# target platform. If so, set RUN_RESULT to
|
||||
# the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN".
|
||||
# RUN_RESULT__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 RUN_RESULT__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 COMPILE_SUCCEEDED variable holds the build result for this TRY_RUN().
|
||||
#
|
||||
# Source file : /builddir/vigra-Version-1-11-0/config/output_cplusplus_version.cxx
|
||||
# Executable : /builddir/vigra-Version-1-11-0/build/CMakeFiles/cmTryCompileExec2883594344-RUN_RESULT
|
||||
# Run arguments :
|
||||
# Called from: [1] /builddir/vigra-Version-1-11-0/CMakeLists.txt
|
||||
|
||||
set( RUN_RESULT
|
||||
"0"
|
||||
CACHE STRING "Result from TRY_RUN" FORCE)
|
||||
|
||||
set( RUN_RESULT__TRYRUN_OUTPUT
|
||||
"%OUTPUT%"
|
||||
CACHE STRING "Output from TRY_RUN" FORCE)
|
||||
|
|
@ -15,7 +15,13 @@ distfiles="https://github.com/ukoethe/vigra/archive/Version-${version//./-}.tar.
|
|||
checksum=cae4838a2cc92ca52eafa621ab848df2e61399bbd77b2b945db35068fb50c86b
|
||||
wrksrc=$pkgname-Version-${version//./-}
|
||||
|
||||
nocross="http://build.voidlinux.eu/builders/armv7l_builder/builds/22835/steps/shell_3/logs/stdio"
|
||||
pre_configure() {
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
g++ config/output_cplusplus_version.cxx -o gccbugcheck
|
||||
sed "s#%OUTPUT%#$(./gccbugcheck)#" $FILESDIR/TryRunResults.cmake > TryRunResults.cmake
|
||||
configure_args+=" -C $PWD/TryRunResults.cmake"
|
||||
fi
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vmkdir usr/share/$pkgname
|
||||
|
|
Loading…
Reference in New Issue