From 9bd2349eebe5489a4712bb0678cdf4eb4a42f276 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Fri, 27 Nov 2015 14:11:14 +1100 Subject: Build native version of cmake * install in MXE native path so only visible to MXE sessions and wrapper scripts * remove from requirements * no MXE patches or pkg updates yet --- index.html | 60 ++++++++++++++++++++++++++++----------------------------- src/cmake.mk | 1 + src/mxe-conf.mk | 4 ++-- 3 files changed, 33 insertions(+), 32 deletions(-) diff --git a/index.html b/index.html index a7408ef..46998e7 100644 --- a/index.html +++ b/index.html @@ -345,9 +345,13 @@ If a cross compiler is detected then cross compile mode will be used.

If you have a CMake project, - you can use the provided toolchain file: + you can use the provided cmake wrapper: +

+
i686-w64-mingw32.static-cmake ...
+

+ This will automatically use the MXE version of cmake + and locate the toolchain file.

-
cmake ... -DCMAKE_TOOLCHAIN_FILE=/where MXE is installed/usr/i686-w64-mingw32.static/share/cmake/mxe-conf.cmake

Step 5c: Cross compile your Project (Qt)

@@ -513,10 +517,6 @@ USE_OSGPLUGIN(<plugin2>) - CMake - ≥ 2.8.0 - - Flex ≥ 2.5.31 @@ -626,11 +626,11 @@ USE_OSGPLUGIN(<plugin2>)
apt-get install \
-    autoconf automake autopoint bash bison bzip2 cmake flex \
-    gettext git g++ gperf intltool libffi-dev libgdk-pixbuf2.0-dev \
-    libtool libltdl-dev libssl-dev libxml-parser-perl make openssl \
-    p7zip-full patch perl pkg-config python ruby scons sed \
-    unzip wget xz-utils
+ autoconf automake autopoint bash bison bzip2 flex gettext\ + git g++ gperf intltool libffi-dev libgdk-pixbuf2.0-dev \ + libtool libltdl-dev libssl-dev libxml-parser-perl make \ + openssl p7zip-full patch perl pkg-config python ruby scons \ + sed unzip wget xz-utils

On 64-bit Debian, install also: @@ -651,10 +651,10 @@ USE_OSGPLUGIN(<plugin2>)

yum install \
-    autoconf automake bash bison bzip2 cmake flex gcc-c++ \
-    gdk-pixbuf2-devel gettext git gperf intltool make sed libffi-devel \
-    libtool openssl-devel p7zip patch perl pkgconfig \
-    python ruby scons unzip wget xz
+ autoconf automake bash bison bzip2 flex gcc-c++ \ + gdk-pixbuf2-devel gettext git gperf intltool make \ + sed libffi-devel libtool openssl-devel p7zip patch \ + perl pkgconfig python ruby scons unzip wget xz

On 64-bit Fedora, @@ -665,8 +665,8 @@ USE_OSGPLUGIN(<plugin2>)

pkg_add -r \
-    automake autoconf bash bison cmake coreutils flex \
-    gdk-pixbuf2 gettext git glib20 gmake gperf gsed intltool libffi \
+    automake autoconf bash bison coreutils flex gdk-pixbuf2 \
+    gettext git glib20 gmake gperf gsed intltool libffi \
     libtool openssl p5-XML-Parser p7zip patch perl \
     pkgconf python ruby scons unzip wget
@@ -703,8 +703,8 @@ USE_OSGPLUGIN(<plugin2>)
pacman-g2 -S \
-    autoconf automake bash bzip2 bison cmake flex gcc \
-    gdk-pixbuf2 gettext git gperf intltool make sed libffi libtool \
+    autoconf automake bash bzip2 bison flex gcc gdk-pixbuf2\
+    gettext git gperf intltool make sed libffi libtool \
     openssl patch perl perl-xml-parser pkgconfig python \
     ruby scons unzip wget xz xz-lzma
@@ -718,7 +718,7 @@ USE_OSGPLUGIN(<plugin2>)
emerge \
     sys-devel/autoconf sys-devel/automake app-shells/bash \
-    sys-devel/bison app-arch/bzip2 dev-util/cmake \
+    sys-devel/bison app-arch/bzip2 \
     sys-devel/flex sys-devel/gcc sys-devel/gettext \
     dev-vcs/git dev-util/gperf dev-util/intltool \
     sys-devel/make sys-apps/sed dev-libs/libffi \
@@ -741,9 +741,9 @@ USE_OSGPLUGIN(<plugin2>)
     

sudo port install \
-    autoconf automake bison cmake coreutils flex gettext \
-    gdk-pixbuf2 glib2 gsed intltool libffi libtool openssl \
-    p5-xml-parser p7zip scons wget xz
+ autoconf automake bison coreutils flex gettext \ + gdk-pixbuf2 glib2 gsed intltool libffi libtool \ + openssl p5-xml-parser p7zip scons wget xz
Method 2 - Rudix

@@ -752,7 +752,7 @@ USE_OSGPLUGIN(<plugin2>)

sudo rudix install \
-    autoconf automake cmake coreutils gettext glib intltool \
+    autoconf automake coreutils gettext glib intltool \
     libtool p7zip scons sed wget xz

Note: gdk-pixbuf2 is not installed in method 2, @@ -767,7 +767,7 @@ USE_OSGPLUGIN(<plugin2>)

brew install \
-    autoconf automake cmake coreutils gdk-pixbuf gettext \
+    autoconf automake coreutils gdk-pixbuf gettext \
     gnu-sed intltool libtool p7zip wget xz

and: @@ -798,11 +798,11 @@ USE_OSGPLUGIN(<plugin2>)

zypper install -R \
-    autoconf automake bash bison bzip2 cmake flex gcc-c++ \
-    gdk-pixbuf-devel gettext-tools git gperf intltool libffi-devel libtool \
-    make openssl libopenssl-devel p7zip patch perl \
-    perl-XML-Parser pkg-config python ruby scons sed unzip \
-    wget xz
+ autoconf automake bash bison bzip2 flex gcc-c++ \ + gdk-pixbuf-devel gettext-tools git gperf intltool \ + libffi-devel libtool make openssl libopenssl-devel \ + p7zip patch perl perl-XML-Parser pkg-config python \ + ruby scons sed unzip wget xz

On 64-bit openSUSE, install also: diff --git a/src/cmake.mk b/src/cmake.mk index 11c44ef..f99868e 100644 --- a/src/cmake.mk +++ b/src/cmake.mk @@ -8,6 +8,7 @@ $(PKG)_CHECKSUM := 6b4ea61eadbbd9bec0ccb383c29d1f4496eacc121ef7acf37c7a247778056 $(PKG)_SUBDIR := cmake-$($(PKG)_VERSION) $(PKG)_FILE := cmake-$($(PKG)_VERSION).tar.gz $(PKG)_URL := http://www.cmake.org/files/v$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) +$(PKG)_TARGETS := $(BUILD) $(PKG)_DEPS := define $(PKG)_UPDATE diff --git a/src/mxe-conf.mk b/src/mxe-conf.mk index 9adc685..082c0ad 100644 --- a/src/mxe-conf.mk +++ b/src/mxe-conf.mk @@ -53,10 +53,10 @@ define $(PKG)_BUILD echo 'if [[ "$$NO_MXE_TOOLCHAIN" == "1" ]]; then'; \ echo ' echo "== Skip using MXE toolchain: $(CMAKE_TOOLCHAIN_FILE)"'; \ echo ' # see https://github.com/mxe/mxe/issues/932'; \ - echo ' exec cmake "$$@"'; \ + echo ' exec "$(PREFIX)/$(BUILD)/bin/cmake" "$$@"'; \ echo 'else'; \ echo ' echo "== Using MXE toolchain: $(CMAKE_TOOLCHAIN_FILE)"'; \ - echo ' exec cmake -DCMAKE_TOOLCHAIN_FILE="$(CMAKE_TOOLCHAIN_FILE)" "$$@"'; \ + echo ' exec "$(PREFIX)/$(BUILD)/bin/cmake" -DCMAKE_TOOLCHAIN_FILE="$(CMAKE_TOOLCHAIN_FILE)" "$$@"'; \ echo 'fi'; \ ) \ > '$(PREFIX)/bin/$(TARGET)-cmake' -- cgit v0.12