summaryrefslogtreecommitdiff
path: root/data/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'data/cmake')
-rw-r--r--data/cmake/ApplicationServices.diff12
-rw-r--r--data/cmake/_metadata/description1
-rw-r--r--data/cmake/_metadata/in.1443.000
l---------data/cmake/_metadata/libssl1.0.dep1
l---------data/cmake/_metadata/maintainer1
-rw-r--r--data/cmake/_metadata/name1
l---------data/cmake/_metadata/ncurses.dep1
-rw-r--r--data/cmake/_metadata/priority1
-rw-r--r--data/cmake/_metadata/role1
-rw-r--r--data/cmake/_metadata/section1
-rw-r--r--data/cmake/_metadata/tags1
-rw-r--r--data/cmake/_metadata/version1
-rw-r--r--data/cmake/cmake-3.14.2.tar.gzbin0 -> 8850106 bytes
-rw-r--r--data/cmake/link-CoreServices.diff27
-rw-r--r--data/cmake/make.sh27
15 files changed, 76 insertions, 0 deletions
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 <ApplicationServices/ApplicationServices.h>
+ #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
--- /dev/null
+++ b/data/cmake/_metadata/in.1443.00
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
--- /dev/null
+++ b/data/cmake/cmake-3.14.2.tar.gz
Binary files 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 <<EOF
+set(CMAKE_BUILD_TYPE Release)
+set(CMAKE_SYSTEM_NAME Darwin) # Tell CMake we're cross-compiling
+set(CMAKE_CROSSCOMPILING true)
+#include(CMakeForceCompiler)
+# Prefix detection only works with compiler id "GNU"
+# CMake will look for prefixed g++, cpp, ld, etc. automatically
+set(CMAKE_SYSTEM_PROCESSOR aarch64)
+set(triple ${PKG_TARG})
+set(CMAKE_FIND_ROOT_PATH $(echo ${PKG_PATH} | sed -e s/:/' '/g))
+set(CMAKE_LIBRARY_PATH $(echo ${LIBRARY_PATH} | sed -e s/:/' '/g))
+set(CMAKE_INCLUDE_PATH $(echo ${INCLUDE_PATH} | sed -e s/:/' '/g))
+set(CMAKE_C_COMPILER ${PKG_TARG}-gcc)
+set(CMAKE_CXX_COMPILER ${PKG_TARG}-g++)
+set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG ")
+set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG ")
+EOF
+
+cmake -j4 -DCMAKE_BUILD_TYPE=Release -DCMAKE_Fortran_COMPILER:FILEPATH=FALSE -DCMAKE_TOOLCHAIN_FILE=iphoneos_toolchain.cmake -DCMAKE_LOCALSTATEDIR="/private/var" -DCMAKE_INSTALL_NAME_DIR="/usr/lib" -DCMAKE_INSTALL_RPATH="/usr/" -DCMAKE_OSX_SYSROOT="${PKG_ROOT}" -DCMAKE_INSTALL_PREFIX="/usr/" -DKWSYS_LFS_WORKS=FALSE ..
+make -j4
+pkg:install