new package: cgal
This commit is contained in:
parent
74e0310f2e
commit
3be2fb1f79
@ -0,0 +1,50 @@
|
||||
diff -uNr cgal-releases-CGAL-4.14.1/Installation/cmake/modules/CGAL_CheckCXXFileRuns.cmake cgal-releases-CGAL-4.14.1.mod/Installation/cmake/modules/CGAL_CheckCXXFileRuns.cmake
|
||||
--- cgal-releases-CGAL-4.14.1/Installation/cmake/modules/CGAL_CheckCXXFileRuns.cmake 2019-09-30 10:18:05.000000000 +0300
|
||||
+++ cgal-releases-CGAL-4.14.1.mod/Installation/cmake/modules/CGAL_CheckCXXFileRuns.cmake 2019-10-05 15:06:59.818321583 +0300
|
||||
@@ -24,45 +24,11 @@
|
||||
else()
|
||||
SET(CHECK_CXX_SOURCE_COMPILES_ADD_LIBRARIES)
|
||||
endif()
|
||||
-
|
||||
+
|
||||
if(CMAKE_REQUIRED_INCLUDES)
|
||||
SET(CHECK_CXX_SOURCE_COMPILES_ADD_INCLUDES "-DINCLUDE_DIRECTORIES:STRING=${CMAKE_REQUIRED_INCLUDES}")
|
||||
else()
|
||||
SET(CHECK_CXX_SOURCE_COMPILES_ADD_INCLUDES)
|
||||
endif()
|
||||
-
|
||||
- # Try to compile and run the test
|
||||
- #MESSAGE(STATUS "Performing Test ${TEST}")
|
||||
- TRY_RUN(${VAR} ${VAR}_COMPILED
|
||||
- "${CMAKE_BINARY_DIR}"
|
||||
- "${FILE}"
|
||||
- COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS}
|
||||
- CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_FUNCTION_DEFINITIONS}
|
||||
- "${CHECK_CXX_SOURCE_COMPILES_ADD_LIBRARIES}"
|
||||
- "${CHECK_CXX_SOURCE_COMPILES_ADD_INCLUDES}"
|
||||
- OUTPUT_VARIABLE OUTPUT)
|
||||
-
|
||||
- # if it did not compile make the return value fail code of 1
|
||||
- if(NOT ${VAR}_COMPILED)
|
||||
- SET(${VAR} 1 CACHE INTERNAL "Test ${TEST}" FORCE )
|
||||
- endif()
|
||||
- # if the return value was 0 then it worked
|
||||
- SET(result_var ${${VAR}})
|
||||
- if("${result_var}" EQUAL 0)
|
||||
- SET(${VAR} 1 CACHE INTERNAL "Test ${TEST}" FORCE )
|
||||
- MESSAGE(STATUS "Performing Test ${TEST} - Success")
|
||||
- FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||
- "Performing C++ SOURCE FILE Test ${TEST} succeded with the following output:\n"
|
||||
- "${OUTPUT}\n"
|
||||
- "Source file was:\n${SOURCE}\n")
|
||||
- else()
|
||||
- MESSAGE(STATUS "Performing Test ${TEST} - Failed")
|
||||
- SET(${VAR} "" CACHE INTERNAL "Test ${TEST}" FORCE )
|
||||
- FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
||||
- "Performing C++ SOURCE FILE Test ${TEST} failed with the following output:\n"
|
||||
- "${OUTPUT}\n"
|
||||
- "Return value: ${result_var}\n"
|
||||
- "Source file was:\n${SOURCE}\n")
|
||||
- endif()
|
||||
ENDMACRO(CHECK_CXX_FILE_RUNS)
|
||||
|
@ -0,0 +1,20 @@
|
||||
diff -uNr cgal-releases-CGAL-4.14.1/Installation/cmake/modules/CGAL_SetupBoost.cmake cgal-releases-CGAL-4.14.1.mod/Installation/cmake/modules/CGAL_SetupBoost.cmake
|
||||
--- cgal-releases-CGAL-4.14.1/Installation/cmake/modules/CGAL_SetupBoost.cmake 2019-09-30 10:18:05.000000000 +0300
|
||||
+++ cgal-releases-CGAL-4.14.1.mod/Installation/cmake/modules/CGAL_SetupBoost.cmake 2019-10-05 15:13:45.119729964 +0300
|
||||
@@ -27,16 +27,6 @@
|
||||
set ( CGAL_requires_Boost_libs TRUE )
|
||||
if ( DEFINED MSVC_VERSION AND "${MSVC_VERSION}" GREATER 1800)
|
||||
set ( CGAL_requires_Boost_libs FALSE )
|
||||
- else()
|
||||
- try_run( CGAL_test_cpp_version_RUN_RES CGAL_test_cpp_version_COMPILE_RES
|
||||
- "${CMAKE_BINARY_DIR}"
|
||||
- "${CGAL_MODULES_DIR}/config/support/CGAL_test_cpp_version.cpp"
|
||||
- RUN_OUTPUT_VARIABLE CGAL_cplusplus)
|
||||
- message(STATUS "__cplusplus is ${CGAL_cplusplus}")
|
||||
- if(NOT CGAL_test_cpp_version_RUN_RES)
|
||||
- set ( CGAL_requires_Boost_libs FALSE )
|
||||
- message(STATUS " --> Do not link with Boost.Thread")
|
||||
- endif()
|
||||
endif()
|
||||
endif()
|
||||
set_property(GLOBAL PROPERTY CGAL_requires_Boost_Thread ${CGAL_requires_Boost_libs})
|
14
packages/cgal/build.sh
Normal file
14
packages/cgal/build.sh
Normal file
@ -0,0 +1,14 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://www.cgal.org/
|
||||
TERMUX_PKG_DESCRIPTION="Computational Geometry Algorithms Library"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0, LGPL-2.1"
|
||||
TERMUX_PKG_VERSION=4.14.1
|
||||
TERMUX_PKG_SRCURL=https://github.com/CGAL/cgal/archive/releases/CGAL-$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=4b0d20d2bfee8cf9b622e5966451fa91b3c01109f7bd507829eaee5e78cc3f04
|
||||
TERMUX_PKG_DEPENDS="boost, libc++, libgmp, libmpfr, zlib"
|
||||
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
-DWITH_CGAL_Qt5=OFF
|
||||
-DWITH_demos=OFF
|
||||
-DWITH_examples=OFF
|
||||
-DWITH_tests=OFF
|
||||
"
|
Loading…
Reference in New Issue
Block a user