summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2017-08-15 05:48:18 (GMT)
committerGitHub <noreply@github.com>2017-08-15 05:48:18 (GMT)
commit3ff0945fccaef9f50c4bbd3f0645c448fac667b6 (patch)
treea496d7f9fc2e97156dfbec24015cc6f031910c63
parentbaabb8cbf2db57218f0b5399f1741d1b9999024a (diff)
parent3631f2f307232a720a69422e0b921feb48d1e9ee (diff)
downloadmxe-3ff0945fccaef9f50c4bbd3f0645c448fac667b6.zip
mxe-3ff0945fccaef9f50c4bbd3f0645c448fac667b6.tar.gz
mxe-3ff0945fccaef9f50c4bbd3f0645c448fac667b6.tar.bz2
Merge pull request #1880 from tonytheodore/cpack
cmake: add prefixed cpack and CPACK_NSIS_EXECUTABLE
-rw-r--r--src/cmake-1-fixes.patch23
-rw-r--r--src/cmake-conf.mk2
-rw-r--r--src/cmake/conf/mxe-conf.cmake.in1
3 files changed, 25 insertions, 1 deletions
diff --git a/src/cmake-1-fixes.patch b/src/cmake-1-fixes.patch
index c6f683a..d09930f 100644
--- a/src/cmake-1-fixes.patch
+++ b/src/cmake-1-fixes.patch
@@ -30,7 +30,6 @@ see also:
https://gitlab.kitware.com/cmake/cmake/issues/16291
https://gitlab.kitware.com/cmake/cmake/issues/16919
-
diff --git a/Modules/Compiler/GNU.cmake b/Modules/Compiler/GNU.cmake
index 1111111..2222222 100644
--- a/Modules/Compiler/GNU.cmake
@@ -44,3 +43,25 @@ index 1111111..2222222 100644
set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ")
endif()
endmacro()
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Tony Theodore <tonyt@logyst.com>
+Date: Tue, 15 Aug 2017 15:25:06 +1000
+Subject: [PATCH] add CPACK_NSIS_EXECUTABLE variable
+
+
+diff --git a/Source/CPack/cmCPackNSISGenerator.cxx b/Source/CPack/cmCPackNSISGenerator.cxx
+index 1111111..2222222 100644
+--- a/Source/CPack/cmCPackNSISGenerator.cxx
++++ b/Source/CPack/cmCPackNSISGenerator.cxx
+@@ -384,7 +384,9 @@ int cmCPackNSISGenerator::InitializeInternal()
+ }
+ #endif
+
+- nsisPath = cmSystemTools::FindProgram("makensis", path, false);
++ this->SetOptionIfNotSet("CPACK_NSIS_EXECUTABLE", "makensis");
++ nsisPath = cmSystemTools::FindProgram(
++ this->GetOption("CPACK_NSIS_EXECUTABLE"), path, false);
+
+ if (nsisPath.empty()) {
+ cmCPackLogger(
diff --git a/src/cmake-conf.mk b/src/cmake-conf.mk
index d9c086d..925f12f 100644
--- a/src/cmake-conf.mk
+++ b/src/cmake-conf.mk
@@ -36,6 +36,8 @@ define $(PKG)_BUILD
-DINPUT='$(PWD)/src/cmake/conf/target-cmake.in' \
-DOUTPUT='$(PREFIX)/bin/$(TARGET)-cmake'
chmod 0755 '$(PREFIX)/bin/$(TARGET)-cmake'
+
+ ln -sf '$(PREFIX)/$(BUILD)/bin/cpack' '$(PREFIX)/bin/$(TARGET)-cpack'
endef
define $(PKG)_BUILD_$(BUILD)
diff --git a/src/cmake/conf/mxe-conf.cmake.in b/src/cmake/conf/mxe-conf.cmake.in
index 12d3856..8bd4cf1 100644
--- a/src/cmake/conf/mxe-conf.cmake.in
+++ b/src/cmake/conf/mxe-conf.cmake.in
@@ -56,6 +56,7 @@ set(CMAKE_Fortran_COMPILER @PREFIX@/bin/@TARGET@-gfortran)
set(CMAKE_RC_COMPILER @PREFIX@/bin/@TARGET@-windres)
# CMAKE_RC_COMPILE_OBJECT is defined in:
# <cmake root>/share/cmake-X.Y/Modules/Platform/Windows-windres.cmake
+set(CPACK_NSIS_EXECUTABLE @TARGET@-makensis)
## Individual package configuration
file(GLOB mxe_cmake_files