From 0bbd60daa93c408aafcfb84c769528c9c4edfed3 Mon Sep 17 00:00:00 2001 From: MCApollo <34170230+MCApollo@users.noreply.github.com> Date: Sat, 13 Apr 2019 06:36:34 +0000 Subject: Added cmake. --- data/cmake/ApplicationServices.diff | 12 ++++++++++++ data/cmake/_metadata/description | 1 + data/cmake/_metadata/in.1443.00 | 0 data/cmake/_metadata/libssl1.0.dep | 1 + data/cmake/_metadata/maintainer | 1 + data/cmake/_metadata/name | 1 + data/cmake/_metadata/ncurses.dep | 1 + data/cmake/_metadata/priority | 1 + data/cmake/_metadata/role | 1 + data/cmake/_metadata/section | 1 + data/cmake/_metadata/tags | 1 + data/cmake/_metadata/version | 1 + data/cmake/cmake-3.14.2.tar.gz | Bin 0 -> 8850106 bytes data/cmake/link-CoreServices.diff | 27 +++++++++++++++++++++++++++ data/cmake/make.sh | 27 +++++++++++++++++++++++++++ 15 files changed, 76 insertions(+) create mode 100644 data/cmake/ApplicationServices.diff create mode 100644 data/cmake/_metadata/description create mode 100644 data/cmake/_metadata/in.1443.00 create mode 120000 data/cmake/_metadata/libssl1.0.dep create mode 120000 data/cmake/_metadata/maintainer create mode 100644 data/cmake/_metadata/name create mode 120000 data/cmake/_metadata/ncurses.dep create mode 100644 data/cmake/_metadata/priority create mode 100644 data/cmake/_metadata/role create mode 100644 data/cmake/_metadata/section create mode 100644 data/cmake/_metadata/tags create mode 100644 data/cmake/_metadata/version create mode 100644 data/cmake/cmake-3.14.2.tar.gz create mode 100644 data/cmake/link-CoreServices.diff create mode 100644 data/cmake/make.sh diff --git a/data/cmake/ApplicationServices.diff b/data/cmake/ApplicationServices.diff new file mode 100644 index 000000000..ab17a1048 --- /dev/null +++ b/data/cmake/ApplicationServices.diff @@ -0,0 +1,12 @@ +diff -ur cmake-3.14.2/Source/cmGlobalXCodeGenerator.cxx cmake-3.14.2+iPhone/Source/cmGlobalXCodeGenerator.cxx +--- cmake-3.14.2/Source/cmGlobalXCodeGenerator.cxx 2019-04-12 12:10:08.000000000 +0000 ++++ cmake-3.14.2+iPhone/Source/cmGlobalXCodeGenerator.cxx 2019-04-17 20:39:56.609722294 +0000 +@@ -36,7 +36,7 @@ + + struct cmLinkImplementation; + +-#if defined(CMAKE_BUILD_WITH_CMAKE) && defined(__APPLE__) ++#if 0 // defined(CMAKE_BUILD_WITH_CMAKE) && defined(__APPLE__) + # define HAVE_APPLICATION_SERVICES + # include + #endif diff --git a/data/cmake/_metadata/description b/data/cmake/_metadata/description new file mode 100644 index 000000000..259b14447 --- /dev/null +++ b/data/cmake/_metadata/description @@ -0,0 +1 @@ +Cross-platfrom make diff --git a/data/cmake/_metadata/in.1443.00 b/data/cmake/_metadata/in.1443.00 new file mode 100644 index 000000000..e69de29bb diff --git a/data/cmake/_metadata/libssl1.0.dep b/data/cmake/_metadata/libssl1.0.dep new file mode 120000 index 000000000..a501d00a8 --- /dev/null +++ b/data/cmake/_metadata/libssl1.0.dep @@ -0,0 +1 @@ +../../libssl1.0 \ No newline at end of file diff --git a/data/cmake/_metadata/maintainer b/data/cmake/_metadata/maintainer new file mode 120000 index 000000000..0c538aadb --- /dev/null +++ b/data/cmake/_metadata/maintainer @@ -0,0 +1 @@ +../../../people/mac \ No newline at end of file diff --git a/data/cmake/_metadata/name b/data/cmake/_metadata/name new file mode 100644 index 000000000..7476ed336 --- /dev/null +++ b/data/cmake/_metadata/name @@ -0,0 +1 @@ +CMake diff --git a/data/cmake/_metadata/ncurses.dep b/data/cmake/_metadata/ncurses.dep new file mode 120000 index 000000000..a395fad08 --- /dev/null +++ b/data/cmake/_metadata/ncurses.dep @@ -0,0 +1 @@ +../../ncurses \ No newline at end of file diff --git a/data/cmake/_metadata/priority b/data/cmake/_metadata/priority new file mode 100644 index 000000000..134d9bc32 --- /dev/null +++ b/data/cmake/_metadata/priority @@ -0,0 +1 @@ +optional diff --git a/data/cmake/_metadata/role b/data/cmake/_metadata/role new file mode 100644 index 000000000..8d0320866 --- /dev/null +++ b/data/cmake/_metadata/role @@ -0,0 +1 @@ +developer diff --git a/data/cmake/_metadata/section b/data/cmake/_metadata/section new file mode 100644 index 000000000..e0eb96881 --- /dev/null +++ b/data/cmake/_metadata/section @@ -0,0 +1 @@ +Development diff --git a/data/cmake/_metadata/tags b/data/cmake/_metadata/tags new file mode 100644 index 000000000..ad5d50831 --- /dev/null +++ b/data/cmake/_metadata/tags @@ -0,0 +1 @@ +purpose::console diff --git a/data/cmake/_metadata/version b/data/cmake/_metadata/version new file mode 100644 index 000000000..95ed564f8 --- /dev/null +++ b/data/cmake/_metadata/version @@ -0,0 +1 @@ +3.14.2 diff --git a/data/cmake/cmake-3.14.2.tar.gz b/data/cmake/cmake-3.14.2.tar.gz new file mode 100644 index 000000000..a6440cfd9 Binary files /dev/null and b/data/cmake/cmake-3.14.2.tar.gz differ diff --git a/data/cmake/link-CoreServices.diff b/data/cmake/link-CoreServices.diff new file mode 100644 index 000000000..e10210aa9 --- /dev/null +++ b/data/cmake/link-CoreServices.diff @@ -0,0 +1,27 @@ +--- cmake-3.14.2/Source/CMakeLists.txt 2019-04-12 12:10:08.000000000 +0000 ++++ cmake-3.14.2+iPhone/Source/CMakeLists.txt 2019-04-17 21:24:00.563851766 +0000 +@@ -822,7 +822,9 @@ + # On Apple we need CoreFoundation and CoreServices + if(APPLE) + target_link_libraries(CMakeLib "-framework CoreFoundation") +- target_link_libraries(CMakeLib "-framework CoreServices") ++ if(HAVE_CoreServices) ++ target_link_libraries(CMakeLib "-framework CoreServices") ++ endif() + endif() + + if(WIN32 AND NOT UNIX) +diff -ur cmake-3.14.2/Utilities/cmlibarchive/CMakeLists.txt cmake-3.14.2+iPhone/Utilities/cmlibarchive/CMakeLists.txt +--- cmake-3.14.2/Utilities/cmlibarchive/CMakeLists.txt 2019-04-12 12:10:10.000000000 +0000 ++++ cmake-3.14.2+iPhone/Utilities/cmlibarchive/CMakeLists.txt 2019-04-17 21:45:09.028530057 +0000 +@@ -1664,7 +1664,9 @@ + + # We need CoreServices on Mac OS. + IF(APPLE) +- LIST(APPEND ADDITIONAL_LIBS "-framework CoreServices") ++ if(HAVE_CoreServices) ++ LIST(APPEND ADDITIONAL_LIBS "-framework CoreServices") ++ endif() + ENDIF(APPLE) + + add_subdirectory(libarchive) diff --git a/data/cmake/make.sh b/data/cmake/make.sh new file mode 100644 index 000000000..263be1933 --- /dev/null +++ b/data/cmake/make.sh @@ -0,0 +1,27 @@ +pkg:setup + +mkdir build && cd build +cat >iphoneos_toolchain.cmake <