From d64c26e6f216526c2aa34d8783c0e407fc7389c5 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Tue, 13 Oct 2015 12:34:34 +0300
Subject: [PATCH 0001/1463] travis: commit and push only if GH_TOKEN is set
This allows to enable travis build for a pull request without failing it.
This is useful to check at leat that Makefile syntax is correct.
---
.travis.yml | 10 +---------
tools/travis-push.sh | 13 +++++++++++++
2 files changed, 14 insertions(+), 9 deletions(-)
create mode 100755 tools/travis-push.sh
diff --git a/.travis.yml b/.travis.yml
index 50f05cd4..d6024c31 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,15 +3,7 @@ sudo: false
script:
- make versions.json
- - git config --global user.email 'mxebot@gmail.com'
- - git config --global user.name 'MXEBot as Travis CI'
- - git config --global push.default simple
- - git config credential.helper "store --file=.git/credentials"
- - echo "https://${GH_TOKEN}:@github.com" > .git/credentials
- - git remote set-url origin 'https://github.com/mxe/mxe.git'
- - git commit -a -m 'Update versions.json' || true
- - git push origin HEAD:master
- - git push origin HEAD:gh-pages
+ - if [ "$GH_TOKEN" != "" ]; then ./tools/travis-push.sh; fi
env:
global:
diff --git a/tools/travis-push.sh b/tools/travis-push.sh
new file mode 100755
index 00000000..8aa02c06
--- /dev/null
+++ b/tools/travis-push.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+set -ue
+
+git config --global user.email 'mxebot@gmail.com'
+git config --global user.name 'MXEBot as Travis CI'
+git config --global push.default simple
+git config credential.helper "store --file=.git/credentials"
+echo "https://${GH_TOKEN}:@github.com" > .git/credentials
+git remote set-url origin 'https://github.com/mxe/mxe.git'
+git commit -a -m 'Update versions.json' || true
+git push origin HEAD:master
+git push origin HEAD:gh-pages
From d57e5c58c8cbb37e810be438c11fb681321de35f Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Tue, 13 Oct 2015 12:36:23 +0300
Subject: [PATCH 0002/1463] travis-push: make sure "git commit" succeeded
---
tools/travis-push.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/travis-push.sh b/tools/travis-push.sh
index 8aa02c06..e7aef3b3 100755
--- a/tools/travis-push.sh
+++ b/tools/travis-push.sh
@@ -8,6 +8,6 @@ git config --global push.default simple
git config credential.helper "store --file=.git/credentials"
echo "https://${GH_TOKEN}:@github.com" > .git/credentials
git remote set-url origin 'https://github.com/mxe/mxe.git'
-git commit -a -m 'Update versions.json' || true
+git commit -a -m 'Update versions.json'
git push origin HEAD:master
git push origin HEAD:gh-pages
From bf6aa9b5502b37defe8ed7809d2c0370f77e97fa Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Wed, 4 Nov 2015 15:03:42 +0100
Subject: [PATCH 0003/1463] build-pkg: typo
---
tools/build-pkg.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index 63452c80..dd081807 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -43,7 +43,7 @@ local GIT = 'git --work-tree=./usr/ --git-dir=./usr/.git '
local BLACKLIST = {
'^usr/installed/check%-requirements$',
- -- usr/share/cmake if useful
+ -- usr/share/cmake is useful
'^usr/share/doc/',
'^usr/share/info/',
'^usr/share/man/',
From 718b89a06e8d76960ceb6f5cb6b44eac5bb2132f Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Wed, 4 Nov 2015 17:28:00 +0100
Subject: [PATCH 0004/1463] build-pkg: report shared items installing no .dll
Report only if the item installs .a
See https://github.com/mxe/mxe/pull/966#issuecomment-153712570
---
tools/build-pkg.lua | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index dd081807..9ddeeb08 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -112,6 +112,16 @@ local function sliceArray(list, nelements)
return new_list
end
+local function concatArrays(...)
+ local result = {}
+ for _, array in ipairs({...}) do
+ for _, elem in ipairs(array) do
+ table.insert(result, elem)
+ end
+ end
+ return result
+end
+
local function isInString(substring, string)
return string:find(substring, 1, true)
end
@@ -352,6 +362,26 @@ local function checkFile(file, item)
end
end
+local function checkFileList(files, item)
+ local target, _ = parseItem(item)
+ if target:match('shared') then
+ local has_a, has_dll
+ for _, file in ipairs(files) do
+ file = file:lower()
+ if file:match('%.a') then
+ has_a = true
+ end
+ if file:match('%.dll') then
+ has_dll = true
+ end
+ end
+ if has_a and not has_dll then
+ log('Shared item %s installs .a file ' ..
+ 'but no .dll', item)
+ end
+ end
+end
+
-- builds package, returns list of new files
local function buildItem(item, item2deps, file2item)
local target, pkg = parseItem(item)
@@ -374,6 +404,7 @@ local function buildItem(item, item2deps, file2item)
log('Item %s changes %s, created by %s',
item, file, creator_item)
end
+ checkFileList(concatArrays(new_files, changed_files), item)
return new_files
end
From c2c0c26761808c5778c243cd337d8961a81a7672 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Wed, 4 Nov 2015 18:46:59 +0100
Subject: [PATCH 0005/1463] build-pkg: do not pack empty packages
see #968
---
tools/build-pkg.lua | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index 9ddeeb08..c8d0e858 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -521,6 +521,10 @@ local function isBuilt(item, files)
return false
end
+local function isEmpty(item, files)
+ return #files == 1
+end
+
-- build all packages, save filelist to list file
local function buildPackages(items, item2deps)
local broken = {}
@@ -560,7 +564,9 @@ local function makeDebs(items, item2deps, item2ver, item2files)
local deps = assert(item2deps[item], item)
local ver = assert(item2ver[item], item)
local files = assert(item2files[item], item)
- makeDeb(item, files, deps, ver)
+ if not isEmpty(item, files) then
+ makeDeb(item, files, deps, ver)
+ end
end
end
From 3fc69a3a39ce90fa77fa26f3f30f424b0a57c3d7 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Wed, 4 Nov 2015 18:48:08 +0100
Subject: [PATCH 0006/1463] build-pkg: report non-empty depending on empty
fix #968
---
tools/build-pkg.lua | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index c8d0e858..c8067770 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -565,6 +565,13 @@ local function makeDebs(items, item2deps, item2ver, item2files)
local ver = assert(item2ver[item], item)
local files = assert(item2files[item], item)
if not isEmpty(item, files) then
+ for _, dep in ipairs(deps) do
+ local dep_files = assert(item2files[dep], dep)
+ if isEmpty(dep, dep_files) then
+ log('Non-empty item %s depends on ' ..
+ 'empty item %s', item, dep)
+ end
+ end
makeDeb(item, files, deps, ver)
end
end
From 8448d43531bd8002204521c75c6a49c8a0082574 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Tue, 10 Nov 2015 02:38:46 +0300
Subject: [PATCH 0007/1463] disable networking with LD_PRELOAD when build
see #969
---
Makefile | 11 ++++++++---
tools/nonetwork.c | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 44 insertions(+), 3 deletions(-)
create mode 100644 tools/nonetwork.c
diff --git a/Makefile b/Makefile
index 10757ee2..73dabb84 100644
--- a/Makefile
+++ b/Makefile
@@ -144,7 +144,7 @@ define MXE_GET_GITHUB_TAGS
endef
# use a minimal whitelist of safe environment variables
-ENV_WHITELIST := PATH LANG MAKE% MXE% %PROXY %proxy LD_LIBRARY_PATH ACLOCAL_PATH
+ENV_WHITELIST := PATH LANG MAKE% MXE% %PROXY %proxy LD_LIBRARY_PATH LD_PRELOAD ACLOCAL_PATH
unexport $(filter-out $(ENV_WHITELIST),$(shell env | cut -d '=' -f1))
# disable wine with readonly directory (created by mxe-conf)
@@ -406,6 +406,10 @@ download-only-$(1):
endef
$(foreach PKG,$(PKGS),$(eval $(call PKG_RULE,$(PKG))))
+$(PREFIX)/lib/nonetwork.so: $(TOP_DIR)/tools/nonetwork.c
+ mkdir -p $(dir $@)
+ $(BUILD_CC) -shared -fPIC -o $@ $<
+
define PKG_TARGET_RULE
.PHONY: $(1)
$(1): $(PREFIX)/$(3)/installed/$(1)
@@ -416,7 +420,8 @@ $(PREFIX)/$(3)/installed/$(1): $(TOP_DIR)/src/$(1).mk \
$(and $($(3)_DEPS),$(addprefix $(PREFIX)/$($(3)_DEPS)/installed/,$(filter-out $(MXE_CONF_PKGS),$($($(3)_DEPS)_PKGS)))) \
| $(if $(DONT_CHECK_REQUIREMENTS),,check-requirements) \
$(if $(value $(call LOOKUP_PKG_RULE,$(1),URL,$(3))),download-only-$(1)) \
- $(addprefix $(PREFIX)/$(3)/installed/,$(if $(call set_is_not_member,$(1),$(MXE_CONF_PKGS)),$(MXE_CONF_PKGS)))
+ $(addprefix $(PREFIX)/$(3)/installed/,$(if $(call set_is_not_member,$(1),$(MXE_CONF_PKGS)),$(MXE_CONF_PKGS))) \
+ $(PREFIX)/lib/nonetwork.so
@[ -d '$(LOG_DIR)/$(TIMESTAMP)' ] || mkdir -p '$(LOG_DIR)/$(TIMESTAMP)'
$(if $(value $(call LOOKUP_PKG_RULE,$(1),BUILD,$(3))),
@$(PRINTF_FMT) '[build]' '$(1)' '$(3)',
@@ -425,7 +430,7 @@ $(PREFIX)/$(3)/installed/$(1): $(TOP_DIR)/src/$(1).mk \
@$(PRINTF_FMT) '[message]' '$(1)' '$(3) $($(call LOOKUP_PKG_RULE,$(1),MESSAGE,$(3)))')
@touch '$(LOG_DIR)/$(TIMESTAMP)/$(1)_$(3)'
@ln -sf '$(TIMESTAMP)/$(1)_$(3)' '$(LOG_DIR)/$(1)_$(3)'
- @if ! (time $(MAKE) -f '$(MAKEFILE)' 'build-only-$(1)_$(3)') &> '$(LOG_DIR)/$(TIMESTAMP)/$(1)_$(3)'; then \
+ @if ! (time LD_PRELOAD="$(PREFIX)/lib/nonetwork.so" $(MAKE) -f '$(MAKEFILE)' 'build-only-$(1)_$(3)') &> '$(LOG_DIR)/$(TIMESTAMP)/$(1)_$(3)'; then \
echo; \
echo 'Failed to build package $(1) for target $(3)!'; \
echo '------------------------------------------------------------'; \
diff --git a/tools/nonetwork.c b/tools/nonetwork.c
new file mode 100644
index 00000000..d203fb2d
--- /dev/null
+++ b/tools/nonetwork.c
@@ -0,0 +1,36 @@
+// nonetwork, break standard network functions using LD_PRELOAD
+// Source: https://github.com/starius/nonetwork
+// Copyright (C) 2015 Boris Nagaev
+// License: MIT
+
+#include
+
+int connect(int sock, const void *addr, unsigned int len) {
+ errno = 13; // EACCES, Permission denied
+ return -1;
+}
+
+void *gethostbyname(const char *name) {
+ return 0;
+}
+
+int getaddrinfo(const char *node, const char *service,
+ const void *hints,
+ void **res) {
+ return -4; // EAI_FAIL
+}
+
+void freeaddrinfo(void *res) {
+}
+
+int getnameinfo(const void * sa,
+ unsigned int salen, char * host,
+ unsigned int hostlen, char * serv,
+ unsigned int servlen, int flags) {
+ return -4; // EAI_FAIL
+}
+
+struct hostent *gethostbyaddr(const void *addr, unsigned int len,
+ int type) {
+ return 0;
+}
From 66514d4c962f2c28ab08c58ef13e9775eebe26f1 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Tue, 10 Nov 2015 02:42:37 +0300
Subject: [PATCH 0008/1463] set WGET=false when build
Prevent $(WGET) from downloading on platforms not supporting LD_PRELOAD.
fix #969
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 73dabb84..090caa98 100644
--- a/Makefile
+++ b/Makefile
@@ -430,7 +430,7 @@ $(PREFIX)/$(3)/installed/$(1): $(TOP_DIR)/src/$(1).mk \
@$(PRINTF_FMT) '[message]' '$(1)' '$(3) $($(call LOOKUP_PKG_RULE,$(1),MESSAGE,$(3)))')
@touch '$(LOG_DIR)/$(TIMESTAMP)/$(1)_$(3)'
@ln -sf '$(TIMESTAMP)/$(1)_$(3)' '$(LOG_DIR)/$(1)_$(3)'
- @if ! (time LD_PRELOAD="$(PREFIX)/lib/nonetwork.so" $(MAKE) -f '$(MAKEFILE)' 'build-only-$(1)_$(3)') &> '$(LOG_DIR)/$(TIMESTAMP)/$(1)_$(3)'; then \
+ @if ! (time LD_PRELOAD="$(PREFIX)/lib/nonetwork.so" $(MAKE) -f '$(MAKEFILE)' 'build-only-$(1)_$(3)' WGET=false) &> '$(LOG_DIR)/$(TIMESTAMP)/$(1)_$(3)'; then \
echo; \
echo 'Failed to build package $(1) for target $(3)!'; \
echo '------------------------------------------------------------'; \
From 68f74e9651898c6f084ce6feb0d772c6dfae7087 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Tue, 10 Nov 2015 02:52:56 +0300
Subject: [PATCH 0009/1463] build-pkg: blacklist nonetwork.so
---
tools/build-pkg.lua | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index d39dec11..f18f241a 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -48,6 +48,7 @@ local BLACKLIST = {
'^usr/share/info/',
'^usr/share/man/',
'^usr/share/gcc',
+ '^usr/lib/nonetwork.so',
'^usr/[^/]+/share/doc/',
'^usr/[^/]+/share/info/',
}
From cae2328ca96ea36f98bb081ac629a095a6381986 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Tue, 10 Nov 2015 10:33:06 +0300
Subject: [PATCH 0010/1463] index.html: add a dot at the end of the sentence
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index d34ec60e..27e9ff96 100644
--- a/index.html
+++ b/index.html
@@ -2749,7 +2749,7 @@ local-pkg-list: $(LOCAL_PKG_LIST)
or:
openssl sha256 pkg/gettext-x.y.z.tar.gz
- if you have already downloaded the package
+ if you have already downloaded the package.
From b4b5e471cd7aa7811b7f088d6a75fa9ae9738c7b Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Tue, 10 Nov 2015 10:34:03 +0300
Subject: [PATCH 0011/1463] new package howto: add not-to-do rules
---
index.html | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/index.html b/index.html
index 27e9ff96..bac012ad 100644
--- a/index.html
+++ b/index.html
@@ -2765,6 +2765,28 @@ local-pkg-list: $(LOCAL_PKG_LIST)
Always list the dependency on gcc explicitly:
$(PKG)_DEPS := gcc ...
+
+
+ Things not to do:
+
+
+
+ do not run target executables with Wine, as Wine is
+ not guaranteed to be installed. Instead build the needed tool
+ natively or (if it is too huge to build one more time) add
+ to MXE's dependencies. This policy is forced by setting
+ WINEPREFIX to an empty directory, which breaks Wine;
+
+
+
+ do not download anything while building, as all files
+ downloaded should be verified by checksums. Instead create a
+ package which installs the needed file. This policy is forced
+ on Linux by LD_PRELOAD trick, breaking network functions.
+
+
+
From 18b8aa1c9cd924828fe7a252021b07570c08d0fc Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Wed, 11 Nov 2015 03:32:27 +0300
Subject: [PATCH 0012/1463] build-pkg: add EOL after last line in *.list file
fix #979
---
tools/build-pkg.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index d39dec11..f609b6b4 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -432,7 +432,7 @@ local function makePackage(name, files, deps, ver, d1, d2, dst)
protectVersion(ver))
-- make .list file
local list_path = ('%s/%s.list'):format(dst, name)
- writeFile(list_path, table.concat(files, "\n"))
+ writeFile(list_path, table.concat(files, "\n") .. "\n")
-- make .tar.xz file
local tar_name = dirname .. '.tar.xz'
local cmd = '%s -T %s --owner=root --group=root -cJf %s'
From 6bfaad27b8f3cf2ca9792c756e7a4d5a80f85153 Mon Sep 17 00:00:00 2001
From: gcoco
Date: Wed, 11 Nov 2015 01:50:26 -0500
Subject: [PATCH 0013/1463] gdk-pixbuf2-devel not gdk-pixbuf-devel
This is to provide gdk-pixbuf-csource.
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index d34ec60e..f370597f 100644
--- a/index.html
+++ b/index.html
@@ -648,7 +648,7 @@ USE_OSGPLUGIN(<plugin2>)
- After installing pre-requirement run from within the mxe directory:
+ Note: gdk-pixbuf2 is not installed in method 2,
+ so you can not build gtk3. Other packages may be
+ missing on Rudix - please open an issue if you find any.
-
make build-requirements
You may be prompted to install a java runtime
- this is not required.
- Mac OS X versions ≤ 10.7 are no longer supported.
+ Mac OS X versions ≤ 10.9 are no longer tested.
+
+
Certain packages have open issues on OS X
+
+
+ to build the remainder of MXE, run:
+
+
make EXCLUDE_PKGS='nsis ocaml%'
+
+ to see a list of all dependent downstream packages that
+ will be excluded, run:
+
From f69cb0dbd23dfda6ba90585765c7c90a5df6d34c Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Wed, 30 Sep 2015 02:09:57 +0300
Subject: [PATCH 0178/1463] FreeBSD: recommend to use gmake instead of make
Command `make` on FreeBSD doesn't like MXE's Makefile:
make: "/root/mxe2/Makefile" line 10: Cannot open /ext/gmsl
make: "/root/mxe2/Makefile" line 59: Need an operator
make: "/root/mxe2/Makefile" line 62: Need an operator
make: "/root/mxe2/Makefile" line 126: Need an operator
make: "/root/mxe2/Makefile" line 130: Need an operator
...
$(MAKEFILE_LIST) is empty for `make` on FreeBSD, that is why
$(EXT_DIR) is /ext
Nevertheless MXE's Makefile seems to use too many features
not supported by `make` on FreeBSD. Tool `gmake` is installed.
---
index.html | 3 +++
1 file changed, 3 insertions(+)
diff --git a/index.html b/index.html
index 0904745a..701575d1 100644
--- a/index.html
+++ b/index.html
@@ -670,6 +670,9 @@ USE_OSGPLUGIN(<plugin2>)
libtool openssl p5-XML-Parser p7zip patch perl5 \
pkgconf python ruby scons unzip wget
+
+ Use gmake instead of make.
+
Ensure that /usr/local/bin precedes /usr/bin in your $PATH:
From ab5c97aea2354b77dbe0c7d0a5b9f6f8563c90f1 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Sat, 3 Oct 2015 19:43:02 +0300
Subject: [PATCH 0179/1463] freebsd: install file(1) from ports
---
index.html | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/index.html b/index.html
index 701575d1..171ab097 100644
--- a/index.html
+++ b/index.html
@@ -674,6 +674,11 @@ USE_OSGPLUGIN(<plugin2>)
Use gmake instead of make.
+ Install file(1) from ports, because file(1) from base
+ works
+ very-very-very slow with long text files.
+
+
Ensure that /usr/local/bin precedes /usr/bin in your $PATH:
From 9537e5c9d2f83fe11b8c328e5e142aa1822cbdcc Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Sat, 3 Oct 2015 19:50:25 +0300
Subject: [PATCH 0180/1463] freebsd: do not build as root
see #902
---
index.html | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/index.html b/index.html
index 171ab097..1ab04046 100644
--- a/index.html
+++ b/index.html
@@ -679,6 +679,10 @@ USE_OSGPLUGIN(<plugin2>)
very-very-very slow with long text files.
diff --git a/src/geoip-database.mk b/src/geoip-database.mk
new file mode 100644
index 00000000..eaa2eb37
--- /dev/null
+++ b/src/geoip-database.mk
@@ -0,0 +1,23 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := geoip-database
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 20150317-1
+$(PKG)_CHECKSUM := 45be84939fd22bef1ccaa1189f83c667fef275a16bbfb91f82b7b2068b4e3735
+$(PKG)_SUBDIR := .
+$(PKG)_FILE := $(PKG)_$($(PKG)_VERSION)_all.deb
+$(PKG)_URL := http://http.debian.net/debian/pool/main/g/$(PKG)/$($(PKG)_FILE)
+$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS)
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'https://packages.debian.org/jessie/all/geoip-database/download' | \
+ $(SED) -n 's,.*geoip-database_\([0-9\-]*\)_all.deb.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD_$(BUILD)
+ mkdir -p '$(PREFIX)/$(BUILD)/share/GeoIP'
+ cp '$(1)/usr/share/GeoIP/GeoIP.dat' \
+ '$(PREFIX)/$(BUILD)/share/GeoIP/GeoIP.dat'
+endef
From 1974c8ecfeb86f2953ff87abddc0ffb7c979ddd6 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Sun, 30 Aug 2015 02:52:32 +0200
Subject: [PATCH 0219/1463] add package "qbittorrent" to plugin "apps"
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The qBittorrent project aims to provide a Free Software
alternative to µtorrent. Additionally, qBittorrent runs and
provides the same features on all major platforms (Linux,
Mac OS X, Windows, OS/2, FreeBSD).
qBittorrent is based on Qt4 toolkit and libtorrent-rasterbar.
http://www.qbittorrent.org/
See also https://github.com/mxe/mxe/pull/812
---
...rrent-1-do-not-check-qmake-existance.patch | 33 +++++++
...onvert-windows-includes-to-lowercase.patch | 98 +++++++++++++++++++
...ove-unused-members-of-peerlistwidget.patch | 32 ++++++
.../apps/qbittorrent-4-fix-library-list.patch | 92 +++++++++++++++++
plugins/apps/qbittorrent.mk | 32 ++++++
5 files changed, 287 insertions(+)
create mode 100644 plugins/apps/qbittorrent-1-do-not-check-qmake-existance.patch
create mode 100644 plugins/apps/qbittorrent-2-convert-windows-includes-to-lowercase.patch
create mode 100644 plugins/apps/qbittorrent-3-remove-unused-members-of-peerlistwidget.patch
create mode 100644 plugins/apps/qbittorrent-4-fix-library-list.patch
create mode 100644 plugins/apps/qbittorrent.mk
diff --git a/plugins/apps/qbittorrent-1-do-not-check-qmake-existance.patch b/plugins/apps/qbittorrent-1-do-not-check-qmake-existance.patch
new file mode 100644
index 00000000..a5df669a
--- /dev/null
+++ b/plugins/apps/qbittorrent-1-do-not-check-qmake-existance.patch
@@ -0,0 +1,33 @@
+This file is part of MXE.
+See index.html for further information.
+
+From 6f6377091a12ed3fe749fe646674be921d2c648c Mon Sep 17 00:00:00 2001
+From: Boris Nagaev
+Date: Sun, 30 Aug 2015 00:28:50 +0200
+Subject: [PATCH] do not check qmake existance
+
+Fix ./configure error:
+
+checking for mxe/usr/i686-w64-mingw32.static/qt/bin/qmake...
+configure: error: cannot check for file existence when
+cross compiling
+---
+ configure | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure b/configure
+index f28d1b0..a414bd6 100755
+--- a/configure
++++ b/configure
+@@ -4540,7 +4540,7 @@ if eval \${$as_ac_File+:} false; then :
+ $as_echo_n "(cached) " >&6
+ else
+ test "$cross_compiling" = yes &&
+- as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
++ echo "cannot check for file existence when cross compiling" "$LINENO" 5
+ if test -r "$QT_QMAKE/qmake"; then
+ eval "$as_ac_File=yes"
+ else
+--
+1.7.10.4
+
diff --git a/plugins/apps/qbittorrent-2-convert-windows-includes-to-lowercase.patch b/plugins/apps/qbittorrent-2-convert-windows-includes-to-lowercase.patch
new file mode 100644
index 00000000..0c452866
--- /dev/null
+++ b/plugins/apps/qbittorrent-2-convert-windows-includes-to-lowercase.patch
@@ -0,0 +1,98 @@
+This file is part of MXE.
+See index.html for further information.
+
+From 8976424272266837b7bf7574e555d13694d244e3 Mon Sep 17 00:00:00 2001
+From: Boris Nagaev
+Date: Sun, 30 Aug 2015 01:58:17 +0200
+Subject: [PATCH 1/3] convert includes like to lowercase
+
+---
+ src/app/application.cpp | 2 +-
+ src/core/misc.cpp | 2 +-
+ src/core/preferences.cpp | 2 +-
+ src/core/qtlibtorrent/filterparserthread.h | 2 +-
+ src/core/qtlibtorrent/qtorrenthandle.cpp | 2 +-
+ src/gui/powermanagement/powermanagement.cpp | 2 +-
+ 6 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/src/app/application.cpp b/src/app/application.cpp
+index 2594e9a..90a43e1 100644
+--- a/src/app/application.cpp
++++ b/src/app/application.cpp
+@@ -35,7 +35,7 @@
+
+ #ifndef DISABLE_GUI
+ #ifdef Q_OS_WIN
+-#include
++#include
+ #include
+ #include
+ #endif // Q_OS_WIN
+diff --git a/src/core/misc.cpp b/src/core/misc.cpp
+index 5e551ff..632b5ee 100644
+--- a/src/core/misc.cpp
++++ b/src/core/misc.cpp
+@@ -54,7 +54,7 @@
+
+ #ifdef Q_OS_WIN
+ #include
+-#include
++#include
+ const int UNLEN = 256;
+ #else
+ #include
+diff --git a/src/core/preferences.cpp b/src/core/preferences.cpp
+index 1c43927..0759b5a 100644
+--- a/src/core/preferences.cpp
++++ b/src/core/preferences.cpp
+@@ -46,7 +46,7 @@
+ #endif
+
+ #ifdef Q_OS_WIN
+-#include
++#include
+ #include
+ #endif
+
+diff --git a/src/core/qtlibtorrent/filterparserthread.h b/src/core/qtlibtorrent/filterparserthread.h
+index a950865..36536df 100644
+--- a/src/core/qtlibtorrent/filterparserthread.h
++++ b/src/core/qtlibtorrent/filterparserthread.h
+@@ -45,7 +45,7 @@ using namespace std;
+ // P2B Stuff
+ #include
+ #ifdef Q_OS_WIN
+-#include
++#include
+ #else
+ #include
+ #endif
+diff --git a/src/core/qtlibtorrent/qtorrenthandle.cpp b/src/core/qtlibtorrent/qtorrenthandle.cpp
+index a1cf5a3..bbe7bfb 100644
+--- a/src/core/qtlibtorrent/qtorrenthandle.cpp
++++ b/src/core/qtlibtorrent/qtorrenthandle.cpp
+@@ -48,7 +48,7 @@
+ #include
+
+ #ifdef Q_OS_WIN
+-#include
++#include
+ #endif
+
+ using namespace libtorrent;
+diff --git a/src/gui/powermanagement/powermanagement.cpp b/src/gui/powermanagement/powermanagement.cpp
+index ec07aa8..c51b229 100644
+--- a/src/gui/powermanagement/powermanagement.cpp
++++ b/src/gui/powermanagement/powermanagement.cpp
+@@ -40,7 +40,7 @@
+ #endif
+
+ #ifdef Q_OS_WIN
+-#include
++#include
+ #endif
+
+ PowerManagement::PowerManagement(QObject *parent) : QObject(parent), m_busy(false)
+--
+1.7.10.4
+
diff --git a/plugins/apps/qbittorrent-3-remove-unused-members-of-peerlistwidget.patch b/plugins/apps/qbittorrent-3-remove-unused-members-of-peerlistwidget.patch
new file mode 100644
index 00000000..940cbc32
--- /dev/null
+++ b/plugins/apps/qbittorrent-3-remove-unused-members-of-peerlistwidget.patch
@@ -0,0 +1,32 @@
+This file is part of MXE.
+See index.html for further information.
+
+From 9e74dc0c9cda72506303a276a0a6174b500fae15 Mon Sep 17 00:00:00 2001
+From: Boris Nagaev
+Date: Sun, 30 Aug 2015 01:59:15 +0200
+Subject: [PATCH 2/3] remove unused members of peerlistwidget
+
+They were still generated by MOC and caused compilation errors
+---
+ src/gui/properties/peerlistwidget.h | 5 -----
+ 1 file changed, 5 deletions(-)
+
+diff --git a/src/gui/properties/peerlistwidget.h b/src/gui/properties/peerlistwidget.h
+index 0771555..7f5f771 100644
+--- a/src/gui/properties/peerlistwidget.h
++++ b/src/gui/properties/peerlistwidget.h
+@@ -83,11 +83,6 @@ protected slots:
+ void saveSettings() const;
+ void showPeerListMenu(const QPoint&);
+
+-#if LIBTORRENT_VERSION_NUM < 10000
+- void limitUpRateSelectedPeers(const QStringList& peer_ips);
+- void limitDlRateSelectedPeers(const QStringList& peer_ips);
+-#endif
+-
+ void banSelectedPeers(const QStringList& peer_ips);
+ void handleSortColumnChanged(int col);
+
+--
+1.7.10.4
+
diff --git a/plugins/apps/qbittorrent-4-fix-library-list.patch b/plugins/apps/qbittorrent-4-fix-library-list.patch
new file mode 100644
index 00000000..d149311a
--- /dev/null
+++ b/plugins/apps/qbittorrent-4-fix-library-list.patch
@@ -0,0 +1,92 @@
+This file is part of MXE.
+See index.html for further information.
+
+From f581b0bec9286cc9e2cb450a79a77e325f070fcb Mon Sep 17 00:00:00 2001
+From: Boris Nagaev
+Date: Sun, 30 Aug 2015 02:02:39 +0200
+Subject: [PATCH 3/3] fix library list
+
+Replace library list hardcoded in qmake files with
+libraries found by autotools.
+---
+ configure | 2 +-
+ winconf-mingw.pri | 15 ++-------------
+ winconf.pri | 16 +---------------
+ 3 files changed, 4 insertions(+), 29 deletions(-)
+
+diff --git a/configure b/configure
+index a414bd6..7417654 100755
+--- a/configure
++++ b/configure
+@@ -8469,7 +8469,7 @@ fi
+ $as_echo "$as_me: Running qmake to generate the makefile..." >&6;}
+ CONFDIR="$( cd "$( dirname "$0" )" && pwd )"
+
+-$QT_QMAKE -r $CONFDIR/qbittorrent.pro
++$QT_QMAKE -r $CONFDIR/qbittorrent.pro "QMAKE_LRELEASE=$QMAKE_LRELEASE" "CONF_LIBS=$LIBS"
+
+ ret="$?"
+
+diff --git a/winconf-mingw.pri b/winconf-mingw.pri
+index 4507000..39d30dd 100644
+--- a/winconf-mingw.pri
++++ b/winconf-mingw.pri
+@@ -17,19 +17,8 @@ CONFIG(debug, debug|release) {
+
+ RC_FILE = qbittorrent_mingw.rc
+
+-# Adapt the lib names/versions accordingly
+-CONFIG(debug, debug|release) {
+- LIBS += libtorrent \
+- libboost_system-mgw45-mt-d-1_47 \
+- libboost_filesystem-mgw45-mt-d-1_47 \
+- libboost_thread-mgw45-mt-d-1_47
+-} else {
+- LIBS += libtorrent \
+- libboost_system-mgw45-mt-1_47 \
+- libboost_filesystem-mgw45-mt-1_47 \
+- libboost_thread-mgw45-mt-1_47
+-}
++LIBS += $$CONF_LIBS
+
+ LIBS += libadvapi32 libshell32 libuser32
+-LIBS += libcrypto.dll libssl.dll libwsock32 libws2_32 libz libiconv.dll
++LIBS += libcrypto libssl libwsock32 libws2_32 libz libiconv
+ LIBS += libpowrprof
+diff --git a/winconf.pri b/winconf.pri
+index 3818cca..ede8535 100644
+--- a/winconf.pri
++++ b/winconf.pri
+@@ -9,15 +9,6 @@ INCLUDEPATH += $$quote(C:/qBittorrent/Zlib/include)
+ # Point this to the openssl include folder
+ INCLUDEPATH += $$quote(C:/qBittorrent/openssl/include)
+
+-# Point this to the boost lib folder
+-LIBS += $$quote(-LC:/qBittorrent/boost_1_51_0/stage/lib)
+-# Point this to the libtorrent lib folder
+-LIBS += $$quote(-LC:/qBittorrent/RC_0_16/bin/)
+-# Point this to the zlib lib folder
+-LIBS += $$quote(-LC:/qBittorrent/Zlib/lib)
+-# Point this to the openssl lib folder
+-LIBS += $$quote(-LC:/qBittorrent/openssl/lib)
+-
+ # LIBTORRENT DEFINES
+ DEFINES += BOOST_ALL_NO_LIB
+ DEFINES += BOOST_ASIO_HASH_MAP_BUCKETS=1021
+@@ -47,12 +38,7 @@ CONFIG(debug, debug|release) {
+ # Enable backtrace support
+ CONFIG += strace_win
+
+-win32-g++ {
+- include(winconf-mingw.pri)
+-}
+-else {
+- include(winconf-msvc.pri)
+-}
++include(winconf-mingw.pri)
+
+ DEFINES += WITH_GEOIP_EMBEDDED
+ message("On Windows, GeoIP database must be embedded.")
+--
+1.7.10.4
+
diff --git a/plugins/apps/qbittorrent.mk b/plugins/apps/qbittorrent.mk
new file mode 100644
index 00000000..2ef4b1be
--- /dev/null
+++ b/plugins/apps/qbittorrent.mk
@@ -0,0 +1,32 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := qbittorrent
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 3.2.3
+$(PKG)_CHECKSUM := 86a79f3772bd06736a4be104180187d76c5c8feb2c1cdf1054135b4ba602a914
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$(PKG)-$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc libtorrent-rasterbar qt boost geoip-database
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'http://www.qbittorrent.org/download.php' | \
+ $(SED) -n 's,.*qbittorrent-\([0-9][^"]*\)\.tar.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ # On Windows, GeoIP database must be embedded
+ cp '$(PREFIX)/$(BUILD)/share/GeoIP/GeoIP.dat' \
+ '$(1)'/src/gui/geoip/GeoIP.dat
+ cd '$(1)' && \
+ QMAKE_LRELEASE='$(PREFIX)/$(TARGET)/qt/bin/lrelease' \
+ ./configure \
+ $(MXE_CONFIGURE_OPTS) \
+ --with-boost='$(PREFIX)/$(TARGET)'
+ $(MAKE) -C '$(1)' -j '$(JOBS)'
+ cp '$(1)'/src/release/qbittorrent.exe '$(PREFIX)/$(TARGET)/bin/'
+endef
+
+$(PKG)_BUILD_SHARED =
From 546676a245ab482be9663a9f60585c7775b33fce Mon Sep 17 00:00:00 2001
From: Mark Brand
Date: Sun, 13 Dec 2015 10:05:13 +0100
Subject: [PATCH 0220/1463] update freetds, gnutls, libgpg_error
---
src/freetds.mk | 4 ++--
src/gnutls-1-fixes.patch | 52 ++++++++++++++++++++++++++++++----------
src/gnutls.mk | 4 ++--
src/libgpg_error.mk | 4 ++--
4 files changed, 46 insertions(+), 18 deletions(-)
diff --git a/src/freetds.mk b/src/freetds.mk
index e3e7602b..6d20f56c 100644
--- a/src/freetds.mk
+++ b/src/freetds.mk
@@ -3,8 +3,8 @@
PKG := freetds
$(PKG)_IGNORE :=
-$(PKG)_VERSION := 0.95.73
-$(PKG)_CHECKSUM := ae84e2e78043c6b81addac085945de8553d505fc85f3d4f87f50717d3c3c05bc
+$(PKG)_VERSION := 0.95.75
+$(PKG)_CHECKSUM := 23cbac96805730f7760256631561f65f88aab3cd4b6d1f5dae53721c79a02f81
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := ftp://ftp.freetds.org/pub/$(PKG)/stable/$($(PKG)_FILE)
diff --git a/src/gnutls-1-fixes.patch b/src/gnutls-1-fixes.patch
index d8f1bca5..a79b2955 100644
--- a/src/gnutls-1-fixes.patch
+++ b/src/gnutls-1-fixes.patch
@@ -3,32 +3,32 @@ See index.html for further information.
Contains ad hoc patches for cross building.
-From 239dc102017197025ef37cda8fa26b3750f18fb9 Mon Sep 17 00:00:00 2001
-From: MXE
+From a769aa5f4edb5a4a7b6dc36d5d9a889f2249a48f Mon Sep 17 00:00:00 2001
+From: Mark Brand
Date: Mon, 4 Feb 2013 16:11:12 +0100
-Subject: [PATCH 1/2] add missing private lib to pc file
+Subject: [PATCH 1/3] add missing private lib to pc file
diff --git a/lib/gnutls.pc.in b/lib/gnutls.pc.in
-index a25fcdf..3860c68 100644
+index f1a4157..9b1ed59 100644
--- a/lib/gnutls.pc.in
+++ b/lib/gnutls.pc.in
@@ -19,6 +19,6 @@ Description: Transport Security Layer implementation for the GNU system
URL: http://www.gnutls.org/
Version: @VERSION@
Libs: -L${libdir} -lgnutls
--Libs.private: @LTLIBZ@ @LTLIBINTL@ @LIBSOCKET@ @LTLIBPTHREAD@ @LTLIBICONV@ @P11_KIT_LIBS@ @LIB_SELECT@ @TSS_LIBS@ @GMP_LIBS@
-+Libs.private: @LTLIBZ@ @LTLIBINTL@ @LIBSOCKET@ @LTLIBPTHREAD@ @LTLIBICONV@ @P11_KIT_LIBS@ @LIB_SELECT@ @TSS_LIBS@ @GMP_LIBS@ -lcrypt32
+-Libs.private: @LIBZ@ @LIBINTL@ @LIBSOCKET@ @LIBPTHREAD@ @LIBICONV@ @P11_KIT_LIBS@ @LIB_SELECT@ @TSS_LIBS@ @GMP_LIBS@
++Libs.private: @LIBZ@ @LIBINTL@ @LIBSOCKET@ @LIBPTHREAD@ @LIBICONV@ @P11_KIT_LIBS@ @LIB_SELECT@ @TSS_LIBS@ @GMP_LIBS@ -lcrypt32
@GNUTLS_REQUIRES_PRIVATE@
Cflags: -I${includedir}
--
-2.3.2 (Apple Git-55)
+2.5.0
-From 02e79ee0c18ff148e315c223675370ad11673bf6 Mon Sep 17 00:00:00 2001
-From: MXE
+From 8afb001057028f6a3c671406c8914540c3b9b6e6 Mon Sep 17 00:00:00 2001
+From: Mark Brand
Date: Mon, 24 Nov 2014 08:56:48 +0100
-Subject: [PATCH 2/2] windows build fix: ws2tcpip.h supplies inet_ntop
+Subject: [PATCH 2/3] windows build fix: ws2tcpip.h supplies inet_ntop
Follow-up to 492c2b937ab66134d0b37499a6f3a747e19bc31a
@@ -37,7 +37,7 @@ Signed-off-by: Mark Brand
taken from: http://lists.gnutls.org/pipermail/gnutls-devel/2014-November/007250.html
diff --git a/lib/x509/output.c b/lib/x509/output.c
-index e82fe84..2e62418 100644
+index b126c30..a97d445 100644
--- a/lib/x509/output.c
+++ b/lib/x509/output.c
@@ -34,7 +34,11 @@
@@ -54,5 +54,33 @@ index e82fe84..2e62418 100644
#define addf _gnutls_buffer_append_printf
--
-2.3.2 (Apple Git-55)
+2.5.0
+
+
+From 46316cbe2097bfebc0681819ae11df4b77a1315d Mon Sep 17 00:00:00 2001
+From: Nikos Mavrogiannopoulos
+Date: Tue, 24 Nov 2015 12:54:32 +0100
+Subject: [PATCH 3/3] tools: don't call endservent in windows
+
+
+diff --git a/src/socket.c b/src/socket.c
+index 8991089..be8a4a1 100644
+--- a/src/socket.c
++++ b/src/socket.c
+@@ -33,8 +33,11 @@
+ #include
+ #include
+ #ifndef _WIN32
+-#include
+-#include
++# include
++# include
++#else
++# undef endservent
++# define endservent()
+ #endif
+ #include
+ #include
+--
+2.5.0
diff --git a/src/gnutls.mk b/src/gnutls.mk
index 528ed0af..d0708e2c 100644
--- a/src/gnutls.mk
+++ b/src/gnutls.mk
@@ -2,8 +2,8 @@
# See index.html for further information.
PKG := gnutls
-$(PKG)_VERSION := 3.4.5
-$(PKG)_CHECKSUM := af88b8e0460728d034ff3f454f7851a09b7f0959a93531b6f8d35658ef0f7aae
+$(PKG)_VERSION := 3.4.7
+$(PKG)_CHECKSUM := c1be9e4b30295d7b5f96fa332c6a908e6fa2254377b67811301fca92eb882e5a
$(PKG)_SUBDIR := gnutls-$($(PKG)_VERSION)
$(PKG)_FILE := gnutls-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := http://mirrors.dotsrc.org/gnupg/gnutls/v3.4/$($(PKG)_FILE)
diff --git a/src/libgpg_error.mk b/src/libgpg_error.mk
index 32090c78..3d5941b0 100644
--- a/src/libgpg_error.mk
+++ b/src/libgpg_error.mk
@@ -3,8 +3,8 @@
PKG := libgpg_error
$(PKG)_IGNORE :=
-$(PKG)_VERSION := 1.20
-$(PKG)_CHECKSUM := 3266895ce3419a7fb093e63e95e2ee3056c481a9bc0d6df694cfd26f74e72522
+$(PKG)_VERSION := 1.21
+$(PKG)_CHECKSUM := b7dbdb3cad63a740e9f0c632a1da32d4afdb694ec86c8625c98ea0691713b84d
$(PKG)_SUBDIR := libgpg-error-$($(PKG)_VERSION)
$(PKG)_FILE := libgpg-error-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := http://mirrors.dotsrc.org/gcrypt/libgpg-error/$($(PKG)_FILE)
From de45bde5b9e30e125279f66d307646b1b7fefafd Mon Sep 17 00:00:00 2001
From: MXEBot as Travis CI
Date: Sun, 13 Dec 2015 09:17:35 +0000
Subject: [PATCH 0221/1463] Update versions.json
---
versions.json | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/versions.json b/versions.json
index 5614b4ad..5e45cf28 100644
--- a/versions.json
+++ b/versions.json
@@ -57,7 +57,7 @@
"fontconfig": "2.11.1",
"freeglut": "2.8.1",
"freeimage": "3.15.4",
- "freetds": "0.95.73",
+ "freetds": "0.95.75",
"freetype": "2.6.2",
"freetype-bootstrap": "2.6.2",
"fribidi": "0.19.6",
@@ -78,7 +78,7 @@
"glib": "2.44.1",
"glibmm": "2.42.0",
"gmp": "6.1.0",
- "gnutls": "3.4.5",
+ "gnutls": "3.4.7",
"graphicsmagick": "1.3.21",
"gsl": "1.16",
"gsoap": "2.8.22",
@@ -151,7 +151,7 @@
"libgit2": "0.23.2",
"libglade": "2.6.4",
"libgnurx": "2.5.1",
- "libgpg_error": "1.20",
+ "libgpg_error": "1.21",
"libgsasl": "1.8.0",
"libgsf": "1.14.30",
"libharu": "2.2.1",
From cb8a1ae7f3375d4fb6a52190096490ce9b4291f2 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Sun, 13 Dec 2015 16:23:00 +0300
Subject: [PATCH 0222/1463] build-pkg: exit with code 1 if a package is broken
---
tools/build-pkg.lua | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index 845db95e..0dfd9034 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -721,3 +721,8 @@ if not no_debs then
makeMxeRequirementsPackage('jessie')
end
makeMxeSourcePackage()
+if #unbroken < #build_list then
+ local code = 1
+ local close = true
+ os.exit(code, close)
+end
From 8d44c858e7e56529af8e630b2d354d7cc3c5b469 Mon Sep 17 00:00:00 2001
From: Alexande B
Date: Sun, 13 Dec 2015 16:40:06 +0300
Subject: [PATCH 0223/1463] #782 fix, wrong checksum calculation command for
OSX
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 9937986f..e9e35269 100644
--- a/Makefile
+++ b/Makefile
@@ -193,7 +193,7 @@ define PREPARE_PKG_SOURCE
endef
PKG_CHECKSUM = \
- openssl sha256 '$(PKG_DIR)/$($(1)_FILE)' 2>/dev/null | $(SED) -n 's,^.*\([0-9a-f]\{64\}\)$$,\1,p'
+ openssl dgst -sha256 '$(PKG_DIR)/$($(1)_FILE)' 2>/dev/null | $(SED) -n 's,^.*\([0-9a-f]\{64\}\)$$,\1,p'
CHECK_PKG_ARCHIVE = \
[ '$($(1)_CHECKSUM)' == "`$$(call PKG_CHECKSUM,$(1))`" ]
From c9d3201b16c86a48c879f3f8f925b953d6c1b22c Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Sun, 13 Dec 2015 02:48:11 +0300
Subject: [PATCH 0224/1463] build-pkg: do not provide empty dependency list
Debian packages with "Depends: " do not work:
> Reading package lists... Error!
> E: Problem parsing dependency Depends
> E: Error occurred while processing mxe-source (NewVersion2)
> E: Problem with MergeList /var/lib/apt/lists/pkg.mxe.cc_repos_apt_debian_dists_wheezy_main_binary-amd64_Packages
> E: The package lists or status file could not be parsed or opened.
---
tools/build-pkg.lua | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index 845db95e..0c204d16 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -433,8 +433,7 @@ local CONTROL = [[Package: %s
Version: %s
Section: devel
Priority: optional
-Architecture: %s
-Depends: %s
+Architecture: %s%s
Maintainer: Boris Nagaev
Homepage: http://mxe.cc
Description: %s
@@ -446,7 +445,11 @@ Description: %s
]]
local function debianControl(options)
- local deb_deps_str = table.concat(options.deps, ', ')
+ local deb_deps_str = ''
+ if #options.deps >= 1 then
+ deb_deps_str = '\n' .. 'Depends: ' ..
+ table.concat(options.deps, ', ')
+ end
local version = options.version .. '-' .. TODAY
return CONTROL:format(
options.package,
From 23898cc905085d1f6305c793f8e88468d70aa759 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Sun, 13 Dec 2015 16:59:45 +0300
Subject: [PATCH 0225/1463] remove unused patch miniupnpc-build-1.patch
It is not used after eb20723302ed656122ce326129c1347e03b0460d,
in which Makefile based installation was replaced with CMake
based installation.
See https://github.com/mxe/mxe/issues/1051#issuecomment-164201749
---
src/miniupnpc-build-1.patch | 28 ----------------------------
1 file changed, 28 deletions(-)
delete mode 100644 src/miniupnpc-build-1.patch
diff --git a/src/miniupnpc-build-1.patch b/src/miniupnpc-build-1.patch
deleted file mode 100644
index 08eff8ca..00000000
--- a/src/miniupnpc-build-1.patch
+++ /dev/null
@@ -1,28 +0,0 @@
---- ./Makefile.mingw 2014-01-31 14:18:56.000000000 +0100
-+++ ./Makefile.mingw.new 2015-04-27 15:44:59.548000000 +0200
-@@ -37,7 +37,7 @@
- $(PYTHON) setupmingw32.py install --skip-build
-
- miniupnpc.dll: libminiupnpc.a $(OBJSDLL)
-- dllwrap -k --driver-name gcc \
-+ $(DLLWRAP) -k --driver-name $(CC) \
- --def miniupnpc.def \
- --output-def miniupnpc.dll.def \
- --implib miniupnpc.lib -o $@ \
-@@ -71,13 +71,13 @@
- miniupnpcstrings.h: miniupnpcstrings.h.in wingenminiupnpcstrings
- wingenminiupnpcstrings $< $@
-
--minixml.o: minixml.c minixml.h miniupnpcstrings.h
-+minixml.o: minixml.c minixml.h
-
- upnpc.o: upnpc.c miniwget.h minisoap.h miniupnpc.h igd_desc_parse.h upnpreplyparse.h upnpcommands.h upnperrors.h
-
--miniwget.o: miniwget.c miniwget.h miniupnpcstrings.h connecthostport.h
-+miniwget.o: miniwget.c miniwget.h connecthostport.h
-
--minisoap.o: minisoap.c minisoap.h miniupnpcstrings.h
-+minisoap.o: minisoap.c minisoap.h
-
- miniupnpc.o: miniupnpc.c miniupnpc.h minisoap.h miniwget.h minixml.h
-
From b07afe2f7083001c8268681a8f5f63974f164f4c Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Sun, 13 Dec 2015 17:00:48 +0300
Subject: [PATCH 0226/1463] miniupnpc: add headers to install
See https://github.com/mxe/mxe/issues/1051#issuecomment-164260560
---
src/miniupnpc-1-fixes.patch | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
create mode 100644 src/miniupnpc-1-fixes.patch
diff --git a/src/miniupnpc-1-fixes.patch b/src/miniupnpc-1-fixes.patch
new file mode 100644
index 00000000..8fd7849f
--- /dev/null
+++ b/src/miniupnpc-1-fixes.patch
@@ -0,0 +1,30 @@
+This file is part of MXE.
+See index.html for further information.
+
+Contains ad hoc patches for cross building.
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Boris Nagaev
+Date: Sun, 13 Dec 2015 16:56:42 +0300
+Subject: [PATCH] cmake: add headers to install
+
+ * bsdqueue.h
+ * miniupnpctypes.h
+ * portlistingparse.h
+
+See https://github.com/mxe/mxe/issues/1051#issuecomment-164260560
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1111111..2222222 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -166,6 +166,9 @@ install (FILES
+ upnpreplyparse.h
+ upnperrors.h
+ declspec.h
++ bsdqueue.h
++ miniupnpctypes.h
++ portlistingparse.h
+ DESTINATION include/miniupnpc
+ )
+
From 610569dc2e46b5398e2fec64266ffcf29354b223 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Sun, 13 Dec 2015 18:02:58 +0300
Subject: [PATCH 0227/1463] patch-tool-mxe: do not replace object id with 000
Previously patch-tool-mxe produced the following diffs:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0000000..0000000 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
patch tool refused to apply this patch:
The next patch would create the file CMakeLists.txt,
which already exists! Assume -R? [n]
This commit replaces 0000000..0000000 with 1111111..2222222.
---
tools/patch-tool-mxe | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/patch-tool-mxe b/tools/patch-tool-mxe
index 10fadfb6..fdfa9657 100755
--- a/tools/patch-tool-mxe
+++ b/tools/patch-tool-mxe
@@ -101,7 +101,7 @@ function export_patch {
--stdout \
dist..HEAD | \
sed 's/^From [0-9a-f]\{40\} /From 0000000000000000000000000000000000000000 /' | \
- sed 's/^index .......\.\......../index 0000000..0000000/'
+ sed 's/^index .......\.\......../index 1111111..2222222/'
) > $mxedir/src/${pkg}-${patch_name}.patch && \
echo "Generated ${mxedir}/src/${pkg}-${patch_name}.patch"
}
From 686afc35ecd513c2e0934a6d0287665efcc2a3a7 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Sun, 13 Dec 2015 03:07:44 +0300
Subject: [PATCH 0228/1463] build-pkg: build empty dependencies of non-empty
Otherwise empty dependency produces no .deb file
preventing non-empty package from being installed.
Example: non-empty package gcc depends on empty
package mingw-w64.
---
tools/build-pkg.lua | 29 ++++++++++++++++++++++++-----
1 file changed, 24 insertions(+), 5 deletions(-)
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index 845db95e..4271c99d 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -622,21 +622,40 @@ local function buildPackages(items, item2deps)
end
local function makeDebs(items, item2deps, item2ver, item2files)
+ -- start from building non-empty packages
+ local to_build = {}
for _, item in ipairs(items) do
- local deps = assert(item2deps[item], item)
- local ver = assert(item2ver[item], item)
local files = assert(item2files[item], item)
if not isEmpty(item, files) then
+ table.insert(to_build, item)
+ end
+ end
+ local built = {}
+ repeat
+ local missing_deps_set = {}
+ for _, item in ipairs(to_build) do
+ local deps = assert(item2deps[item], item)
+ local ver = assert(item2ver[item], item)
+ local files = assert(item2files[item], item)
for _, dep in ipairs(deps) do
- local dep_files = assert(item2files[dep], dep)
+ local dep_files = item2files[dep]
if isEmpty(dep, dep_files) then
- log('Non-empty item %s depends on ' ..
+ log('Item %s depends on ' ..
'empty item %s', item, dep)
+ missing_deps_set[dep] = true
end
end
makeDeb(item, files, deps, ver)
+ built[item] = true
end
- end
+ -- empty packages built to satisfy non-empty
+ to_build = {}
+ for item in pairs(missing_deps_set) do
+ if not built[item] then
+ table.insert(to_build, item)
+ end
+ end
+ until #to_build == 0
end
local function getMxeVersion()
From 32fd160246d4e534b0679e04325676b6f57ae261 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Mon, 14 Dec 2015 00:22:36 +0300
Subject: [PATCH 0229/1463] build-pkg: flush stdout after echoing
---
tools/build-pkg.lua | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index 845db95e..f42f7f23 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -62,6 +62,7 @@ local TARGETS = {
local function echo(fmt, ...)
print(fmt:format(...))
+ io.stdout:flush()
end
local function log(fmt, ...)
From b2ecb73308db9c0c0837869982a89ae29a6a6f1e Mon Sep 17 00:00:00 2001
From: MXEBot as Travis CI
Date: Mon, 14 Dec 2015 07:28:00 +0000
Subject: [PATCH 0230/1463] Update versions.json
---
versions.json | 1 +
1 file changed, 1 insertion(+)
diff --git a/versions.json b/versions.json
index 5e45cf28..3c84f88a 100644
--- a/versions.json
+++ b/versions.json
@@ -69,6 +69,7 @@
"gdb": "7.10.1",
"gdk-pixbuf": "2.30.8",
"gendef": "4.0.4",
+ "geoip-database": "20150317-1",
"geos": "3.4.2",
"gettext": "0.19.5.1",
"giflib": "5.0.5",
From 3dae2fee641abb64d6d21f3ddf115aeee2983b95 Mon Sep 17 00:00:00 2001
From: Tony Theodore
Date: Mon, 14 Dec 2015 18:57:22 +1100
Subject: [PATCH 0231/1463] qt: remove broken `lrelease` symlink
no need for a prefixed version, it seems nobody has ever tried using it.
---
src/qt.mk | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/qt.mk b/src/qt.mk
index 71536feb..5bf3b082 100644
--- a/src/qt.mk
+++ b/src/qt.mk
@@ -74,7 +74,6 @@ define $(PKG)_BUILD
# lrelease (from linguist) needed to prepare translation files
$(MAKE) -C '$(1)/tools/linguist/lrelease' -j '$(JOBS)' install
- ln -fs '$(PREFIX)/$(TARGET)/bin/lrelease' '$(PREFIX)/bin/$(TARGET)-lrelease'
cd '$(1)/tools/assistant' && '$(1)/bin/qmake' assistant.pro
# can't figure out where -lQtCLucene comes from so use
From 5b3ca65fa50fb924c5263bdf425dac56a2f637be Mon Sep 17 00:00:00 2001
From: Tony Theodore
Date: Mon, 14 Dec 2015 19:17:46 +1100
Subject: [PATCH 0232/1463] freetype: don't create harfbuzz alias during
boostrap build
---
src/freetype-bootstrap.mk | 2 +-
src/freetype.mk | 12 ++++++++----
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/freetype-bootstrap.mk b/src/freetype-bootstrap.mk
index 472bf848..bea0cbdd 100644
--- a/src/freetype-bootstrap.mk
+++ b/src/freetype-bootstrap.mk
@@ -15,5 +15,5 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
- $(freetype_BUILD)
+ $(freetype_BUILD_COMMON)
endef
diff --git a/src/freetype.mk b/src/freetype.mk
index c5ea74d5..b282a164 100644
--- a/src/freetype.mk
+++ b/src/freetype.mk
@@ -17,10 +17,7 @@ define $(PKG)_UPDATE
tail -1
endef
-define $(PKG)_BUILD
- # alias harfbuzz to handle linking circularity
- $(if $(BUILD_STATIC),\
- ln -sf libharfbuzz.a '$(PREFIX)/$(TARGET)/lib/libharfbuzz_too.a',)
+define $(PKG)_BUILD_COMMON
cd '$(1)' && GNUMAKE=$(MAKE) ./configure \
$(MXE_CONFIGURE_OPTS) \
LIBPNG_CFLAGS="`$(TARGET)-pkg-config libpng --cflags`" \
@@ -31,3 +28,10 @@ define $(PKG)_BUILD
$(MAKE) -C '$(1)' -j 1 install
ln -sf '$(PREFIX)/$(TARGET)/bin/freetype-config' '$(PREFIX)/bin/$(TARGET)-freetype-config'
endef
+
+define $(PKG)_BUILD
+ # alias harfbuzz to handle linking circularity
+ $(if $(BUILD_STATIC),\
+ ln -sf libharfbuzz.a '$(PREFIX)/$(TARGET)/lib/libharfbuzz_too.a',)
+ $($(PKG)_BUILD_COMMON)
+endef
From 5d5ad4a36ca3d5f5092bfc9e0499d3ee838106b1 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Wed, 16 Dec 2015 02:59:28 +0300
Subject: [PATCH 0233/1463] build-pkg: add "plugins/" to mxe-source package
---
tools/build-pkg.lua | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index 44fce031..c8df6f37 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -718,6 +718,7 @@ local function makeMxeSourcePackage()
'ext',
'index.html',
'src',
+ 'plugins',
'tools',
'versions.json',
}
From 5d3ce0ab6b681ff104dff21f5bbac597c0ca0e70 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Wed, 16 Dec 2015 03:03:59 +0300
Subject: [PATCH 0234/1463] build-pkg: pack Debian packages with xz not gzip
fix #1068
---
tools/build-pkg.lua | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index 44fce031..048a726c 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -496,7 +496,8 @@ local function makePackage(name, files, deps, ver, d1, d2, dst)
local control_fname = dirname .. '/DEBIAN/control'
writeFile(control_fname, control_text)
-- make .deb file
- local cmd = 'fakeroot -i deb.fakeroot dpkg-deb -b %s'
+ local cmd = 'dpkg-deb -Zxz -b %s'
+ cmd = 'fakeroot -i deb.fakeroot ' .. cmd
os.execute(cmd:format(dirname))
-- cleanup
os.execute(('rm -fr %s deb.fakeroot'):format(dirname))
From 789545ff1affec91e58908e7f84b4ff1fae9c508 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Wed, 16 Dec 2015 03:06:37 +0300
Subject: [PATCH 0235/1463] build-pkg: fix .deb installation
The installation failed with the following note:
> Noting disappearance of mxe-requirements,
> which has been completely replaced.
Add an empty file mxe-requirements.dummy.$release
to prevent this.
---
tools/build-pkg.lua | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index 44fce031..cdcf37ce 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -692,11 +692,15 @@ local function makeMxeRequirementsPackage(release)
-- Jessie+
table.insert(deps, 'libtool-bin')
end
- local files = {}
+ local dummy_name = 'mxe-requirements.dummy.' .. release
+ local dummy = io.open(dummy_name, 'w')
+ dummy:close()
+ local files = {dummy_name}
local d1 = "MXE requirements package"
local d2 = MXE_REQUIREMENTS_DESCRIPTION2
local dst = release
makePackage(name, files, deps, ver, d1, d2, dst)
+ os.remove(dummy_name)
end
local MXE_SOURCE_DESCRIPTION2 =
From 33121e8d360929488899aaddb8ee8e482a9012cd Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Wed, 16 Dec 2015 03:15:51 +0300
Subject: [PATCH 0236/1463] build-pkg: update list of files back from .tar.xz
fix #1067
---
tools/build-pkg.lua | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index 44fce031..acdaf68e 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -473,6 +473,13 @@ local function makePackage(name, files, deps, ver, d1, d2, dst)
local tar_name = dirname .. '.tar.xz'
local cmd = '%s -T %s --owner=root --group=root -cJf %s'
os.execute(cmd:format(tool 'tar', list_path, tar_name))
+ -- update list of files back from .tar.xz (see #1067)
+ local cmd = '%s -tf %s'
+ cmd = cmd:format(tool 'tar', tar_name)
+ local tar_reader = io.popen(cmd, 'r')
+ local files_str = tar_reader:read('*all')
+ tar_reader:close()
+ writeFile(list_path, files_str)
-- make DEBIAN/control file
local control_text = debianControl {
package = name,
From 0b13084593d52efa6b45634b8b0a64e680f6df76 Mon Sep 17 00:00:00 2001
From: Tony Theodore
Date: Wed, 16 Dec 2015 13:42:45 +1100
Subject: [PATCH 0237/1463] doc updates: fix typo, update package counts, note
posix threads support
see #1066
---
README.md | 5 ++++-
index.html | 20 ++++++++++----------
2 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/README.md b/README.md
index 1950615f..16b4d457 100644
--- a/README.md
+++ b/README.md
@@ -24,11 +24,14 @@ various target platforms, which:
## Supported Toolchains
* Runtime: MinGW-w64
- * Host Triplet:
+ * Host Triplets:
- `i686-w64-mingw32`
- `x86_64-w64-mingw32`
* Packages:
- static
- shared
+ * GCC Threading Libraries (`winpthreads` is always available):
+ - win32
+ - [posix (experimental)](https://github.com/mxe/mxe/pull/958)
Please see [mxe.cc](http://mxe.cc/) for further information and package support matrix.
diff --git a/index.html b/index.html
index 111d0799..48001541 100644
--- a/index.html
+++ b/index.html
@@ -104,29 +104,29 @@
Static
-
Shared*
+
Shared
MinGW-w64
i686-w64-mingw32
-
99% (339/341)
-
62% (211/341)
+
99% (379/381)
+
72% (273/381)
x86_64-w64-mingw32
-
91% (311/341)
-
61% (209/341)
+
94% (360/381)
+
71% (271/381)
- These numbers were last updated on October 13, 2014. You can see the
+ These numbers were last updated on December 16, 2015. You can see the
current status by executing make build-matrix.html in the
MXE directory.
-
- * Shared support in MXE was just added in early February, 2014. These
- numbers are expected to rise significantly.
-
+
+ Experimental support for GCC with posix threads was
+ added in November 2015.
+
From 6e50094684b9f8058f9fd94af8457e4ced306b57 Mon Sep 17 00:00:00 2001
From: Tony Theodore
Date: Thu, 17 Dec 2015 00:31:31 +1100
Subject: [PATCH 0238/1463] exiv2: add missing mman-win32 dependency
---
src/exiv2.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/exiv2.mk b/src/exiv2.mk
index 32ee5b9b..b8080272 100644
--- a/src/exiv2.mk
+++ b/src/exiv2.mk
@@ -8,7 +8,7 @@ $(PKG)_CHECKSUM := c80bfc778a15fdb06f71265db2c3d49d8493c382e516cb99b8c9f9cbde36e
$(PKG)_SUBDIR := exiv2-$($(PKG)_VERSION)
$(PKG)_FILE := exiv2-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://www.exiv2.org/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc expat gettext zlib
+$(PKG)_DEPS := gcc expat gettext mman-win32 zlib
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.exiv2.org/download.html' | \
From 25f51ef01dd186b908f845da014f1b02f34a68ea Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Wed, 16 Dec 2015 10:46:50 +0300
Subject: [PATCH 0239/1463] cleanup libmysqlclient-1-fixes.patch
$ tools/patch-tool-mxe init libmysqlclient
$ tools/patch-tool-mxe import libmysqlclient
$ tools/patch-tool-mxe export libmysqlclient
---
src/libmysqlclient-1-fixes.patch | 95 ++++++++++++--------------------
1 file changed, 36 insertions(+), 59 deletions(-)
diff --git a/src/libmysqlclient-1-fixes.patch b/src/libmysqlclient-1-fixes.patch
index 5a6287e4..d6c65f4f 100644
--- a/src/libmysqlclient-1-fixes.patch
+++ b/src/libmysqlclient-1-fixes.patch
@@ -3,15 +3,15 @@ See index.html for further information.
Contains ad hoc patches for cross building.
-From 93f3a29abe0397e5a6681c07c3223372b5451bb0 Mon Sep 17 00:00:00 2001
-From: MXE
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: "fix@me"
Date: Sun, 6 Sep 2015 22:34:47 +0100
-Subject: [PATCH 1/7] use comp_err tool built in native build
+Subject: [PATCH] use comp_err tool built in native build
See http://www.vtk.org/Wiki/CMake_Cross_Compiling#Using_executables_in_the_build_created_during_the_build
diff --git a/extra/CMakeLists.txt b/extra/CMakeLists.txt
-index ac28c62..b2cbb75 100644
+index 1111111..2222222 100644
--- a/extra/CMakeLists.txt
+++ b/extra/CMakeLists.txt
@@ -20,13 +20,29 @@ ${ZLIB_INCLUDE_DIR})
@@ -44,19 +44,16 @@ index ac28c62..b2cbb75 100644
ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/include/mysqld_error.h
${PROJECT_BINARY_DIR}/sql/share/english/errmsg.sys
COMMAND comp_err
---
-2.3.8 (Apple Git-58)
-
-From e45e5c21360b12cb9f271a29bd1d4d183ed55060 Mon Sep 17 00:00:00 2001
-From: MXE
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: "fix@me"
Date: Sun, 6 Sep 2015 22:53:33 +0100
-Subject: [PATCH 2/7] fix extra qualification 'Handshake::'
+Subject: [PATCH] fix extra qualification 'Handshake::'
Compilation error.
diff --git a/libmysql/authentication_win/handshake.h b/libmysql/authentication_win/handshake.h
-index 14b1386..395af36 100644
+index 1111111..2222222 100644
--- a/libmysql/authentication_win/handshake.h
+++ b/libmysql/authentication_win/handshake.h
@@ -100,7 +100,7 @@ public:
@@ -68,18 +65,15 @@ index 14b1386..395af36 100644
bool virtual is_complete() const
{
---
-2.3.8 (Apple Git-58)
-
-From a2deca6cb6f87bb926d12149595c84f29ae00d0e Mon Sep 17 00:00:00 2001
-From: MXE
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: "fix@me"
Date: Mon, 7 Sep 2015 22:59:18 +0100
-Subject: [PATCH 3/7] fix case in headers and libs (should be lowercase)
+Subject: [PATCH] fix case in headers and libs (should be lowercase)
diff --git a/extra/yassl/src/yassl_int.cpp b/extra/yassl/src/yassl_int.cpp
-index 2993a1a..04b1fda 100644
+index 1111111..2222222 100644
--- a/extra/yassl/src/yassl_int.cpp
+++ b/extra/yassl/src/yassl_int.cpp
@@ -20,7 +20,7 @@
@@ -92,7 +86,7 @@ index 2993a1a..04b1fda 100644
#include
#endif
diff --git a/include/mysql/psi/mysql_socket.h b/include/mysql/psi/mysql_socket.h
-index 41a7cb4..5f6d91d 100644
+index 1111111..2222222 100644
--- a/include/mysql/psi/mysql_socket.h
+++ b/include/mysql/psi/mysql_socket.h
@@ -29,7 +29,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
@@ -105,7 +99,7 @@ index 41a7cb4..5f6d91d 100644
#else
#include
diff --git a/libmysql/authentication_win/CMakeLists.txt b/libmysql/authentication_win/CMakeLists.txt
-index f2979fb..83e5441 100644
+index 1111111..2222222 100644
--- a/libmysql/authentication_win/CMakeLists.txt
+++ b/libmysql/authentication_win/CMakeLists.txt
@@ -26,7 +26,7 @@ SET(HEADERS common.h handshake.h)
@@ -118,7 +112,7 @@ index f2979fb..83e5441 100644
# In IDE, group headers in a separate folder.
diff --git a/libmysql/authentication_win/plugin_client.cc b/libmysql/authentication_win/plugin_client.cc
-index d25aae8..ecfee79 100644
+index 1111111..2222222 100644
--- a/libmysql/authentication_win/plugin_client.cc
+++ b/libmysql/authentication_win/plugin_client.cc
@@ -26,7 +26,7 @@
@@ -130,20 +124,17 @@ index d25aae8..ecfee79 100644
#endif
static int win_auth_client_plugin_init(char*, size_t, int, va_list)
---
-2.3.8 (Apple Git-58)
-
-From 7517a9a4ce9b123470ff8cc040acfa1777acc832 Mon Sep 17 00:00:00 2001
-From: MXE
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: "fix@me"
Date: Mon, 7 Sep 2015 23:01:35 +0100
-Subject: [PATCH 4/7] define missing types
+Subject: [PATCH] define missing types
We do not use types CERT_NAME_BLOB and CRYPT_HASH_BLOB,
though they are used in mprapi.h. And are not defined!
diff --git a/mysys/my_gethwaddr.c b/mysys/my_gethwaddr.c
-index 780c765..e2cd321 100644
+index 1111111..2222222 100644
--- a/mysys/my_gethwaddr.c
+++ b/mysys/my_gethwaddr.c
@@ -137,6 +137,9 @@ my_bool my_gethwaddr(uchar *to)
@@ -156,14 +147,11 @@ index 780c765..e2cd321 100644
#include
/*
---
-2.3.8 (Apple Git-58)
-
-From 12358baf55265ff6d2764771199645e811863853 Mon Sep 17 00:00:00 2001
-From: MXE
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: "fix@me"
Date: Mon, 7 Sep 2015 23:04:23 +0100
-Subject: [PATCH 5/7] macro NATIVE_WIN32 for stuff we don't have here
+Subject: [PATCH] macro NATIVE_WIN32 for stuff we don't have here
Macro NATIVE_WIN32 is undefined in MXE. It is used instead of _WIN32
in #ifdef's where working variant is Unix and not Win32:
@@ -173,7 +161,7 @@ in #ifdef's where working variant is Unix and not Win32:
* MXE has Unix-like stacktrace reader
diff --git a/include/m_string.h b/include/m_string.h
-index e1576af..5417192 100644
+index 1111111..2222222 100644
--- a/include/m_string.h
+++ b/include/m_string.h
@@ -127,7 +127,7 @@ static inline ulonglong my_strtoull(const char *nptr, char **endptr, int base)
@@ -186,7 +174,7 @@ index e1576af..5417192 100644
#else
return strtok_r(str, delim, saveptr);
diff --git a/include/my_global.h b/include/my_global.h
-index acadb44..8c3c3cd 100644
+index 1111111..2222222 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -205,7 +205,7 @@ C_MODE_START
@@ -236,7 +224,7 @@ index acadb44..8c3c3cd 100644
ts1->tv_nsec - ts2->tv_nsec;
#else
diff --git a/include/thr_cond.h b/include/thr_cond.h
-index 480e936..03fbc24 100644
+index 1111111..2222222 100644
--- a/include/thr_cond.h
+++ b/include/thr_cond.h
@@ -39,7 +39,7 @@ typedef CONDITION_VARIABLE native_cond_t;
@@ -258,7 +246,7 @@ index 480e936..03fbc24 100644
return ETIMEDOUT;
return 0;
diff --git a/mysys/stacktrace.c b/mysys/stacktrace.c
-index 226d469..db94096 100644
+index 1111111..2222222 100644
--- a/mysys/stacktrace.c
+++ b/mysys/stacktrace.c
@@ -15,7 +15,7 @@
@@ -270,18 +258,15 @@ index 226d469..db94096 100644
#include "my_pthread.h"
#include "m_string.h"
#include
---
-2.3.8 (Apple Git-58)
-
-From 4f6b41efba4a862d34de3d03980d283d60c57c28 Mon Sep 17 00:00:00 2001
-From: MXE
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: "fix@me"
Date: Thu, 8 Oct 2015 13:30:53 +1100
-Subject: [PATCH 6/7] fix shared lib names
+Subject: [PATCH] fix shared lib names
diff --git a/libmysql/CMakeLists.txt b/libmysql/CMakeLists.txt
-index 17c8c03..9e2980b 100644
+index 1111111..2222222 100644
--- a/libmysql/CMakeLists.txt
+++ b/libmysql/CMakeLists.txt
@@ -216,7 +216,7 @@ MACRO(GET_TARGET_NAME target out_name)
@@ -311,18 +296,15 @@ index 17c8c03..9e2980b 100644
# libtool compatability
IF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR APPLE)
SET(OS_SHARED_LIB_VERSION "${SHARED_LIB_MAJOR_VERSION}")
---
-2.3.8 (Apple Git-58)
-
-From d57fefef1a1eb15d14dc64d4c59267746f02369d Mon Sep 17 00:00:00 2001
-From: MXE
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: "fix@me"
Date: Thu, 8 Oct 2015 19:36:35 +1100
-Subject: [PATCH 7/7] allow install of mysql_config
+Subject: [PATCH] allow install of mysql_config
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
-index 69d19b8..738563b 100644
+index 1111111..2222222 100644
--- a/scripts/CMakeLists.txt
+++ b/scripts/CMakeLists.txt
@@ -92,7 +92,7 @@ ENDIF()
@@ -334,11 +316,8 @@ index 69d19b8..738563b 100644
# On Windows, some .sh and some .pl.in files are configured
# The resulting files will have .pl extension (those are perl scripts)
---
-2.3.8 (Apple Git-58)
-
-From eb38e04f41ac341b162cfa0e97aa3ee1ce783777 Mon Sep 17 00:00:00 2001
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Wed, 11 Nov 2015 07:44:44 +0000
Subject: [PATCH] add 'static' to some inline functions
@@ -347,7 +326,7 @@ Fix https://gist.github.com/starius/71d5f276d62e58f36d2f
See also http://stackoverflow.com/a/8502046
diff --git a/include/my_global.h b/include/my_global.h
-index 8c3c3cd..3cb24f6 100644
+index 1111111..2222222 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -340,7 +340,7 @@ typedef socket_len_t SOCKET_SIZE_TYPE; /* Used by NDB */
@@ -368,6 +347,4 @@ index 8c3c3cd..3cb24f6 100644
{
double t= d - (double) 0x8000000000000000ULL;
---
-2.1.4
From 2e71b21211db4cea44d5518cc2afda2e699361a5 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Wed, 16 Dec 2015 19:54:56 +0300
Subject: [PATCH 0240/1463] fix libmysqlclient if path contains ++
fix #1030
---
src/libmysqlclient-1-fixes.patch | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/src/libmysqlclient-1-fixes.patch b/src/libmysqlclient-1-fixes.patch
index d6c65f4f..bae92e2e 100644
--- a/src/libmysqlclient-1-fixes.patch
+++ b/src/libmysqlclient-1-fixes.patch
@@ -348,3 +348,26 @@ index 1111111..2222222 100644
double t= d - (double) 0x8000000000000000ULL;
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Boris Nagaev
+Date: Wed, 16 Dec 2015 17:39:28 +0100
+Subject: [PATCH] fix CMake error if dir contains special regex char
+
+See https://github.com/mxe/mxe/issues/1030
+
+diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
+index 1111111..2222222 100644
+--- a/scripts/CMakeLists.txt
++++ b/scripts/CMakeLists.txt
+@@ -59,7 +59,10 @@ MACRO(EXTRACT_LINK_LIBRARIES target var)
+ FOREACH(lib ${${target}_LIB_DEPENDS})
+ # Filter out "general", it is not a library, just CMake hint
+ # Also, remove duplicates
+- IF(NOT lib STREQUAL "general" AND NOT ${var} MATCHES "-l${lib} ")
++ # To check if "${var}" contains "-l${lib} ", use replace
++ # can't use MATCHES because ${lib} may contain special chars.
++ STRING(REPLACE "-l${lib} " "" var_repl ${var})
++ IF(NOT lib STREQUAL "general" AND ${var} STREQUAL ${var_repl})
+ IF (lib MATCHES "^\\-l")
+ SET(${var} "${${var}} ${lib} ")
+ ELSEIF(lib MATCHES "^/")
From a2e4d1cb128cac5f5c17bb2626f998a7f12d4df9 Mon Sep 17 00:00:00 2001
From: Timothy Gu
Date: Wed, 16 Dec 2015 21:13:56 -0800
Subject: [PATCH 0241/1463] Use my fork of libgnurx
The original libgnurx is based off glibc 2.5, which has multiple known
vulnerabilities, including but not limited to:
- CVE-2013-0242: Buffer overflow in the extend_buffers function in the
regular expression matcher (posix/regexec.c) in glibc, possibly 2.17
and earlier, allows context-dependent attackers to cause a denial of
service (memory corruption and crash) via crafted multibyte
characters.
---
src/libgnurx.mk | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/src/libgnurx.mk b/src/libgnurx.mk
index 1958bf1a..219477d3 100644
--- a/src/libgnurx.mk
+++ b/src/libgnurx.mk
@@ -3,20 +3,18 @@
PKG := libgnurx
$(PKG)_IGNORE :=
-$(PKG)_VERSION := 2.5.1
-$(PKG)_CHECKSUM := 7147b7f806ec3d007843b38e19f42a5b7c65894a57ffc297a76b0dcd5f675d76
+$(PKG)_VERSION := 2.6.1
+$(PKG)_CHECKSUM := ee6edc110c6b63d0469f4f05ef187564b310cc8a88b6566310a4aebd48b612c7
$(PKG)_SUBDIR := mingw-libgnurx-$($(PKG)_VERSION)
$(PKG)_FILE := mingw-libgnurx-$($(PKG)_VERSION)-src.tar.gz
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/mingw/Other/UserContributed/regex/mingw-regex-$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_URL := https://github.com/TimothyGu/libgnurx/releases/download/libgnurx-$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
- $(WGET) -q -O- 'http://sourceforge.net/projects/mingw/files/Other/UserContributed/regex/' | \
- grep 'mingw-regex-' | \
- $(SED) -n 's,.*mingw-regex-\([0-9\.]*\).*,\1,p' | \
- $(SORT) | \
- uniq | \
- tail -1
+ $(WGET) -q -O- 'https://api.github.com/repos/TimothyGu/libgnurx/git/refs/tags/' \
+ | $(SED) -n 's#.*"ref": "refs/tags/libgnurx-\([^"]*\).*#\1#p' \
+ | $(SORT) -V \
+ | tail -1
endef
define $(PKG)_BUILD
From 196a2414d8df36bed504dff3f509a43ca63819c3 Mon Sep 17 00:00:00 2001
From: fiesh
Date: Mon, 14 Dec 2015 18:40:06 +0100
Subject: [PATCH 0242/1463] also build and install FreeImagePlus
---
src/freeimage-test.cpp | 15 +++++++++++++++
src/freeimage.mk | 23 ++++++++++++++++++++++-
2 files changed, 37 insertions(+), 1 deletion(-)
create mode 100644 src/freeimage-test.cpp
diff --git a/src/freeimage-test.cpp b/src/freeimage-test.cpp
new file mode 100644
index 00000000..10a4eb1b
--- /dev/null
+++ b/src/freeimage-test.cpp
@@ -0,0 +1,15 @@
+/*
+ * This file is part of MXE.
+ * See index.html for further information.
+ */
+
+#include
+
+int main()
+{
+ fipImage fi;
+
+ fi.setSize(FIT_BITMAP, 800, 600, 24);
+
+ return 0;
+}
diff --git a/src/freeimage.mk b/src/freeimage.mk
index 6b9f8c17..bb85db2d 100644
--- a/src/freeimage.mk
+++ b/src/freeimage.mk
@@ -25,12 +25,22 @@ define $(PKG)_BUILD
FREEIMAGE_LIBRARY_TYPE=STATIC \
TARGET=freeimage
+ $(MAKE) -C '$(1)' -j '$(JOBS)' -f Makefile.fip \
+ CXX='$(TARGET)-g++' \
+ CXXFLAGS='-DFREEIMAGE_LIB' \
+ CC='$(TARGET)-gcc' \
+ AR='$(TARGET)-ar' \
+ RC='$(TARGET)-windres' \
+ libfreeimageplus.a
+
$(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
$(INSTALL) -m644 '$(1)/libfreeimage.a' '$(PREFIX)/$(TARGET)/lib/'
+ $(INSTALL) -m644 '$(1)/libfreeimageplus.a' '$(PREFIX)/$(TARGET)/lib/'
$(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
$(INSTALL) -m644 '$(1)/Source/FreeImage.h' '$(PREFIX)/$(TARGET)/include/'
+ $(INSTALL) -m644 '$(1)/Wrapper/FreeImagePlus/FreeImagePlus.h' '$(PREFIX)/$(TARGET)/include/'
- # create pkg-config file
+ # create pkg-config files
$(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig'
(echo 'Name: freeimage'; \
echo 'Version: $(freeimage_VERSION)'; \
@@ -38,11 +48,22 @@ define $(PKG)_BUILD
echo 'Cflags: -DFREEIMAGE_LIB'; \
echo 'Libs: -lfreeimage -lws2_32 -lstdc++';) \
> '$(PREFIX)/$(TARGET)/lib/pkgconfig/freeimage.pc'
+ (echo 'Name: freeimageplus'; \
+ echo 'Version: $(freeimage_VERSION)'; \
+ echo "Description: FreeImagePlus"; \
+ echo 'Cflags: -DFREEIMAGE_LIB'; \
+ echo 'Libs: -lfreeimage -lfreeimageplus -lws2_32';) \
+ > '$(PREFIX)/$(TARGET)/lib/pkgconfig/freeimageplus.pc'
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-freeimage.exe' \
`'$(TARGET)-pkg-config' freeimage --cflags --libs`
+
+ '$(TARGET)-g++' \
+ -W -Wall -Werror -ansi -pedantic \
+ '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-freeimageplus.exe' \
+ `'$(TARGET)-pkg-config' freeimageplus --cflags --libs`
endef
$(PKG)_BUILD_SHARED =
From 11aee96888b744a41130bc729d862766a3863508 Mon Sep 17 00:00:00 2001
From: Tony Theodore
Date: Sun, 20 Dec 2015 15:27:49 +1100
Subject: [PATCH 0243/1463] Makefile: add link to gmake issue with spaces in
filenames
---
Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Makefile b/Makefile
index e9e35269..1f439009 100644
--- a/Makefile
+++ b/Makefile
@@ -224,6 +224,8 @@ DOWNLOAD_PKG_ARCHIVE = \
echo; \
rm -f '$(PKG_DIR)/$($(1)_FILE)'; )
+# open issue from 2002:
+# http://savannah.gnu.org/bugs/?712
ifneq ($(words $(PWD)),1)
$(error GNU Make chokes on paths with spaces)
endif
From c26f3225fba8ffe9dd54db759d4680a1314d350f Mon Sep 17 00:00:00 2001
From: Tony Theodore
Date: Sun, 20 Dec 2015 18:30:43 +1100
Subject: [PATCH 0244/1463] libass: remove obsolete --disable-enca option
See: https://github.com/mxe/mxe/pull/912#issuecomment-146729301
---
src/libass.mk | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/libass.mk b/src/libass.mk
index d54d3006..428beb51 100644
--- a/src/libass.mk
+++ b/src/libass.mk
@@ -20,7 +20,6 @@ define $(PKG)_BUILD
# fontconfig is only required for legacy XP support
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
- --disable-enca \
--enable-fontconfig \
--enable-harfbuzz
$(MAKE) -C '$(1)' -j '$(JOBS)'
From 2ffb7835cd8ea163ee4dadf11784b6d893631ea8 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Sat, 19 Dec 2015 01:50:48 +0300
Subject: [PATCH 0245/1463] vtk: consolidate patches
---
...-mingw-w64-git.patch => vtk-1-fixes.patch} | 339 +++++++++++++++++-
src/vtk-1-tryrun.patch | 36 --
src/vtk-2-findfreetype.patch | 16 -
src/vtk-3-compile-tools.patch | 140 --------
src/vtk-4-native-no-gui.patch | 19 -
src/vtk-5-module-path.patch | 27 --
src/vtk-6-kfreebsd.patch | 15 -
src/vtk-8-mingw-w64-extra.patch | 28 --
8 files changed, 326 insertions(+), 294 deletions(-)
rename src/{vtk-7-mingw-w64-git.patch => vtk-1-fixes.patch} (85%)
delete mode 100644 src/vtk-1-tryrun.patch
delete mode 100644 src/vtk-2-findfreetype.patch
delete mode 100644 src/vtk-3-compile-tools.patch
delete mode 100644 src/vtk-4-native-no-gui.patch
delete mode 100644 src/vtk-5-module-path.patch
delete mode 100644 src/vtk-6-kfreebsd.patch
delete mode 100644 src/vtk-8-mingw-w64-extra.patch
diff --git a/src/vtk-7-mingw-w64-git.patch b/src/vtk-1-fixes.patch
similarity index 85%
rename from src/vtk-7-mingw-w64-git.patch
rename to src/vtk-1-fixes.patch
index 9a3f4919..4d354671 100644
--- a/src/vtk-7-mingw-w64-git.patch
+++ b/src/vtk-1-fixes.patch
@@ -1,19 +1,301 @@
This file is part of MXE.
See index.html for further information.
-This patch has been taken from the git url below:
+Contains ad hoc patches for cross building.
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Muellni
+Date: Tue, 25 Oct 2011 23:32:42 +0200
+Subject: [PATCH] add file TryRunResults.cmake
+
+
+diff --git a/TryRunResults.cmake b/TryRunResults.cmake
+new file mode 100644
+index 1111111..2222222
+--- /dev/null
++++ b/TryRunResults.cmake
+@@ -0,0 +1,30 @@
++SET( VTK_TYPE_CHAR_IS_SIGNED
++ "1"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++SET( VTK_ANSI_STREAM_EOF_RESULT
++ "1"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++SET( KWSYS_CHAR_IS_SIGNED
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++
++SET( KWSYS_CHAR_IS_SIGNED__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++
++SET( CMAKE_REQUIRE_LARGE_FILE_SUPPORT
++ ""
++ CACHE STRING "Result from TRY_RUN" FORCE)
++
++SET( CMAKE_REQUIRE_LARGE_FILE_SUPPORT__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++
++SET( KWSYS_LFS_WORKS
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++
++SET( KWSYS_LFS_WORKS__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Muellni
+Date: Tue, 25 Oct 2011 23:32:42 +0200
+Subject: [PATCH] PATH_SUFFIXES freetype2
+
+This patch has been taken from:
+http://www.vtk.org/Bug/view.php?id=12688
+
+diff --git a/CMake/FindFREETYPE.cmake b/CMake/FindFREETYPE.cmake
+index 1111111..2222222 100644
+--- a/CMake/FindFREETYPE.cmake
++++ b/CMake/FindFREETYPE.cmake
+@@ -15,6 +15,7 @@ FIND_PATH(FREETYPE_INCLUDE_DIR_FT2BUILD ft2build.h)
+ FIND_PATH(FREETYPE_INCLUDE_DIR_FTHEADER freetype/config/ftheader.h
+ /usr/include/freetype2
+ /usr/local/include/freetype2
++ PATH_SUFFIXES freetype2
+ )
+
+ FIND_LIBRARY(FREETYPE_LIBRARY freetype)
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Muellni
+Date: Mon, 31 Oct 2011 09:04:03 +0100
+Subject: [PATCH] building without wine
+
+merged compile tools patches into one patch file and added
+a CompileTools target for compiling only the compile tools
+during the native build
+
+This patch has been taken from:
+http://www.vtk.org/Bug/view.php?id=12686
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1111111..2222222 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -42,6 +42,10 @@ IF(NOT EXPORT_EXECUTABLES_FILE)
+ FILE(WRITE "${EXPORT_EXECUTABLES_FILE}" "#generated by VTK, do not edit\n")
+ ENDIF(NOT EXPORT_EXECUTABLES_FILE)
+
++# Add a target for building only the compile tools
++ADD_CUSTOM_TARGET(CompileTools)
++SET(COMPILE_TOOLS_TARGET "CompileTools")
++
+ GET_PROPERTY(VTK_TARGET_SUPPORTS_SHARED_LIBS
+ GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS)
+
+diff --git a/Utilities/kwsys/CMakeLists.txt b/Utilities/kwsys/CMakeLists.txt
+index 1111111..2222222 100644
+--- a/Utilities/kwsys/CMakeLists.txt
++++ b/Utilities/kwsys/CMakeLists.txt
+@@ -937,13 +937,20 @@ ENDIF(KWSYS_USE_String)
+ # file and build it into the library. Win9x platforms reproduce the
+ # executable into a temporary directory when it is needed.
+ IF(KWSYS_USE_Process)
+- IF(NOT UNIX)
++ IF(NOT CMAKE_CROSSCOMPILING)
+ # Build the forwarding executable itself and a program that will
+ # encode it into a C file.
+- ADD_EXECUTABLE(${KWSYS_NAMESPACE}ProcessFwd9x ProcessFwd9x.c)
+ ADD_EXECUTABLE(${KWSYS_NAMESPACE}EncodeExecutable EncodeExecutable.c)
+- KWSYS_SET_PROPERTY(TARGET ${KWSYS_NAMESPACE}ProcessFwd9x PROPERTY LABELS ${KWSYS_LABELS_EXE})
+ KWSYS_SET_PROPERTY(TARGET ${KWSYS_NAMESPACE}EncodeExecutable PROPERTY LABELS ${KWSYS_LABELS_EXE})
++ EXPORT(TARGETS ${KWSYS_NAMESPACE}EncodeExecutable FILE ${EXPORT_EXECUTABLES_FILE} NAMESPACE "${EXPORT_EXECUTABLES_NAMESPACE}" APPEND)
++ IF(COMPILE_TOOLS_TARGET)
++ ADD_DEPENDENCIES(${COMPILE_TOOLS_TARGET} ${KWSYS_NAMESPACE}EncodeExecutable)
++ ENDIF(COMPILE_TOOLS_TARGET)
++ ENDIF(NOT CMAKE_CROSSCOMPILING)
++
++ IF(NOT UNIX)
++ ADD_EXECUTABLE(${KWSYS_NAMESPACE}ProcessFwd9x ProcessFwd9x.c)
++ KWSYS_SET_PROPERTY(TARGET ${KWSYS_NAMESPACE}ProcessFwd9x PROPERTY LABELS ${KWSYS_LABELS_EXE})
+
+ # Construct the location of the executable to be encoded.
+ SET(BIN_DIR ${CMAKE_CURRENT_BINARY_DIR})
+@@ -957,24 +964,23 @@ IF(KWSYS_USE_Process)
+ ENDIF(CMAKE_BUILD_TOOL MATCHES "make")
+
+ # Take advantage of a better custom command syntax if possible.
+- SET(CMD ${BIN_DIR}${CFG_INTDIR}/${KWSYS_NAMESPACE}EncodeExecutable.exe)
+ SET(FWD ${BIN_DIR}${CFG_INTDIR}/${KWSYS_NAMESPACE}ProcessFwd9x.exe)
+ IF("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 1.6)
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${KWSYS_NAMESPACE}ProcessFwd9xEnc.c
+- COMMAND ${CMD}
++ COMMAND ${KWSYS_NAMESPACE}EncodeExecutable
+ ARGS ${FWD} ${CMAKE_CURRENT_BINARY_DIR}/${KWSYS_NAMESPACE}ProcessFwd9xEnc.c
+ ${KWSYS_NAMESPACE} ProcessFwd9x
+- DEPENDS ${CMD} ${FWD})
++ DEPENDS ${KWSYS_NAMESPACE}EncodeExecutable ${FWD})
+ ELSE("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 1.6)
+ ADD_CUSTOM_COMMAND(
+ TARGET ${KWSYS_NAMESPACE}
+ SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/ProcessFwd9x.c
+- COMMAND ${CMD}
++ COMMAND ${KWSYS_NAMESPACE}EncodeExecutable
+ ARGS ${FWD} ${CMAKE_CURRENT_BINARY_DIR}/${KWSYS_NAMESPACE}ProcessFwd9xEnc.c
+ ${KWSYS_NAMESPACE} ProcessFwd9x
+ OUTPUTS ${CMAKE_CURRENT_BINARY_DIR}/${KWSYS_NAMESPACE}ProcessFwd9xEnc.c
+- DEPENDS ${CMD} ${FWD})
++ DEPENDS ${KWSYS_NAMESPACE}EncodeExecutable ${FWD})
+ ENDIF("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 1.6)
+
+ # Make sure build occurs in proper order.
+diff --git a/Utilities/vtkhdf5/src/CMakeLists.txt b/Utilities/vtkhdf5/src/CMakeLists.txt
+index 1111111..2222222 100644
+--- a/Utilities/vtkhdf5/src/CMakeLists.txt
++++ b/Utilities/vtkhdf5/src/CMakeLists.txt
+@@ -572,34 +572,40 @@ INCLUDE_DIRECTORIES (${CMAKE_BINARY_DIR})
+ # Setup the H5Detect utility which generates H5Tinit with platform
+ # specific type checks inside
+ #-----------------------------------------------------------------------------
+-SET (CMD ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}${CFG_INIT}/H5detect${EXE_EXT})
+-IF (XCODE)
+- SET (CMD "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/\${CONFIGURATION}/H5detect")
+-ENDIF (XCODE)
+-ADD_EXECUTABLE (H5detect ${HDF5_SRC_DIR}/H5detect.c)
+-IF (WIN32)
+- TARGET_LINK_LIBRARIES (H5detect "ws2_32.lib")
+-ENDIF (WIN32)
++IF(NOT CMAKE_CROSSCOMPILING)
++ ADD_EXECUTABLE (H5detect ${HDF5_SRC_DIR}/H5detect.c)
++ IF (WIN32)
++ TARGET_LINK_LIBRARIES (H5detect "ws2_32.lib")
++ ENDIF (WIN32)
++
++ EXPORT(TARGETS H5detect FILE ${EXPORT_EXECUTABLES_FILE} NAMESPACE "${EXPORT_EXECUTABLES_NAMESPACE}" APPEND)
++ IF(COMPILE_TOOLS_TARGET)
++ ADD_DEPENDENCIES(${COMPILE_TOOLS_TARGET} H5detect)
++ ENDIF(COMPILE_TOOLS_TARGET)
++ENDIF(NOT CMAKE_CROSSCOMPILING)
+
+ ADD_CUSTOM_COMMAND (
+ OUTPUT ${HDF5_BINARY_DIR}/H5Tinit.c
+- COMMAND ${CMD}
++ COMMAND H5detect
+ ARGS > ${HDF5_BINARY_DIR}/H5Tinit.c
+ DEPENDS H5detect
+ )
+
+-SET (CMDL ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}${CFG_INIT}/H5make_libsettings${EXE_EXT})
+-IF (XCODE)
+- SET (CMDL "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/\${CONFIGURATION}/H5make_libsettings")
+-ENDIF (XCODE)
+-ADD_EXECUTABLE (H5make_libsettings ${HDF5_SRC_DIR}/H5make_libsettings.c)
+-IF (WIN32)
+- TARGET_LINK_LIBRARIES (H5make_libsettings "ws2_32.lib")
+-ENDIF (WIN32)
++IF(NOT CMAKE_CROSSCOMPILING)
++ ADD_EXECUTABLE (H5make_libsettings ${HDF5_SRC_DIR}/H5make_libsettings.c)
++ IF (WIN32)
++ TARGET_LINK_LIBRARIES (H5make_libsettings "ws2_32.lib")
++ ENDIF (WIN32)
++
++ EXPORT(TARGETS H5make_libsettings FILE ${EXPORT_EXECUTABLES_FILE} NAMESPACE "${EXPORT_EXECUTABLES_NAMESPACE}" APPEND)
++ IF(COMPILE_TOOLS_TARGET)
++ ADD_DEPENDENCIES(${COMPILE_TOOLS_TARGET} H5make_libsettings)
++ ENDIF(COMPILE_TOOLS_TARGET)
++ENDIF(NOT CMAKE_CROSSCOMPILING)
+
+ ADD_CUSTOM_COMMAND (
+ OUTPUT ${HDF5_BINARY_DIR}/H5lib_settings.c
+- COMMAND ${CMDL}
++ COMMAND H5make_libsettings
+ ARGS > ${HDF5_BINARY_DIR}/H5lib_settings.c
+ DEPENDS H5make_libsettings
+ )
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Tony Theodore
+Date: Tue, 22 Nov 2011 22:18:31 +1100
+Subject: [PATCH] disable gui components in native build
+
+
+diff --git a/Utilities/CMakeLists.txt b/Utilities/CMakeLists.txt
+index 1111111..2222222 100644
+--- a/Utilities/CMakeLists.txt
++++ b/Utilities/CMakeLists.txt
+@@ -68,10 +68,8 @@ IF(VTK_USE_PARALLEL)
+ VTK_THIRD_PARTY_SUBDIR(Cosmo Cosmo)
+ ENDIF(VTK_USE_PARALLEL)
+
+-IF(VTK_USE_RENDERING)
+- ADD_SUBDIRECTORY(ftgl)
+- ADD_SUBDIRECTORY(ParseOGLExt)
+-ENDIF(VTK_USE_RENDERING)
++ADD_SUBDIRECTORY(ftgl)
++ADD_SUBDIRECTORY(ParseOGLExt)
+
+ IF(NOT VTK_INSTALL_NO_DEVELOPMENT)
+ INSTALL(FILES
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Tony Theodore
+Date: Wed, 23 Nov 2011 20:31:10 +1100
+Subject: [PATCH] fix third party module search path
+
+This patch has been taken from:
+http://www.vtk.org/Bug/view.php?id=12746
+
+diff --git a/CMake/vtkThirdParty.cmake b/CMake/vtkThirdParty.cmake
+index 1111111..2222222 100644
+--- a/CMake/vtkThirdParty.cmake
++++ b/CMake/vtkThirdParty.cmake
+@@ -3,11 +3,11 @@ MACRO(VTK_THIRD_PARTY_OPTION upper lower)
+ OPTION(VTK_USE_SYSTEM_${upper} "Use the system's ${lower} library." OFF)
+ MARK_AS_ADVANCED(VTK_USE_SYSTEM_${upper})
+ IF(VTK_USE_SYSTEM_${upper})
+- IF(EXISTS ${CMAKE_ROOT}/Modules/Find${upper}.cmake)
+- INCLUDE(${CMAKE_ROOT}/Modules/Find${upper}.cmake)
+- ELSE(EXISTS ${CMAKE_ROOT}/Modules/Find${upper}.cmake)
++ IF(EXISTS ${VTK_CMAKE_DIR}/Find${upper}.cmake)
+ INCLUDE(${VTK_CMAKE_DIR}/Find${upper}.cmake)
+- ENDIF(EXISTS ${CMAKE_ROOT}/Modules/Find${upper}.cmake)
++ ELSE(EXISTS ${VTK_CMAKE_DIR}/Find${upper}.cmake)
++ INCLUDE(${CMAKE_ROOT}/Modules/Find${upper}.cmake)
++ ENDIF(EXISTS ${VTK_CMAKE_DIR}/Find${upper}.cmake)
+ MARK_AS_ADVANCED(${upper}_INCLUDE_DIR ${upper}_LIBRARY)
+ IF(${upper}_FOUND)
+ SET(VTK_${upper}_LIBRARIES ${${upper}_LIBRARIES})
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Tony Theodore
+Date: Mon, 28 Nov 2011 00:24:59 +1100
+Subject: [PATCH] portability fix for Debian kFreeBSD
+
+
+diff --git a/Utilities/vtkhdf5/src/H5private.h b/Utilities/vtkhdf5/src/H5private.h
+index 1111111..2222222 100644
+--- a/Utilities/vtkhdf5/src/H5private.h
++++ b/Utilities/vtkhdf5/src/H5private.h
+@@ -141,7 +141,7 @@
+ # include
+ #endif
+ /* Prevent compile errors with GCC 4.3 on Solaris 2.10 */
+-#if defined (__SVR4) && defined (__sun)
++#if defined (__SVR4) && defined (__sun) || defined(__FreeBSD_kernel__) && defined(__GLIBC__)
+ /* In file included from /usr/include/sys/klwp.h:19,
+ * from /usr/include/sys/thread.h:13,
+ * from /usr/include/sys/proc.h:20,
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: David Partyka
-Date: Wed, 21 Sep 2011 13:19:30 +0000 (-0400)
-Subject: Merge branch '11742_mingw64_compile_fixes' into release
-X-Git-Tag: v5.10.0-rc1~108^2~1
-X-Git-Url: http://vtk.org/gitweb?p=VTK.git;a=commitdiff_plain;h=be64234e8399145f1e2c099500779a9bcff75702;hp=7b4ad680f6b2b4b4211baf47de6588308db7e14f
+Date: Wed, 21 Sep 2011 13:19:30 -0400
+Subject: [PATCH] Merge branch '11742_mingw64_compile_fixes' into release
-Merge branch '11742_mingw64_compile_fixes' into release
----
diff --git a/Common/vtkWin32Header.h b/Common/vtkWin32Header.h
-index 81b094a..a3edb90 100644
+index 1111111..2222222 100644
--- a/Common/vtkWin32Header.h
+++ b/Common/vtkWin32Header.h
@@ -102,9 +102,15 @@ Do_not_include_vtkWin32Header_directly__vtkSystemIncludes_includes_it;
@@ -33,7 +315,7 @@ index 81b094a..a3edb90 100644
#endif
diff --git a/Hybrid/vtkVideoSource.cxx b/Hybrid/vtkVideoSource.cxx
-index 1fcdbe1..c40b845 100644
+index 1111111..2222222 100644
--- a/Hybrid/vtkVideoSource.cxx
+++ b/Hybrid/vtkVideoSource.cxx
@@ -32,9 +32,9 @@
@@ -522,7 +804,7 @@ index 1fcdbe1..c40b845 100644
this->UnpackRasterLine(outPtrTmp,inPtrTmp,inPadX,outX);
}
diff --git a/Rendering/vtkFreeTypeTools.cxx b/Rendering/vtkFreeTypeTools.cxx
-index 7443693..681fae6 100644
+index 1111111..2222222 100644
--- a/Rendering/vtkFreeTypeTools.cxx
+++ b/Rendering/vtkFreeTypeTools.cxx
@@ -222,7 +222,7 @@ vtkFreeTypeToolsFaceRequester(FTC_FaceID face_id,
@@ -535,7 +817,7 @@ index 7443693..681fae6 100644
// Fonts, organized by [Family][Bold][Italic]
static EmbeddedFontStruct EmbeddedFonts[3][2][2] =
diff --git a/Rendering/vtkFreeTypeUtilities.cxx b/Rendering/vtkFreeTypeUtilities.cxx
-index 629e5da..2d140a8 100644
+index 1111111..2222222 100644
--- a/Rendering/vtkFreeTypeUtilities.cxx
+++ b/Rendering/vtkFreeTypeUtilities.cxx
@@ -337,7 +337,7 @@ vtkFreeTypeUtilitiesFaceRequester(FTC_FaceID face_id,
@@ -548,7 +830,7 @@ index 629e5da..2d140a8 100644
// Fonts, organized by [Family][Bold][Italic]
diff --git a/Rendering/vtkWin32OpenGLRenderWindow.cxx b/Rendering/vtkWin32OpenGLRenderWindow.cxx
-index a4485d2..6b6e6b4 100644
+index 1111111..2222222 100644
--- a/Rendering/vtkWin32OpenGLRenderWindow.cxx
+++ b/Rendering/vtkWin32OpenGLRenderWindow.cxx
@@ -75,9 +75,9 @@ vtkWin32OpenGLRenderWindow::~vtkWin32OpenGLRenderWindow()
@@ -1346,7 +1628,7 @@ index a4485d2..6b6e6b4 100644
SetCursor((HCURSOR)cursor);
}
diff --git a/Rendering/vtkWin32RenderWindowInteractor.cxx b/Rendering/vtkWin32RenderWindowInteractor.cxx
-index a53bbc8..8a3dc63 100644
+index 1111111..2222222 100644
--- a/Rendering/vtkWin32RenderWindowInteractor.cxx
+++ b/Rendering/vtkWin32RenderWindowInteractor.cxx
@@ -17,10 +17,12 @@
@@ -2110,3 +2392,34 @@ index a53bbc8..8a3dc63 100644
return 0;
}
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Tony Theodore
+Date: Sun, 23 Jun 2013 04:50:32 +1000
+Subject: [PATCH] enable mingw-w64 build
+
+This patch has been taken from:
+http://vtk.org/Bug/print_bug_page.php?bug_id=11742
+
+diff --git a/Hybrid/vtkWin32VideoSource.cxx b/Hybrid/vtkWin32VideoSource.cxx
+index 1111111..2222222 100644
+--- a/Hybrid/vtkWin32VideoSource.cxx
++++ b/Hybrid/vtkWin32VideoSource.cxx
+@@ -274,7 +274,7 @@ void vtkWin32VideoSource::Initialize()
+ }
+
+ // set the user data to 'this'
+- vtkSetWindowLong(this->Internal->ParentWnd,vtkGWL_USERDATA,(vtkLONG)this);
++ vtkSetWindowLong(this->Internal->ParentWnd,vtkGWL_USERDATA,(intptr_t)this);
+
+ // Create the capture window
+ this->Internal->CapWnd = capCreateCaptureWindow("Capture",
+@@ -339,7 +339,7 @@ void vtkWin32VideoSource::Initialize()
+ }
+
+ // set user data for callbacks
+- if (!capSetUserData(this->Internal->CapWnd,(long)this))
++ if (!capSetUserData(this->Internal->CapWnd,(intptr_t)this))
+ {
+ vtkErrorMacro(<< "Initialize: couldn't set user data for callback"\
+ << " (" << GetLastError() << ")");
diff --git a/src/vtk-1-tryrun.patch b/src/vtk-1-tryrun.patch
deleted file mode 100644
index 26964c6f..00000000
--- a/src/vtk-1-tryrun.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-This file is part of MXE.
-See index.html for further information.
-
---- blubb 1970-01-01 01:00:00.000000000 +0100
-+++ VTK/TryRunResults.cmake 2011-09-27 08:44:04.563613261 +0200
-@@ -0,0 +1,30 @@
-+SET( VTK_TYPE_CHAR_IS_SIGNED
-+ "1"
-+ CACHE STRING "Result from TRY_RUN" FORCE)
-+SET( VTK_ANSI_STREAM_EOF_RESULT
-+ "1"
-+ CACHE STRING "Result from TRY_RUN" FORCE)
-+SET( KWSYS_CHAR_IS_SIGNED
-+ "0"
-+ CACHE STRING "Result from TRY_RUN" FORCE)
-+
-+SET( KWSYS_CHAR_IS_SIGNED__TRYRUN_OUTPUT
-+ ""
-+ CACHE STRING "Output from TRY_RUN" FORCE)
-+
-+SET( CMAKE_REQUIRE_LARGE_FILE_SUPPORT
-+ ""
-+ CACHE STRING "Result from TRY_RUN" FORCE)
-+
-+SET( CMAKE_REQUIRE_LARGE_FILE_SUPPORT__TRYRUN_OUTPUT
-+ ""
-+ CACHE STRING "Output from TRY_RUN" FORCE)
-+
-+SET( KWSYS_LFS_WORKS
-+ "0"
-+ CACHE STRING "Result from TRY_RUN" FORCE)
-+
-+SET( KWSYS_LFS_WORKS__TRYRUN_OUTPUT
-+ ""
-+ CACHE STRING "Output from TRY_RUN" FORCE)
-+
diff --git a/src/vtk-2-findfreetype.patch b/src/vtk-2-findfreetype.patch
deleted file mode 100644
index 65e874a7..00000000
--- a/src/vtk-2-findfreetype.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-This file is part of MXE.
-See index.html for further information.
-
-This patch has been taken from:
-http://www.vtk.org/Bug/view.php?id=12688
-
---- VTK/CMake/FindFREETYPE.cmake.orig 2011-08-24 15:37:07.000000000 +0200
-+++ VTK/CMake/FindFREETYPE.cmake 2011-10-25 22:55:52.265702464 +0200
-@@ -15,6 +15,7 @@
- FIND_PATH(FREETYPE_INCLUDE_DIR_FTHEADER freetype/config/ftheader.h
- /usr/include/freetype2
- /usr/local/include/freetype2
-+ PATH_SUFFIXES freetype2
- )
-
- FIND_LIBRARY(FREETYPE_LIBRARY freetype)
diff --git a/src/vtk-3-compile-tools.patch b/src/vtk-3-compile-tools.patch
deleted file mode 100644
index 4d1d6dee..00000000
--- a/src/vtk-3-compile-tools.patch
+++ /dev/null
@@ -1,140 +0,0 @@
-This file is part of MXE.
-See index.html for further information.
-
-This patch has been taken from:
-http://www.vtk.org/Bug/view.php?id=12686
-
---- VTK/Utilities/kwsys/CMakeLists.txt 2011-08-24 15:37:12.000000000 +0200
-+++ VTK/Utilities/kwsys/CMakeLists.txt 2011-10-30 00:06:06.402085234 +0200
-@@ -937,13 +937,20 @@
- # file and build it into the library. Win9x platforms reproduce the
- # executable into a temporary directory when it is needed.
- IF(KWSYS_USE_Process)
-- IF(NOT UNIX)
-+ IF(NOT CMAKE_CROSSCOMPILING)
- # Build the forwarding executable itself and a program that will
- # encode it into a C file.
-- ADD_EXECUTABLE(${KWSYS_NAMESPACE}ProcessFwd9x ProcessFwd9x.c)
- ADD_EXECUTABLE(${KWSYS_NAMESPACE}EncodeExecutable EncodeExecutable.c)
-- KWSYS_SET_PROPERTY(TARGET ${KWSYS_NAMESPACE}ProcessFwd9x PROPERTY LABELS ${KWSYS_LABELS_EXE})
- KWSYS_SET_PROPERTY(TARGET ${KWSYS_NAMESPACE}EncodeExecutable PROPERTY LABELS ${KWSYS_LABELS_EXE})
-+ EXPORT(TARGETS ${KWSYS_NAMESPACE}EncodeExecutable FILE ${EXPORT_EXECUTABLES_FILE} NAMESPACE "${EXPORT_EXECUTABLES_NAMESPACE}" APPEND)
-+ IF(COMPILE_TOOLS_TARGET)
-+ ADD_DEPENDENCIES(${COMPILE_TOOLS_TARGET} ${KWSYS_NAMESPACE}EncodeExecutable)
-+ ENDIF(COMPILE_TOOLS_TARGET)
-+ ENDIF(NOT CMAKE_CROSSCOMPILING)
-+
-+ IF(NOT UNIX)
-+ ADD_EXECUTABLE(${KWSYS_NAMESPACE}ProcessFwd9x ProcessFwd9x.c)
-+ KWSYS_SET_PROPERTY(TARGET ${KWSYS_NAMESPACE}ProcessFwd9x PROPERTY LABELS ${KWSYS_LABELS_EXE})
-
- # Construct the location of the executable to be encoded.
- SET(BIN_DIR ${CMAKE_CURRENT_BINARY_DIR})
-@@ -957,24 +964,23 @@
- ENDIF(CMAKE_BUILD_TOOL MATCHES "make")
-
- # Take advantage of a better custom command syntax if possible.
-- SET(CMD ${BIN_DIR}${CFG_INTDIR}/${KWSYS_NAMESPACE}EncodeExecutable.exe)
- SET(FWD ${BIN_DIR}${CFG_INTDIR}/${KWSYS_NAMESPACE}ProcessFwd9x.exe)
- IF("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 1.6)
- ADD_CUSTOM_COMMAND(
- OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${KWSYS_NAMESPACE}ProcessFwd9xEnc.c
-- COMMAND ${CMD}
-+ COMMAND ${KWSYS_NAMESPACE}EncodeExecutable
- ARGS ${FWD} ${CMAKE_CURRENT_BINARY_DIR}/${KWSYS_NAMESPACE}ProcessFwd9xEnc.c
- ${KWSYS_NAMESPACE} ProcessFwd9x
-- DEPENDS ${CMD} ${FWD})
-+ DEPENDS ${KWSYS_NAMESPACE}EncodeExecutable ${FWD})
- ELSE("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 1.6)
- ADD_CUSTOM_COMMAND(
- TARGET ${KWSYS_NAMESPACE}
- SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/ProcessFwd9x.c
-- COMMAND ${CMD}
-+ COMMAND ${KWSYS_NAMESPACE}EncodeExecutable
- ARGS ${FWD} ${CMAKE_CURRENT_BINARY_DIR}/${KWSYS_NAMESPACE}ProcessFwd9xEnc.c
- ${KWSYS_NAMESPACE} ProcessFwd9x
- OUTPUTS ${CMAKE_CURRENT_BINARY_DIR}/${KWSYS_NAMESPACE}ProcessFwd9xEnc.c
-- DEPENDS ${CMD} ${FWD})
-+ DEPENDS ${KWSYS_NAMESPACE}EncodeExecutable ${FWD})
- ENDIF("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 1.6)
-
- # Make sure build occurs in proper order.
-
---- VTK/Utilities/vtkhdf5/src/CMakeLists.txt 2011-08-24 15:37:13.000000000 +0200
-+++ VTK/Utilities/vtkhdf5/src/CMakeLists.txt 2011-10-30 00:13:16.798098058 +0200
-@@ -572,34 +572,40 @@
- # Setup the H5Detect utility which generates H5Tinit with platform
- # specific type checks inside
- #-----------------------------------------------------------------------------
--SET (CMD ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}${CFG_INIT}/H5detect${EXE_EXT})
--IF (XCODE)
-- SET (CMD "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/\${CONFIGURATION}/H5detect")
--ENDIF (XCODE)
--ADD_EXECUTABLE (H5detect ${HDF5_SRC_DIR}/H5detect.c)
--IF (WIN32)
-- TARGET_LINK_LIBRARIES (H5detect "ws2_32.lib")
--ENDIF (WIN32)
-+IF(NOT CMAKE_CROSSCOMPILING)
-+ ADD_EXECUTABLE (H5detect ${HDF5_SRC_DIR}/H5detect.c)
-+ IF (WIN32)
-+ TARGET_LINK_LIBRARIES (H5detect "ws2_32.lib")
-+ ENDIF (WIN32)
-+
-+ EXPORT(TARGETS H5detect FILE ${EXPORT_EXECUTABLES_FILE} NAMESPACE "${EXPORT_EXECUTABLES_NAMESPACE}" APPEND)
-+ IF(COMPILE_TOOLS_TARGET)
-+ ADD_DEPENDENCIES(${COMPILE_TOOLS_TARGET} H5detect)
-+ ENDIF(COMPILE_TOOLS_TARGET)
-+ENDIF(NOT CMAKE_CROSSCOMPILING)
-
- ADD_CUSTOM_COMMAND (
- OUTPUT ${HDF5_BINARY_DIR}/H5Tinit.c
-- COMMAND ${CMD}
-+ COMMAND H5detect
- ARGS > ${HDF5_BINARY_DIR}/H5Tinit.c
- DEPENDS H5detect
- )
-
--SET (CMDL ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}${CFG_INIT}/H5make_libsettings${EXE_EXT})
--IF (XCODE)
-- SET (CMDL "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/\${CONFIGURATION}/H5make_libsettings")
--ENDIF (XCODE)
--ADD_EXECUTABLE (H5make_libsettings ${HDF5_SRC_DIR}/H5make_libsettings.c)
--IF (WIN32)
-- TARGET_LINK_LIBRARIES (H5make_libsettings "ws2_32.lib")
--ENDIF (WIN32)
-+IF(NOT CMAKE_CROSSCOMPILING)
-+ ADD_EXECUTABLE (H5make_libsettings ${HDF5_SRC_DIR}/H5make_libsettings.c)
-+ IF (WIN32)
-+ TARGET_LINK_LIBRARIES (H5make_libsettings "ws2_32.lib")
-+ ENDIF (WIN32)
-
-+ EXPORT(TARGETS H5make_libsettings FILE ${EXPORT_EXECUTABLES_FILE} NAMESPACE "${EXPORT_EXECUTABLES_NAMESPACE}" APPEND)
-+ IF(COMPILE_TOOLS_TARGET)
-+ ADD_DEPENDENCIES(${COMPILE_TOOLS_TARGET} H5make_libsettings)
-+ ENDIF(COMPILE_TOOLS_TARGET)
-+ENDIF(NOT CMAKE_CROSSCOMPILING)
-+
- ADD_CUSTOM_COMMAND (
- OUTPUT ${HDF5_BINARY_DIR}/H5lib_settings.c
-- COMMAND ${CMDL}
-+ COMMAND H5make_libsettings
- ARGS > ${HDF5_BINARY_DIR}/H5lib_settings.c
- DEPENDS H5make_libsettings
- )
-
---- VTK/CMakeLists.txt 2011-08-24 15:37:07.000000000 +0200
-+++ VTK/CMakeLists.txt 2011-10-31 09:12:59.451958504 +0100
-@@ -42,8 +42,13 @@
- FILE(WRITE "${EXPORT_EXECUTABLES_FILE}" "#generated by VTK, do not edit\n")
- ENDIF(NOT EXPORT_EXECUTABLES_FILE)
-
-+# Add a target for building only the compile tools
-+ADD_CUSTOM_TARGET(CompileTools)
-+SET(COMPILE_TOOLS_TARGET "CompileTools")
-+
- GET_PROPERTY(VTK_TARGET_SUPPORTS_SHARED_LIBS
- GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS)
-+
-
- # Warn when using "old style" CMake install commands... But only when
- # building VTK itself.
diff --git a/src/vtk-4-native-no-gui.patch b/src/vtk-4-native-no-gui.patch
deleted file mode 100644
index 0cec3b2f..00000000
--- a/src/vtk-4-native-no-gui.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-This file is part of MXE.
-See index.html for further information.
-
-diff -r 26cf498f1dac Utilities/CMakeLists.txt
---- a/Utilities/CMakeLists.txt Tue Nov 22 18:02:40 2011 +1100
-+++ b/Utilities/CMakeLists.txt Tue Nov 22 18:04:01 2011 +1100
-@@ -68,10 +68,8 @@
- VTK_THIRD_PARTY_SUBDIR(Cosmo Cosmo)
- ENDIF(VTK_USE_PARALLEL)
-
--IF(VTK_USE_RENDERING)
-- ADD_SUBDIRECTORY(ftgl)
-- ADD_SUBDIRECTORY(ParseOGLExt)
--ENDIF(VTK_USE_RENDERING)
-+ADD_SUBDIRECTORY(ftgl)
-+ADD_SUBDIRECTORY(ParseOGLExt)
-
- IF(NOT VTK_INSTALL_NO_DEVELOPMENT)
- INSTALL(FILES
diff --git a/src/vtk-5-module-path.patch b/src/vtk-5-module-path.patch
deleted file mode 100644
index dbef88d5..00000000
--- a/src/vtk-5-module-path.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-This file is part of MXE.
-See index.html for further information.
-
-This patch has been taken from:
-
-http://www.vtk.org/Bug/view.php?id=12746
-
-diff -r 39846999f521 CMake/vtkThirdParty.cmake
---- a/CMake/vtkThirdParty.cmake Wed Nov 23 19:06:30 2011 +1100
-+++ b/CMake/vtkThirdParty.cmake Wed Nov 23 19:10:41 2011 +1100
-@@ -3,11 +3,11 @@
- OPTION(VTK_USE_SYSTEM_${upper} "Use the system's ${lower} library." OFF)
- MARK_AS_ADVANCED(VTK_USE_SYSTEM_${upper})
- IF(VTK_USE_SYSTEM_${upper})
-- IF(EXISTS ${CMAKE_ROOT}/Modules/Find${upper}.cmake)
-- INCLUDE(${CMAKE_ROOT}/Modules/Find${upper}.cmake)
-- ELSE(EXISTS ${CMAKE_ROOT}/Modules/Find${upper}.cmake)
-- INCLUDE(${VTK_CMAKE_DIR}/Find${upper}.cmake)
-- ENDIF(EXISTS ${CMAKE_ROOT}/Modules/Find${upper}.cmake)
-+ IF(EXISTS ${VTK_CMAKE_DIR}/Find${upper}.cmake)
-+ INCLUDE(${VTK_CMAKE_DIR}/Find${upper}.cmake)
-+ ELSE(EXISTS ${VTK_CMAKE_DIR}/Find${upper}.cmake)
-+ INCLUDE(${CMAKE_ROOT}/Modules/Find${upper}.cmake)
-+ ENDIF(EXISTS ${VTK_CMAKE_DIR}/Find${upper}.cmake)
- MARK_AS_ADVANCED(${upper}_INCLUDE_DIR ${upper}_LIBRARY)
- IF(${upper}_FOUND)
- SET(VTK_${upper}_LIBRARIES ${${upper}_LIBRARIES})
diff --git a/src/vtk-6-kfreebsd.patch b/src/vtk-6-kfreebsd.patch
deleted file mode 100644
index 30ab7471..00000000
--- a/src/vtk-6-kfreebsd.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-This file is part of MXE.
-See index.html for further information.
-
-diff -ur VTK.orig/Utilities/vtkhdf5/src/H5private.h VTK/Utilities/vtkhdf5/src/H5private.h
---- VTK.orig/Utilities/vtkhdf5/src/H5private.h 2011-11-28 00:12:17.000000000 +1100
-+++ VTK/Utilities/vtkhdf5/src/H5private.h 2011-11-28 00:16:22.000000000 +1100
-@@ -141,7 +141,7 @@
- # include
- #endif
- /* Prevent compile errors with GCC 4.3 on Solaris 2.10 */
--#if defined (__SVR4) && defined (__sun)
-+#if defined (__SVR4) && defined (__sun) || defined(__FreeBSD_kernel__) && defined(__GLIBC__)
- /* In file included from /usr/include/sys/klwp.h:19,
- * from /usr/include/sys/thread.h:13,
- * from /usr/include/sys/proc.h:20,
diff --git a/src/vtk-8-mingw-w64-extra.patch b/src/vtk-8-mingw-w64-extra.patch
deleted file mode 100644
index e54b7c03..00000000
--- a/src/vtk-8-mingw-w64-extra.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-This file is part of MXE.
-See index.html for further information.
-
-This patch has been taken from:
-http://vtk.org/Bug/print_bug_page.php?bug_id=11742
-
-diff -ur VTK6.0.0.rc3/Hybrid/vtkWin32VideoSource.cxx VTK6.0.0.rc3.new/IO/Video/vtkWin32VideoSource.cxx
---- VTK6.0.0.rc3/Hybrid/vtkWin32VideoSource.cxx 2013-06-13 05:47:10.000000000 +1000
-+++ VTK6.0.0.rc3.new/Hybrid/vtkWin32VideoSource.cxx 2013-06-22 16:06:01.000000000 +1000
-@@ -274,7 +274,7 @@
- }
-
- // set the user data to 'this'
-- vtkSetWindowLong(this->Internal->ParentWnd,vtkGWL_USERDATA,(vtkLONG)this);
-+ vtkSetWindowLong(this->Internal->ParentWnd,vtkGWL_USERDATA,(intptr_t)this);
-
- // Create the capture window
- this->Internal->CapWnd = capCreateCaptureWindow("Capture",
-@@ -339,7 +339,7 @@
- }
-
- // set user data for callbacks
-- if (!capSetUserData(this->Internal->CapWnd,(long)this))
-+ if (!capSetUserData(this->Internal->CapWnd,(intptr_t)this))
- {
- vtkErrorMacro(<< "Initialize: couldn't set user data for callback"\
- << " (" << GetLastError() << ")");
-
From 57d448048d2faa5dd64b17e9948fc2f3b58a0fde Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Sat, 19 Dec 2015 02:25:38 +0300
Subject: [PATCH 0246/1463] vtk patch: remove style fixes
---
src/vtk-1-fixes.patch | 1978 +----------------------------------------
1 file changed, 8 insertions(+), 1970 deletions(-)
diff --git a/src/vtk-1-fixes.patch b/src/vtk-1-fixes.patch
index 4d354671..cd83ecd2 100644
--- a/src/vtk-1-fixes.patch
+++ b/src/vtk-1-fixes.patch
@@ -293,6 +293,7 @@ From: David Partyka
Date: Wed, 21 Sep 2011 13:19:30 -0400
Subject: [PATCH] Merge branch '11742_mingw64_compile_fixes' into release
+Style fixes were removed by Boris Nagaev .
diff --git a/Common/vtkWin32Header.h b/Common/vtkWin32Header.h
index 1111111..2222222 100644
@@ -318,190 +319,6 @@ diff --git a/Hybrid/vtkVideoSource.cxx b/Hybrid/vtkVideoSource.cxx
index 1111111..2222222 100644
--- a/Hybrid/vtkVideoSource.cxx
+++ b/Hybrid/vtkVideoSource.cxx
-@@ -32,9 +32,9 @@
-
- //---------------------------------------------------------------
- // Important FrameBufferMutex rules:
--//
-+//
- // The frame grabs are generally done asynchronously, and it is necessary
--// to ensure that when the frame buffer is valid when it is being written
-+// to ensure that when the frame buffer is valid when it is being written
- // to or read from
- //
- // The following information can only be changed within a mutex lock,
-@@ -59,8 +59,8 @@
- //
- // AdvanceFrameBuffer()
- //
--// Any methods which might be called asynchronously must lock the
--// mutex before reading the above information, and you must be very
-+// Any methods which might be called asynchronously must lock the
-+// mutex before reading the above information, and you must be very
- // careful when accessing any information except for the above.
- // These methods include the following:
- //
-@@ -74,13 +74,13 @@ vtkStandardNewMacro(vtkVideoSource);
- #if ( _MSC_VER >= 1300 ) // Visual studio .NET
- #pragma warning ( disable : 4311 )
- #pragma warning ( disable : 4312 )
--#endif
-+#endif
-
- //----------------------------------------------------------------------------
- vtkVideoSource::vtkVideoSource()
- {
- int i;
--
-+
- this->Initialized = 0;
-
- this->AutoAdvance = 1;
-@@ -93,7 +93,7 @@ vtkVideoSource::vtkVideoSource()
- {
- this->FrameBufferExtent[i] = 0;
- }
--
-+
- this->Playing = 0;
- this->Recording = 0;
-
-@@ -151,8 +151,8 @@ vtkVideoSource::vtkVideoSource()
-
- //----------------------------------------------------------------------------
- vtkVideoSource::~vtkVideoSource()
--{
-- // we certainly don't want to access a virtual
-+{
-+ // we certainly don't want to access a virtual
- // function after the subclass has destructed!!
- this->vtkVideoSource::ReleaseSystemResources();
-
-@@ -165,10 +165,10 @@ vtkVideoSource::~vtkVideoSource()
- void vtkVideoSource::PrintSelf(ostream& os, vtkIndent indent)
- {
- int idx;
--
-+
- this->Superclass::PrintSelf(os,indent);
--
-- os << indent << "FrameSize: (" << this->FrameSize[0] << ", "
-+
-+ os << indent << "FrameSize: (" << this->FrameSize[0] << ", "
- << this->FrameSize[1] << ", " << this->FrameSize[2] << ")\n";
-
- os << indent << "ClipRegion: (" << this->ClipRegion[0];
-@@ -177,14 +177,14 @@ void vtkVideoSource::PrintSelf(ostream& os, vtkIndent indent)
- os << ", " << this->ClipRegion[idx];
- }
- os << ")\n";
--
-+
- os << indent << "DataSpacing: (" << this->DataSpacing[0];
- for (idx = 1; idx < 3; ++idx)
- {
- os << ", " << this->DataSpacing[idx];
- }
- os << ")\n";
--
-+
- os << indent << "DataOrigin: (" << this->DataOrigin[0];
- for (idx = 1; idx < 3; ++idx)
- {
-@@ -205,7 +205,7 @@ void vtkVideoSource::PrintSelf(ostream& os, vtkIndent indent)
- os << ", " << this->OutputWholeExtent[idx];
- }
- os << ")\n";
--
-+
- os << indent << "FrameRate: " << this->FrameRate << "\n";
-
- os << indent << "FrameCount: " << this->FrameCount << "\n";
-@@ -232,7 +232,7 @@ void vtkVideoSource::PrintSelf(ostream& os, vtkIndent indent)
-
- //----------------------------------------------------------------------------
- // Update the FrameBuffers according to any changes in the FrameBuffer*
--// information.
-+// information.
- // This function should always be called from within a FrameBufferMutex lock
- // and should never be called asynchronously.
- // It sets up the FrameBufferExtent
-@@ -246,10 +246,10 @@ void vtkVideoSource::UpdateFrameBuffer()
- for (i = 0; i < 3; i++)
- {
- oldExt = this->FrameBufferExtent[2*i+1] - this->FrameBufferExtent[2*i] + 1;
-- this->FrameBufferExtent[2*i] = ((this->ClipRegion[2*i] > 0)
-- ? this->ClipRegion[2*i] : 0);
-- this->FrameBufferExtent[2*i+1] = ((this->ClipRegion[2*i+1] <
-- this->FrameSize[i]-1)
-+ this->FrameBufferExtent[2*i] = ((this->ClipRegion[2*i] > 0)
-+ ? this->ClipRegion[2*i] : 0);
-+ this->FrameBufferExtent[2*i+1] = ((this->ClipRegion[2*i+1] <
-+ this->FrameSize[i]-1)
- ? this->ClipRegion[2*i+1] : this->FrameSize[i]-1);
-
- ext[i] = this->FrameBufferExtent[2*i+1] - this->FrameBufferExtent[2*i] + 1;
-@@ -318,20 +318,20 @@ void vtkVideoSource::ReleaseSystemResources()
- //----------------------------------------------------------------------------
- void vtkVideoSource::SetFrameSize(int x, int y, int z)
- {
-- if (x == this->FrameSize[0] &&
-- y == this->FrameSize[1] &&
-+ if (x == this->FrameSize[0] &&
-+ y == this->FrameSize[1] &&
- z == this->FrameSize[2])
- {
- return;
- }
-
-- if (x < 1 || y < 1 || z < 1)
-+ if (x < 1 || y < 1 || z < 1)
- {
- vtkErrorMacro(<< "SetFrameSize: Illegal frame size");
- return;
- }
-
-- if (this->Initialized)
-+ if (this->Initialized)
- {
- this->FrameBufferMutex->Lock();
- this->FrameSize[0] = x;
-@@ -349,7 +349,7 @@ void vtkVideoSource::SetFrameSize(int x, int y, int z)
-
- this->Modified();
- }
--
-+
- //----------------------------------------------------------------------------
- void vtkVideoSource::SetFrameRate(float rate)
- {
-@@ -363,7 +363,7 @@ void vtkVideoSource::SetFrameRate(float rate)
- }
-
- //----------------------------------------------------------------------------
--void vtkVideoSource::SetClipRegion(int x0, int x1, int y0, int y1,
-+void vtkVideoSource::SetClipRegion(int x0, int x1, int y0, int y1,
- int z0, int z1)
- {
- if (this->ClipRegion[0] != x0 || this->ClipRegion[1] != x1 ||
-@@ -371,7 +371,7 @@ void vtkVideoSource::SetClipRegion(int x0, int x1, int y0, int y1,
- this->ClipRegion[4] != z0 || this->ClipRegion[5] != z1)
- {
- this->Modified();
-- if (this->Initialized)
-+ if (this->Initialized)
- { // modify the FrameBufferExtent
- this->FrameBufferMutex->Lock();
- this->ClipRegion[0] = x0; this->ClipRegion[1] = x1;
-@@ -422,7 +422,7 @@ void vtkVideoSource::InternalGrab()
- this->FrameBufferBitsPerPixel + 7)/8;
- bytesPerRow = ((bytesPerRow + this->FrameBufferRowAlignment - 1) /
- this->FrameBufferRowAlignment)*this->FrameBufferRowAlignment;
-- int totalSize = bytesPerRow *
-+ int totalSize = bytesPerRow *
- (this->FrameBufferExtent[3]-this->FrameBufferExtent[2]+1) *
- (this->FrameBufferExtent[5]-this->FrameBufferExtent[4]+1);
-
@@ -432,7 +432,7 @@ void vtkVideoSource::InternalGrab()
ptr = reinterpret_cast(this->FrameBuffer[index])->GetPointer(0);
@@ -511,298 +328,6 @@ index 1111111..2222222 100644
i = totalSize/4;
while (--i >= 0)
-@@ -482,7 +482,7 @@ static inline void vtkSleep(double duration)
-
- //----------------------------------------------------------------------------
- // Sleep until the specified absolute time has arrived.
--// You must pass a handle to the current thread.
-+// You must pass a handle to the current thread.
- // If '0' is returned, then the thread was aborted before or during the wait.
- static int vtkThreadSleep(vtkMultiThreader::ThreadInfo *data, double time)
- {
-@@ -506,7 +506,7 @@ static int vtkThreadSleep(vtkMultiThreader::ThreadInfo *data, double time)
- remaining = 0.1;
- }
-
-- // check to see if we are being told to quit
-+ // check to see if we are being told to quit
- data->ActiveFlagLock->Lock();
- int activeFlag = *(data->ActiveFlag);
- data->ActiveFlagLock->Unlock();
-@@ -527,7 +527,7 @@ static int vtkThreadSleep(vtkMultiThreader::ThreadInfo *data, double time)
- static void *vtkVideoSourceRecordThread(vtkMultiThreader::ThreadInfo *data)
- {
- vtkVideoSource *self = (vtkVideoSource *)(data->UserData);
--
-+
- double startTime = vtkTimerLog::GetUniversalTime();
- double rate = self->GetFrameRate();
- int frame = 0;
-@@ -544,7 +544,7 @@ static void *vtkVideoSourceRecordThread(vtkMultiThreader::ThreadInfo *data)
-
- //----------------------------------------------------------------------------
- // Set the source to grab frames continuously.
--// You should override this as appropriate for your device.
-+// You should override this as appropriate for your device.
- void vtkVideoSource::Record()
- {
- if (this->Playing)
-@@ -559,19 +559,19 @@ void vtkVideoSource::Record()
- this->Recording = 1;
- this->FrameCount = 0;
- this->Modified();
-- this->PlayerThreadId =
-+ this->PlayerThreadId =
- this->PlayerThreader->SpawnThread((vtkThreadFunctionType)\
- &vtkVideoSourceRecordThread,this);
- }
- }
--
-+
- //----------------------------------------------------------------------------
- // this function runs in an alternate thread to 'play the tape' at the
- // specified frame rate.
- static void *vtkVideoSourcePlayThread(vtkMultiThreader::ThreadInfo *data)
- {
- vtkVideoSource *self = (vtkVideoSource *)(data->UserData);
--
-+
- double startTime = vtkTimerLog::GetUniversalTime();
- double rate = self->GetFrameRate();
- int frame = 0;
-@@ -588,7 +588,7 @@ static void *vtkVideoSourcePlayThread(vtkMultiThreader::ThreadInfo *data)
-
- //----------------------------------------------------------------------------
- // Set the source to play back recorded frames.
--// You should override this as appropriate for your device.
-+// You should override this as appropriate for your device.
- void vtkVideoSource::Play()
- {
- if (this->Recording)
-@@ -602,12 +602,12 @@ void vtkVideoSource::Play()
-
- this->Playing = 1;
- this->Modified();
-- this->PlayerThreadId =
-+ this->PlayerThreadId =
- this->PlayerThreader->SpawnThread((vtkThreadFunctionType)\
- &vtkVideoSourcePlayThread,this);
- }
- }
--
-+
- //----------------------------------------------------------------------------
- // Stop continuous grabbing or playback. You will have to override this
- // if your class overrides Play() and Record()
-@@ -621,7 +621,7 @@ void vtkVideoSource::Stop()
- this->Recording = 0;
- this->Modified();
- }
--}
-+}
-
- //----------------------------------------------------------------------------
- // Rewind back to the frame with the earliest timestamp.
-@@ -665,7 +665,7 @@ void vtkVideoSource::Rewind()
- }
-
- this->FrameBufferMutex->Unlock();
--}
-+}
-
- //----------------------------------------------------------------------------
- // Fast-forward to the frame with the latest timestamp.
-@@ -717,12 +717,12 @@ void vtkVideoSource::FastForward()
- }
-
- this->FrameBufferMutex->Unlock();
--}
-+}
-
- //----------------------------------------------------------------------------
- // Rotate the buffers
- void vtkVideoSource::Seek(int n)
--{
-+{
- this->FrameBufferMutex->Lock();
- this->AdvanceFrameBuffer(n);
- this->FrameIndex = (this->FrameIndex + n) % this->FrameBufferSize;
-@@ -731,7 +731,7 @@ void vtkVideoSource::Seek(int n)
- this->FrameIndex += this->FrameBufferSize;
- }
- this->FrameBufferMutex->Unlock();
-- this->Modified();
-+ this->Modified();
- }
-
- //----------------------------------------------------------------------------
-@@ -798,7 +798,7 @@ void vtkVideoSource::SetOutputFormat(int format)
-
- //----------------------------------------------------------------------------
- // set or change the circular buffer size
--// you will have to override this if you want the buffers
-+// you will have to override this if you want the buffers
- // to be device-specific (i.e. something other than vtkDataArray)
- void vtkVideoSource::SetFrameBufferSize(int bufsize)
- {
-@@ -830,12 +830,12 @@ void vtkVideoSource::SetFrameBufferSize(int bufsize)
- {
- this->FrameBuffer[i] = vtkUnsignedCharArray::New();
- this->FrameBufferTimeStamps[i] = 0.0;
-- }
-+ }
- this->FrameBufferSize = bufsize;
- this->Modified();
- }
- }
-- else
-+ else
- {
- if (bufsize > 0)
- {
-@@ -909,7 +909,7 @@ void vtkVideoSource::SetFrameBufferSize(int bufsize)
- void vtkVideoSource::AdvanceFrameBuffer(int n)
- {
- int i = (this->FrameBufferIndex - n) % this->FrameBufferSize;
-- while (i < 0)
-+ while (i < 0)
- {
- i += this->FrameBufferSize;
- }
-@@ -918,7 +918,7 @@ void vtkVideoSource::AdvanceFrameBuffer(int n)
-
- //----------------------------------------------------------------------------
- double vtkVideoSource::GetFrameTimeStamp(int frame)
--{
-+{
- double timeStamp;
-
- this->FrameBufferMutex->Lock();
-@@ -959,7 +959,7 @@ int vtkVideoSource::RequestInformation(
- // if 'flag' is set in output extent, use the FrameBufferExtent instead
- if (extent[2*i+1] < extent[2*i])
- {
-- extent[2*i] = 0;
-+ extent[2*i] = 0;
- extent[2*i+1] = \
- this->FrameBufferExtent[2*i+1] - this->FrameBufferExtent[2*i];
- }
-@@ -981,7 +981,7 @@ int vtkVideoSource::RequestInformation(
- extent[5] = extent[4] + (extent[5]-extent[4]+1) * numFrames - 1;
-
- outInfo->Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(),extent,6);
--
-+
- // set the spacing
- outInfo->Set(vtkDataObject::SPACING(),this->DataSpacing,3);
-
-@@ -989,7 +989,7 @@ int vtkVideoSource::RequestInformation(
- outInfo->Set(vtkDataObject::ORIGIN(),this->DataOrigin,3);
-
- // set default data type (8 bit greyscale)
-- vtkDataObject::SetPointDataActiveScalarInfo(outInfo, VTK_UNSIGNED_CHAR,
-+ vtkDataObject::SetPointDataActiveScalarInfo(outInfo, VTK_UNSIGNED_CHAR,
- this->NumberOfScalarComponents);
-
- return 1;
-@@ -1000,7 +1000,7 @@ int vtkVideoSource::RequestInformation(
- // unusual pixel packing formats, such as XRGB XBRG BGRX BGR etc.
- // The version below assumes that the packing of the framebuffer is
- // identical to that of the output.
--void vtkVideoSource::UnpackRasterLine(char *outPtr, char *rowPtr,
-+void vtkVideoSource::UnpackRasterLine(char *outPtr, char *rowPtr,
- int start, int count)
- {
- char *inPtr = rowPtr + start*this->NumberOfScalarComponents;
-@@ -1020,7 +1020,7 @@ void vtkVideoSource::UnpackRasterLine(char *outPtr, char *rowPtr,
- //----------------------------------------------------------------------------
- // The Execute method is fairly complex, so I would not recommend overriding
- // it unless you have to. Override the UnpackRasterLine() method instead.
--// You should only have to override it if you are using something other
-+// You should only have to override it if you are using something other
- // than 8-bit vtkUnsignedCharArray for the frame buffer.
- int vtkVideoSource::RequestData(
- vtkInformation *vtkNotUsed(request),
-@@ -1037,9 +1037,9 @@ int vtkVideoSource::RequestData(
- {
- saveOutputExtent[i] = outputExtent[i];
- }
-- // clip to extent to the Z size of one frame
-- outputExtent[4] = this->FrameOutputExtent[4];
-- outputExtent[5] = this->FrameOutputExtent[5];
-+ // clip to extent to the Z size of one frame
-+ outputExtent[4] = this->FrameOutputExtent[4];
-+ outputExtent[5] = this->FrameOutputExtent[5];
-
- int frameExtentX = this->FrameBufferExtent[1]-this->FrameBufferExtent[0]+1;
- int frameExtentY = this->FrameBufferExtent[3]-this->FrameBufferExtent[2]+1;
-@@ -1093,8 +1093,8 @@ int vtkVideoSource::RequestData(
- outPadY = 0;
- }
-
-- int outX = frameExtentX - inPadX;
-- int outY = frameExtentY - inPadY;
-+ int outX = frameExtentX - inPadX;
-+ int outY = frameExtentY - inPadY;
- int outZ; // do outZ later
-
- if (outX > extentX - outPadX)
-@@ -1117,7 +1117,7 @@ int vtkVideoSource::RequestData(
- }
-
- // ditto for number of scalar components
-- if (data->GetNumberOfScalarComponents() !=
-+ if (data->GetNumberOfScalarComponents() !=
- this->LastNumberOfScalarComponents)
- {
- this->LastNumberOfScalarComponents = data->GetNumberOfScalarComponents();
-@@ -1132,7 +1132,7 @@ int vtkVideoSource::RequestData(
- (saveOutputExtent[3]-saveOutputExtent[2]+1)*
- (saveOutputExtent[5]-saveOutputExtent[4]+1)*outIncX);
- this->OutputNeedsInitialization = 0;
-- }
-+ }
-
- // we have to modify the outputExtent of the first frame,
- // because it might be complete (it will be restored after
-@@ -1143,7 +1143,7 @@ int vtkVideoSource::RequestData(
- this->FrameBufferMutex->Lock();
-
- int index = this->FrameBufferIndex;
-- this->FrameTimeStamp =
-+ this->FrameTimeStamp =
- this->FrameBufferTimeStamps[index % this->FrameBufferSize];
-
- int frame;
-@@ -1152,8 +1152,8 @@ int vtkVideoSource::RequestData(
- if (frame == finalFrame)
- {
- outputExtent[5] = finalOutputExtent5;
-- }
--
-+ }
-+
- vtkDataArray *frameBuffer = reinterpret_cast(this->FrameBuffer[(index + frame) % this->FrameBufferSize]);
-
- char *inPtr = reinterpret_cast(frameBuffer->GetVoidPointer(0));
-@@ -1162,7 +1162,7 @@ int vtkVideoSource::RequestData(
- extentZ = outputExtent[5]-outputExtent[4]+1;
- inPadZ = 0;
- outPadZ = -outputExtent[4];
--
-+
- if (outPadZ < 0)
- {
- inPadZ -= outPadZ;
-@@ -1209,7 +1209,7 @@ int vtkVideoSource::RequestData(
- outPtrTmp = outPtr;
- for (j = 0; j < outY; j++)
- {
-- if (outX > 0)
-+ if (outX > 0)
- {
- this->UnpackRasterLine(outPtrTmp,inPtrTmp,inPadX,outX);
- }
diff --git a/Rendering/vtkFreeTypeTools.cxx b/Rendering/vtkFreeTypeTools.cxx
index 1111111..2222222 100644
--- a/Rendering/vtkFreeTypeTools.cxx
@@ -833,362 +358,6 @@ diff --git a/Rendering/vtkWin32OpenGLRenderWindow.cxx b/Rendering/vtkWin32OpenGL
index 1111111..2222222 100644
--- a/Rendering/vtkWin32OpenGLRenderWindow.cxx
+++ b/Rendering/vtkWin32OpenGLRenderWindow.cxx
-@@ -75,9 +75,9 @@ vtkWin32OpenGLRenderWindow::~vtkWin32OpenGLRenderWindow()
- void vtkWin32OpenGLRenderWindow::Clean()
- {
- GLuint id;
--
-+
- /* finish OpenGL rendering */
-- if (this->ContextId)
-+ if (this->ContextId)
- {
- this->MakeCurrent();
-
-@@ -86,7 +86,7 @@ void vtkWin32OpenGLRenderWindow::Clean()
- {
- glDisable((GLenum)cur_light);
- }
--
-+
- /* now delete all textures */
- glDisable(GL_TEXTURE_2D);
- for (int i = 1; i < this->TextureResourceIds->GetNumberOfIds(); i++)
-@@ -106,16 +106,16 @@ void vtkWin32OpenGLRenderWindow::Clean()
- }
-
- this->CleanUpRenderers();
--
-+
- // Note: wglMakeCurrent(NULL,NULL) is valid according to the documentation
- // and works with nVidia and ATI but not with Intel. Passing an existing
- // device context works in any case.
- // see VTK Bug 7119.
-- if(wglMakeCurrent(this->DeviceContext,NULL)!=TRUE)
-+ if(wglMakeCurrent(this->DeviceContext,NULL)!=TRUE)
- {
- vtkErrorMacro("wglMakeCurrent failed in Clean(), error: " << GetLastError());
- }
-- if (wglDeleteContext(this->ContextId) != TRUE)
-+ if (wglDeleteContext(this->ContextId) != TRUE)
- {
- vtkErrorMacro("wglDeleteContext failed in Clean(), error: " << GetLastError());
- }
-@@ -136,7 +136,7 @@ void vtkWin32OpenGLRenderWindow::CleanUpRenderers()
- // destructor)
- vtkRenderer *ren;
- vtkCollectionSimpleIterator rsit;
-- for (this->Renderers->InitTraversal(rsit);
-+ for (this->Renderers->InitTraversal(rsit);
- (ren = this->Renderers->GetNextRenderer(rsit));)
- {
- ren->SetRenderWindow(NULL);
-@@ -144,13 +144,13 @@ void vtkWin32OpenGLRenderWindow::CleanUpRenderers()
- }
- }
-
--LRESULT APIENTRY vtkWin32OpenGLRenderWindow::WndProc(HWND hWnd, UINT message,
-- WPARAM wParam,
-+LRESULT APIENTRY vtkWin32OpenGLRenderWindow::WndProc(HWND hWnd, UINT message,
-+ WPARAM wParam,
- LPARAM lParam)
- {
- LRESULT res;
-
-- vtkWin32OpenGLRenderWindow *me =
-+ vtkWin32OpenGLRenderWindow *me =
- (vtkWin32OpenGLRenderWindow *)vtkGetWindowLong(hWnd,sizeof(vtkLONG));
-
- if (me && me->GetReferenceCount()>0)
-@@ -199,7 +199,7 @@ int vtkWin32OpenGLRenderWindow::GetEventPending()
- return 1;
- }
- }
--
-+
- return 0;
- }
-
-@@ -216,21 +216,21 @@ void vtkWin32OpenGLRenderWindow::MakeCurrent()
- " than the one doing the picking, this can causes crashes"
- " and/or bad pick results");
- }
-- else
-+ else
- {
-- if (wglMakeCurrent(this->DeviceContext, this->ContextId) != TRUE)
-+ if (wglMakeCurrent(this->DeviceContext, this->ContextId) != TRUE)
- {
- LPVOID lpMsgBuf;
-- ::FormatMessage(
-- FORMAT_MESSAGE_ALLOCATE_BUFFER |
-- FORMAT_MESSAGE_FROM_SYSTEM |
-+ ::FormatMessage(
-+ FORMAT_MESSAGE_ALLOCATE_BUFFER |
-+ FORMAT_MESSAGE_FROM_SYSTEM |
- FORMAT_MESSAGE_IGNORE_INSERTS,
- NULL,
- GetLastError(),
- MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
- (LPTSTR) &lpMsgBuf,
- 0,
-- NULL
-+ NULL
- );
- if(lpMsgBuf)
- {
-@@ -243,7 +243,7 @@ void vtkWin32OpenGLRenderWindow::MakeCurrent()
- delete [] wmsg;
- delete [] wtemp;
- #else
-- vtkErrorMacro("wglMakeCurrent failed in MakeCurrent(), error: "
-+ vtkErrorMacro("wglMakeCurrent failed in MakeCurrent(), error: "
- << (LPCTSTR)lpMsgBuf);
- #endif
- ::LocalFree( lpMsgBuf );
-@@ -289,13 +289,13 @@ void vtkWin32OpenGLRenderWindow::SetSize(int x, int y)
- }
- }
- }
--
-+
- else if (this->Mapped)
- {
- if (!resizing)
- {
- resizing = 1;
--
-+
- if (this->ParentId)
- {
- SetWindowExtEx(this->DeviceContext,x,y,NULL);
-@@ -330,7 +330,7 @@ void vtkWin32OpenGLRenderWindow::SetPosition(int x, int y)
- if (!resizing)
- {
- resizing = 1;
--
-+
- SetWindowPos(this->WindowId,HWND_TOP,x,y,
- 0, 0, SWP_NOSIZE | SWP_NOZORDER);
- resizing = 0;
-@@ -426,7 +426,7 @@ const char* vtkWin32OpenGLRenderWindow::ReportCapabilities()
- if (pfd.cColorBits <= 8)
- {
- strm << "class: PseudoColor" << endl;
-- }
-+ }
- else
- {
- strm << "class: TrueColor" << endl;
-@@ -447,14 +447,14 @@ const char* vtkWin32OpenGLRenderWindow::ReportCapabilities()
- strm << "double buffer: False" << endl;
- }
- if (pfd.dwFlags & PFD_STEREO) {
-- strm << "stereo: True" << endl;
-+ strm << "stereo: True" << endl;
- } else {
- strm << "stereo: False" << endl;
- }
- if (pfd.dwFlags & PFD_GENERIC_FORMAT) {
-- strm << "hardware acceleration: False" << endl;
-+ strm << "hardware acceleration: False" << endl;
- } else {
-- strm << "hardware acceleration: True" << endl;
-+ strm << "hardware acceleration: True" << endl;
- }
- strm << "rgba: redSize=" << static_cast(pfd.cRedBits) << " greenSize=" << static_cast(pfd.cGreenBits) << "blueSize=" << static_cast(pfd.cBlueBits) << "alphaSize=" << static_cast(pfd.cAlphaBits) << endl;
- strm << "aux buffers: " << static_cast(pfd.cAuxBuffers)<< endl;
-@@ -463,17 +463,17 @@ const char* vtkWin32OpenGLRenderWindow::ReportCapabilities()
- strm << "accum: redSize=" << static_cast(pfd.cAccumRedBits) << " greenSize=" << static_cast(pfd.cAccumGreenBits) << "blueSize=" << static_cast(pfd.cAccumBlueBits) << "alphaSize=" << static_cast(pfd.cAccumAlphaBits) << endl;
-
- delete[] this->Capabilities;
--
-+
- size_t len = strm.str().length() + 1;
- this->Capabilities = new char[len];
- strncpy(this->Capabilities, strm.str().c_str(), len);
--
-+
- return this->Capabilities;
- }
-
--
--void vtkWin32OpenGLRenderWindow::SetupPixelFormat(HDC hDC, DWORD dwFlags,
-- int debug, int bpp,
-+
-+void vtkWin32OpenGLRenderWindow::SetupPixelFormat(HDC hDC, DWORD dwFlags,
-+ int debug, int bpp,
- int zbpp)
- {
- PIXELFORMATDESCRIPTOR pfd = {
-@@ -505,12 +505,12 @@ void vtkWin32OpenGLRenderWindow::SetupPixelFormat(HDC hDC, DWORD dwFlags,
- if (!(pfd.dwFlags & PFD_SUPPORT_OPENGL))
- {
- #ifdef UNICODE
-- MessageBox(WindowFromDC(hDC),
-+ MessageBox(WindowFromDC(hDC),
- L"Invalid pixel format, no OpenGL support",
- L"Error",
- MB_ICONERROR | MB_OK);
- #else
-- MessageBox(WindowFromDC(hDC),
-+ MessageBox(WindowFromDC(hDC),
- "Invalid pixel format, no OpenGL support",
- "Error",
- MB_ICONERROR | MB_OK);
-@@ -524,11 +524,11 @@ void vtkWin32OpenGLRenderWindow::SetupPixelFormat(HDC hDC, DWORD dwFlags,
- {
- exit(1);
- }
-- }
-+ }
- }
- else
- {
-- // hDC has no current PixelFormat, so
-+ // hDC has no current PixelFormat, so
- pixelFormat = ChoosePixelFormat(hDC, &pfd);
- if (pixelFormat == 0)
- {
-@@ -549,8 +549,8 @@ void vtkWin32OpenGLRenderWindow::SetupPixelFormat(HDC hDC, DWORD dwFlags,
- exit(1);
- }
- }
-- DescribePixelFormat(hDC, pixelFormat,sizeof(pfd), &pfd);
-- if (SetPixelFormat(hDC, pixelFormat, &pfd) != TRUE)
-+ DescribePixelFormat(hDC, pixelFormat,sizeof(pfd), &pfd);
-+ if (SetPixelFormat(hDC, pixelFormat, &pfd) != TRUE)
- {
- // int err = GetLastError();
- #ifdef UNICODE
-@@ -626,10 +626,10 @@ void vtkWin32OpenGLRenderWindow::SetupPalette(HDC hDC)
- }
-
-
--LRESULT vtkWin32OpenGLRenderWindow::MessageProc(HWND hWnd, UINT message,
-+LRESULT vtkWin32OpenGLRenderWindow::MessageProc(HWND hWnd, UINT message,
- WPARAM wParam, LPARAM lParam)
- {
-- switch (message)
-+ switch (message)
- {
- case WM_CREATE:
- {
-@@ -648,18 +648,18 @@ LRESULT vtkWin32OpenGLRenderWindow::MessageProc(HWND hWnd, UINT message,
- return 0;
- case WM_SIZE:
- /* track window size changes */
-- if (this->ContextId)
-+ if (this->ContextId)
- {
- this->SetSize((int) LOWORD(lParam),(int) HIWORD(lParam));
- return 0;
- }
- case WM_PALETTECHANGED:
- /* realize palette if this is *not* the current window */
-- if (this->ContextId && this->Palette && (HWND) wParam != hWnd)
-+ if (this->ContextId && this->Palette && (HWND) wParam != hWnd)
- {
- SelectPalette(this->DeviceContext, this->OldPalette, FALSE);
- UnrealizeObject(this->Palette);
-- this->OldPalette = SelectPalette(this->DeviceContext,
-+ this->OldPalette = SelectPalette(this->DeviceContext,
- this->Palette, FALSE);
- RealizePalette(this->DeviceContext);
- this->Render();
-@@ -667,11 +667,11 @@ LRESULT vtkWin32OpenGLRenderWindow::MessageProc(HWND hWnd, UINT message,
- break;
- case WM_QUERYNEWPALETTE:
- /* realize palette if this is the current window */
-- if (this->ContextId && this->Palette)
-+ if (this->ContextId && this->Palette)
- {
- SelectPalette(this->DeviceContext, this->OldPalette, FALSE);
- UnrealizeObject(this->Palette);
-- this->OldPalette = SelectPalette(this->DeviceContext,
-+ this->OldPalette = SelectPalette(this->DeviceContext,
- this->Palette, FALSE);
- RealizePalette(this->DeviceContext);
- this->Render();
-@@ -682,7 +682,7 @@ LRESULT vtkWin32OpenGLRenderWindow::MessageProc(HWND hWnd, UINT message,
- {
- PAINTSTRUCT ps;
- BeginPaint(hWnd, &ps);
-- if (this->ContextId)
-+ if (this->ContextId)
- {
- this->Render();
- }
-@@ -730,20 +730,20 @@ void vtkWin32OpenGLRenderWindow::CreateAWindow()
- {
- static int count = 1;
- char *windowName;
--
-+
- if (!this->WindowId)
- {
- WNDCLASS wndClass;
- this->DeviceContext = 0;
--
-- int len = static_cast(strlen("Visualization Toolkit - Win32OpenGL #"))
-+
-+ int len = static_cast(strlen("Visualization Toolkit - Win32OpenGL #"))
- + (int)ceil( (double) log10( (double)(count+1) ) )
-- + 1;
-+ + 1;
- windowName = new char [ len ];
- sprintf(windowName,"Visualization Toolkit - Win32OpenGL #%i",count++);
- this->SetWindowName(windowName);
- delete [] windowName;
--
-+
- // has the class been registered ?
- #ifdef UNICODE
- if (!GetClassInfo(this->ApplicationInstance,L"vtkOpenGL",&wndClass))
-@@ -770,7 +770,7 @@ void vtkWin32OpenGLRenderWindow::CreateAWindow()
- wndClass.cbWndExtra = 2 * sizeof(vtkLONG);
- RegisterClass(&wndClass);
- }
--
-+
- #ifdef UNICODE
- wchar_t *wname = new wchar_t [mbstowcs(NULL, this->WindowName, 32000)+1];
- mbstowcs(wname, this->WindowName, 32000);
-@@ -779,7 +779,7 @@ void vtkWin32OpenGLRenderWindow::CreateAWindow()
- int y = ((this->Position[1] >= 0) ? this->Position[1] : 5);
- int height = ((this->Size[1] > 0) ? this->Size[1] : 300);
- int width = ((this->Size[0] > 0) ? this->Size[0] : 300);
--
-+
- /* create window */
- if (this->ParentId)
- {
-@@ -812,7 +812,7 @@ void vtkWin32OpenGLRenderWindow::CreateAWindow()
- this->WindowId = CreateWindow(
- L"vtkOpenGL", wname, style,
- x,y, width+2*GetSystemMetrics(SM_CXFRAME),
-- height+2*GetSystemMetrics(SM_CYFRAME)
-+ height+2*GetSystemMetrics(SM_CYFRAME)
- +GetSystemMetrics(SM_CYCAPTION),
- NULL, NULL, this->ApplicationInstance, NULL);
- #else
-@@ -827,14 +827,14 @@ void vtkWin32OpenGLRenderWindow::CreateAWindow()
- #ifdef UNICODE
- delete [] wname;
- #endif
--
-+
- if (!this->WindowId)
- {
- vtkErrorMacro("Could not create window, error: " << GetLastError());
- return;
- }
- // extract the create info
--
-+
- /* display window */
- if(!this->OffScreenRendering)
- {
@@ -842,7 +842,7 @@ void vtkWin32OpenGLRenderWindow::CreateAWindow()
}
//UpdateWindow(this->WindowId);
@@ -1198,435 +367,6 @@ index 1111111..2222222 100644
}
if (!this->DeviceContext)
{
-@@ -862,16 +862,16 @@ void vtkWin32OpenGLRenderWindow::CreateAWindow()
- }
- this->SetupPalette(this->DeviceContext);
- this->ContextId = wglCreateContext(this->DeviceContext);
-- if (this->ContextId == NULL)
-+ if (this->ContextId == NULL)
- {
- vtkErrorMacro("wglCreateContext failed in CreateAWindow(), error: " << GetLastError());
- }
- this->MakeCurrent();
--
-+
- // wipe out any existing display lists
- vtkRenderer* ren;
- vtkCollectionSimpleIterator rsit;
-- for (this->Renderers->InitTraversal(rsit);
-+ for (this->Renderers->InitTraversal(rsit);
- (ren = this->Renderers->GetNextRenderer(rsit));)
- {
- ren->SetRenderWindow(0);
-@@ -889,20 +889,20 @@ void vtkWin32OpenGLRenderWindow::CreateAWindow()
-
- // Initialize the window for rendering.
- void vtkWin32OpenGLRenderWindow::WindowInitialize()
--{
-+{
- // create our own window if not already set
- this->OwnWindow = 0;
- if (!this->MFChandledWindow)
- {
- this->InitializeApplication();
- this->CreateAWindow();
-- }
-- else
-+ }
-+ else
- {
- this->MakeCurrent(); // hsr
- this->OpenGLInit();
- }
--
-+
- // set the DPI
- this->SetDPI(GetDeviceCaps(this->DeviceContext, LOGPIXELSY));
- }
-@@ -910,7 +910,7 @@ void vtkWin32OpenGLRenderWindow::WindowInitialize()
- // Initialize the rendering window.
- void vtkWin32OpenGLRenderWindow::Initialize (void)
- {
-- // make sure we havent already been initialized
-+ // make sure we havent already been initialized
- if (!this->OffScreenRendering && !this->ContextId)
- {
- this->WindowInitialize();
-@@ -955,7 +955,7 @@ void vtkWin32OpenGLRenderWindow::DestroyWindow()
- ReleaseDC(this->WindowId, this->DeviceContext);
- // can't set WindowId=NULL, needed for DestroyWindow
- this->DeviceContext = NULL;
--
-+
- // clear the extra data before calling destroy
- vtkSetWindowLong(this->WindowId,sizeof(vtkLONG),(vtkLONG)0);
- if(this->OwnWindow)
-@@ -971,18 +971,18 @@ void vtkWin32OpenGLRenderWindow::DestroyWindow()
- // Get the current size of the window.
- int *vtkWin32OpenGLRenderWindow::GetSize(void)
- {
-- // if we aren't mapped then just return the ivar
-+ // if we aren't mapped then just return the ivar
- if (this->Mapped)
- {
- RECT rect;
-
-- // Find the current window size
-+ // Find the current window size
- if (GetClientRect(this->WindowId, &rect))
-- {
-+ {
- this->Size[0] = rect.right;
- this->Size[1] = rect.bottom;
- }
-- else
-+ else
- {
- this->Size[0] = 0;
- this->Size[1] = 0;
-@@ -999,23 +999,23 @@ int *vtkWin32OpenGLRenderWindow::GetScreenSize(void)
- RECT rect;
-
- SystemParametersInfo(SPI_GETWORKAREA, 0, &rect, 0);
--
-+
- this->Size[0] = rect.right - rect.left;
- this->Size[1] = rect.bottom - rect.top;
--
-+
- return this->Size;
- }
-
- // Get the position in screen coordinates of the window.
- int *vtkWin32OpenGLRenderWindow::GetPosition(void)
- {
-- // if we aren't mapped then just return the ivar
-+ // if we aren't mapped then just return the ivar
- if (!this->Mapped)
- {
- return this->Position;
- }
-
-- // Find the current window position
-+ // Find the current window position
- // x,y,&this->Position[0],&this->Position[1],&child);
-
- return this->Position;
-@@ -1025,34 +1025,34 @@ int *vtkWin32OpenGLRenderWindow::GetPosition(void)
- void vtkWin32OpenGLRenderWindow::SetFullScreen(int arg)
- {
- int *temp;
--
-+
- if (this->FullScreen == arg)
- {
- return;
- }
--
-+
- if (!this->Mapped)
- {
- this->PrefFullScreen();
- return;
- }
-
-- // set the mode
-+ // set the mode
- this->FullScreen = arg;
- if (this->FullScreen <= 0)
- {
- this->Position[0] = this->OldScreen[0];
- this->Position[1] = this->OldScreen[1];
-- this->Size[0] = this->OldScreen[2];
-+ this->Size[0] = this->OldScreen[2];
- this->Size[1] = this->OldScreen[3];
- this->Borders = this->OldScreen[4];
- }
- else
- {
-- // if window already up get its values
-+ // if window already up get its values
- if (this->WindowId)
- {
-- temp = this->GetPosition();
-+ temp = this->GetPosition();
- this->OldScreen[0] = temp[0];
- this->OldScreen[1] = temp[1];
-
-@@ -1060,8 +1060,8 @@ void vtkWin32OpenGLRenderWindow::SetFullScreen(int arg)
- this->PrefFullScreen();
- }
- }
--
-- // remap the window
-+
-+ // remap the window
- this->WindowRemap();
-
- this->Modified();
-@@ -1092,14 +1092,14 @@ void vtkWin32OpenGLRenderWindow::PrefFullScreen()
-
- size = this->GetScreenSize();
-
-- // use full screen
-+ // use full screen
- this->Position[0] = 0;
- this->Position[1] = 0;
- this->Size[0] = size[0] - 2*GetSystemMetrics(SM_CXFRAME);
-- this->Size[1] = size[1] -
-+ this->Size[1] = size[1] -
- 2*GetSystemMetrics(SM_CYFRAME) - GetSystemMetrics(SM_CYCAPTION);
-
-- // don't show borders
-+ // don't show borders
- this->Borders = 0;
- }
-
-@@ -1108,8 +1108,8 @@ void vtkWin32OpenGLRenderWindow::WindowRemap()
- {
- // close everything down
- this->Finalize();
--
-- // set the default windowid
-+
-+ // set the default windowid
- this->WindowId = this->NextWindowId;
- this->NextWindowId = 0;
-
-@@ -1129,7 +1129,7 @@ void vtkWin32OpenGLRenderWindow::PrintSelf(ostream& os, vtkIndent indent)
- // Get the window id.
- HWND vtkWin32OpenGLRenderWindow::GetWindowId()
- {
-- vtkDebugMacro(<< "Returning WindowId of " << this->WindowId << "\n");
-+ vtkDebugMacro(<< "Returning WindowId of " << this->WindowId << "\n");
-
- return this->WindowId;
- }
-@@ -1138,11 +1138,11 @@ HWND vtkWin32OpenGLRenderWindow::GetWindowId()
- void vtkWin32OpenGLRenderWindow::SetWindowId(HWND arg)
- {
- vtkDebugMacro(<< "Setting WindowId to " << arg << "\n");
--
-+
- if (arg != this->WindowId)
- {
- this->WindowId = arg;
-- if (this->ContextId)
-+ if (this->ContextId)
- {
- wglDeleteContext(this->ContextId);
- }
-@@ -1155,24 +1155,24 @@ void vtkWin32OpenGLRenderWindow::SetWindowId(HWND arg)
- void vtkWin32OpenGLRenderWindow::SetWindowInfo(char *info)
- {
- int tmp;
--
-+
- sscanf(info,"%i",&tmp);
-
- this->WindowId = (HWND)tmp;
-- vtkDebugMacro(<< "Setting WindowId to " << this->WindowId << "\n");
-+ vtkDebugMacro(<< "Setting WindowId to " << this->WindowId << "\n");
- }
-
- void vtkWin32OpenGLRenderWindow::SetNextWindowInfo(char *info)
- {
- int tmp;
--
-+
- sscanf(info,"%i",&tmp);
-
- this->SetNextWindowId((HWND)tmp);
- }
-
- void vtkWin32OpenGLRenderWindow::SetDisplayId(void * arg)
--{
-+{
- this->DeviceContext = (HDC) arg;
- }
-
-@@ -1181,7 +1181,7 @@ void vtkWin32OpenGLRenderWindow::SetContextId(HGLRC arg)
- this->ContextId = arg;
- }
-
--void vtkWin32OpenGLRenderWindow::SetDeviceContext(HDC arg)
-+void vtkWin32OpenGLRenderWindow::SetDeviceContext(HDC arg)
- {
- this->DeviceContext = arg;
- this->MFChandledWindow = TRUE;
-@@ -1191,17 +1191,17 @@ void vtkWin32OpenGLRenderWindow::SetDeviceContext(HDC arg)
- void vtkWin32OpenGLRenderWindow::SetParentInfo(char *info)
- {
- int tmp;
--
-+
- sscanf(info,"%i",&tmp);
-
- this->ParentId = (HWND)tmp;
-- vtkDebugMacro(<< "Setting ParentId to " << this->ParentId << "\n");
-+ vtkDebugMacro(<< "Setting ParentId to " << this->ParentId << "\n");
- }
-
- // Set the window id to a pre-existing window.
- void vtkWin32OpenGLRenderWindow::SetParentId(HWND arg)
- {
-- vtkDebugMacro(<< "Setting ParentId to " << arg << "\n");
-+ vtkDebugMacro(<< "Setting ParentId to " << arg << "\n");
-
- this->ParentId = arg;
- }
-@@ -1209,7 +1209,7 @@ void vtkWin32OpenGLRenderWindow::SetParentId(HWND arg)
- // Set the window id of the new window once a WindowRemap is done.
- void vtkWin32OpenGLRenderWindow::SetNextWindowId(HWND arg)
- {
-- vtkDebugMacro(<< "Setting NextWindowId to " << arg << "\n");
-+ vtkDebugMacro(<< "Setting NextWindowId to " << arg << "\n");
-
- this->NextWindowId = arg;
- }
-@@ -1228,7 +1228,7 @@ void vtkWin32OpenGLRenderWindow::Start(void)
- this->Initialize();
- }
-
-- // set the current window
-+ // set the current window
- this->MakeCurrent();
- }
-
-@@ -1296,13 +1296,13 @@ void vtkWin32OpenGLRenderWindow::CreateOffScreenWindow(int width,
- DeleteDC(dc);
- }
- this->CreatingOffScreenWindow = status;
--}
-+}
-
- void vtkWin32OpenGLRenderWindow::CreateOffScreenDC(int xsize, int ysize,
- HDC aHdc)
- {
- int dataWidth = ((xsize*3+3)/4)*4;
--
-+
- this->MemoryDataHeader.bmiHeader.biSize = 40;
- this->MemoryDataHeader.bmiHeader.biWidth = xsize;
- this->MemoryDataHeader.bmiHeader.biHeight = ysize;
-@@ -1314,7 +1314,7 @@ void vtkWin32OpenGLRenderWindow::CreateOffScreenDC(int xsize, int ysize,
- this->MemoryDataHeader.bmiHeader.biSizeImage = dataWidth*ysize;
- this->MemoryDataHeader.bmiHeader.biXPelsPerMeter = 10000;
- this->MemoryDataHeader.bmiHeader.biYPelsPerMeter = 10000;
--
-+
- HBITMAP dib = CreateDIBSection(aHdc,
- &this->MemoryDataHeader, DIB_RGB_COLORS,
- (void **)(&(this->MemoryData)), NULL, 0);
-@@ -1330,13 +1330,13 @@ void vtkWin32OpenGLRenderWindow::CreateOffScreenDC(HBITMAP hbmp, HDC aHdc)
- GetObject(hbmp, sizeof(BITMAP), &bm);
-
- this->MemoryBuffer = hbmp;
--
-+
- // Create a compatible device context
- this->MemoryHdc = (HDC)CreateCompatibleDC(aHdc);
--
-+
- // Put the bitmap into the device context
- SelectObject(this->MemoryHdc, this->MemoryBuffer);
--
-+
- // Renderers will need to redraw anything cached in display lists
- this->CleanUpRenderers();
-
-@@ -1344,15 +1344,15 @@ void vtkWin32OpenGLRenderWindow::CreateOffScreenDC(HBITMAP hbmp, HDC aHdc)
- this->Mapped =0;
- this->Size[0] = bm.bmWidth;
- this->Size[1] = bm.bmHeight;
--
-+
- this->DeviceContext = this->MemoryHdc;
- this->DoubleBuffer = 0;
-- this->SetupPixelFormat(this->DeviceContext,
-- PFD_SUPPORT_OPENGL | PFD_SUPPORT_GDI |
-+ this->SetupPixelFormat(this->DeviceContext,
-+ PFD_SUPPORT_OPENGL | PFD_SUPPORT_GDI |
- PFD_DRAW_TO_BITMAP, this->GetDebug(), 24, 32);
- this->SetupPalette(this->DeviceContext);
- this->ContextId = wglCreateContext(this->DeviceContext);
-- if (this->ContextId == NULL)
-+ if (this->ContextId == NULL)
- {
- vtkErrorMacro("wglCreateContext failed in CreateOffScreenDC(), error: " << GetLastError());
- }
-@@ -1391,7 +1391,7 @@ void vtkWin32OpenGLRenderWindow::SetupMemoryRendering(HBITMAP hbmp)
- this->ScreenContextId = this->ContextId;
-
- this->CreateOffScreenDC(hbmp, dc);
-- DeleteDC(dc);
-+ DeleteDC(dc);
- }
-
- HDC vtkWin32OpenGLRenderWindow::GetMemoryDC()
-@@ -1411,15 +1411,15 @@ void vtkWin32OpenGLRenderWindow::CleanUpOffScreenRendering(void)
- {
- return;
- }
--
-+
- GdiFlush();
--
-+
- // we need to release resources
- this->CleanUpRenderers();
- DeleteDC(this->MemoryHdc);
- this->MemoryHdc = (HDC)0;
- DeleteObject(this->MemoryBuffer);
-- if (wglDeleteContext(this->ContextId) != TRUE)
-+ if (wglDeleteContext(this->ContextId) != TRUE)
- {
- vtkErrorMacro("wglDeleteContext failed in CleanUpOffScreenRendering(), error: " << GetLastError());
- }
-@@ -1429,7 +1429,7 @@ void vtkWin32OpenGLRenderWindow::CleanUpOffScreenRendering(void)
-
- void vtkWin32OpenGLRenderWindow::ResumeScreenRendering(void)
- {
-- // release OpenGL graphics resources before switch back to on-screen.
-+ // release OpenGL graphics resources before switch back to on-screen.
- if(this->ContextId!=0)
- {
- this->MakeCurrent();
-@@ -1467,10 +1467,10 @@ void vtkWin32OpenGLRenderWindow::ShowCursor()
- this->CursorHidden = 0;
-
- ::ShowCursor(!this->CursorHidden);
--}
-+}
-
- //----------------------------------------------------------------------------
--void vtkWin32OpenGLRenderWindow::SetCursorPosition(int x, int y)
-+void vtkWin32OpenGLRenderWindow::SetCursorPosition(int x, int y)
- {
- int *size = this->GetSize();
-
-@@ -1517,7 +1517,7 @@ void vtkWin32OpenGLRenderWindow::SetCurrentCursor(int shape)
- cursorName = IDC_SIZEALL;
- break;
- case VTK_CURSOR_HAND:
--#if(WINVER >= 0x0500)
-+#if(WINVER >= 0x0500)
- cursorName = IDC_HAND;
- #else
- cursorName = IDC_ARROW;
-@@ -1527,10 +1527,10 @@ void vtkWin32OpenGLRenderWindow::SetCurrentCursor(int shape)
- cursorName = IDC_CROSS;
- break;
- }
--
-+
- if (cursorName)
- {
-- HANDLE cursor =
-+ HANDLE cursor =
- LoadImage(0,cursorName,IMAGE_CURSOR,0,0,LR_SHARED | LR_DEFAULTSIZE);
- SetCursor((HCURSOR)cursor);
- }
diff --git a/Rendering/vtkWin32RenderWindowInteractor.cxx b/Rendering/vtkWin32RenderWindowInteractor.cxx
index 1111111..2222222 100644
--- a/Rendering/vtkWin32RenderWindowInteractor.cxx
@@ -1646,752 +386,50 @@ index 1111111..2222222 100644
// Mouse wheel support
// In an ideal world we would just have to include , but it is not
// always available with all compilers/headers
-@@ -31,7 +33,7 @@
- # define GET_WHEEL_DELTA_WPARAM(wparam) ((short)HIWORD (wparam))
- #endif //GET_WHEEL_DELTA_WPARAM
-
--// MSVC does the right thing without the forward declaration when it
-+// MSVC does the right thing without the forward declaration when it
- // sees it in the friend decl in vtkWin32RenderWindowInteractor, but
- // GCC needs to see the declaration beforehand. It has to do with the
- // CALLBACK attribute.
-@@ -60,42 +62,42 @@ void (*vtkWin32RenderWindowInteractor::ClassExitMethodArgDelete)(void *) = (void
-
- //----------------------------------------------------------------------------
- // Construct object so that light follows camera motion.
--vtkWin32RenderWindowInteractor::vtkWin32RenderWindowInteractor()
-+vtkWin32RenderWindowInteractor::vtkWin32RenderWindowInteractor()
- {
- this->WindowId = 0;
- this->InstallMessageProc = 1;
- this->MouseInWindow = 0;
- this->StartedMessageLoop = 0;
--
-+
- #ifdef VTK_USE_TDX
- this->Device=vtkTDxWinDevice::New();
- #endif
- }
-
- //----------------------------------------------------------------------------
--vtkWin32RenderWindowInteractor::~vtkWin32RenderWindowInteractor()
-+vtkWin32RenderWindowInteractor::~vtkWin32RenderWindowInteractor()
- {
- vtkWin32OpenGLRenderWindow *tmp;
-
- // we need to release any hold we have on a windows event loop
-- if (this->WindowId && this->Enabled && this->InstallMessageProc)
-+ if (this->WindowId && this->Enabled && this->InstallMessageProc)
- {
- vtkWin32OpenGLRenderWindow *ren;
- ren = static_cast(this->RenderWindow);
- tmp = (vtkWin32OpenGLRenderWindow *)(vtkGetWindowLong(this->WindowId,sizeof(vtkLONG)));
- // watch for odd conditions
-- if ((tmp != ren) && (ren != NULL))
-+ if ((tmp != ren) && (ren != NULL))
- {
- // OK someone else has a hold on our event handler
- // so lets have them handle this stuff
+@@ -91,11 +93,11 @@ vtkWin32RenderWindowInteractor::~vtkWin32RenderWindowInteractor()
// well send a USER message to the other
// event handler so that it can properly
// call this event handler if required
- CallWindowProc(this->OldProc,this->WindowId,WM_USER+14,28,(LONG)this->OldProc);
+ CallWindowProc(this->OldProc,this->WindowId,WM_USER+14,28,(intptr_t)this->OldProc);
}
-- else
-+ else
+ else
{
- vtkSetWindowLong(this->WindowId,vtkGWL_WNDPROC,(vtkLONG)this->OldProc);
+ vtkSetWindowLong(this->WindowId,vtkGWL_WNDPROC,(intptr_t)this->OldProc);
}
this->Enabled = 0;
}
-@@ -105,7 +107,7 @@ vtkWin32RenderWindowInteractor::~vtkWin32RenderWindowInteractor()
- }
-
- //----------------------------------------------------------------------------
--void vtkWin32RenderWindowInteractor::Start()
-+void vtkWin32RenderWindowInteractor::Start()
- {
- // Let the compositing handle the event loop if it wants to.
- if (this->HasObserver(vtkCommand::StartEvent) && !this->HandleEventLoop)
-@@ -132,18 +134,18 @@ void vtkWin32RenderWindowInteractor::Start()
-
- //----------------------------------------------------------------------------
- // Begin processing keyboard strokes.
--void vtkWin32RenderWindowInteractor::Initialize()
-+void vtkWin32RenderWindowInteractor::Initialize()
- {
- vtkWin32OpenGLRenderWindow *ren;
- int *size;
-
- // make sure we have a RenderWindow and camera
-- if ( ! this->RenderWindow)
-+ if ( ! this->RenderWindow)
- {
- vtkErrorMacro(<<"No renderer defined!");
- return;
- }
-- if (this->Initialized)
-+ if (this->Initialized)
- {
- return;
- }
-@@ -160,35 +162,35 @@ void vtkWin32RenderWindowInteractor::Initialize()
- }
-
- //----------------------------------------------------------------------------
--void vtkWin32RenderWindowInteractor::Enable()
-+void vtkWin32RenderWindowInteractor::Enable()
- {
- vtkWin32OpenGLRenderWindow *ren;
- vtkWin32OpenGLRenderWindow *tmp;
-- if (this->Enabled)
-+ if (this->Enabled)
- {
- return;
- }
-- if (this->InstallMessageProc)
-+ if (this->InstallMessageProc)
- {
- // add our callback
- ren = (vtkWin32OpenGLRenderWindow *)(this->RenderWindow);
- this->OldProc = (WNDPROC)vtkGetWindowLong(this->WindowId,vtkGWL_WNDPROC);
- tmp=(vtkWin32OpenGLRenderWindow *)vtkGetWindowLong(this->WindowId,sizeof(vtkLONG));
- // watch for odd conditions
-- if (tmp != ren)
-+ if (tmp != ren)
- {
- // OK someone else has a hold on our event handler
- // so lets have them handle this stuff
+@@ -182,13 +184,13 @@ void vtkWin32RenderWindowInteractor::Enable()
// well send a USER message to the other
// event handler so that it can properly
// call this event handler if required
- CallWindowProc(this->OldProc,this->WindowId,WM_USER+12,24,(LONG)vtkHandleMessage);
+ CallWindowProc(this->OldProc,this->WindowId,WM_USER+12,24,(intptr_t)vtkHandleMessage);
}
-- else
-+ else
+ else
{
- vtkSetWindowLong(this->WindowId,vtkGWL_WNDPROC,(vtkLONG)vtkHandleMessage);
+ vtkSetWindowLong(this->WindowId,vtkGWL_WNDPROC,(intptr_t)vtkHandleMessage);
}
--
-+
+
#ifdef VTK_USE_TDX
if(this->UseTDx)
{
-@@ -197,7 +199,7 @@ void vtkWin32RenderWindowInteractor::Enable()
- this->Device->StartListening();
- }
- #endif
--
-+
- // in case the size of the window has changed while we were away
- int *size;
- size = ren->GetSize();
-@@ -210,33 +212,33 @@ void vtkWin32RenderWindowInteractor::Enable()
-
-
- //----------------------------------------------------------------------------
--void vtkWin32RenderWindowInteractor::Disable()
-+void vtkWin32RenderWindowInteractor::Disable()
- {
- vtkWin32OpenGLRenderWindow *tmp;
-- if (!this->Enabled)
-+ if (!this->Enabled)
- {
- return;
- }
--
-- if (this->InstallMessageProc && this->Enabled && this->WindowId)
-+
-+ if (this->InstallMessageProc && this->Enabled && this->WindowId)
- {
- // we need to release any hold we have on a windows event loop
- vtkWin32OpenGLRenderWindow *ren;
- ren = (vtkWin32OpenGLRenderWindow *)(this->RenderWindow);
- tmp = (vtkWin32OpenGLRenderWindow *)vtkGetWindowLong(this->WindowId,sizeof(vtkLONG));
- // watch for odd conditions
-- if ((tmp != ren) && (ren != NULL))
-+ if ((tmp != ren) && (ren != NULL))
- {
- // OK someone else has a hold on our event handler
- // so lets have them handle this stuff
+@@ -232,11 +234,11 @@ void vtkWin32RenderWindowInteractor::Disable()
// well send a USER message to the other
// event handler so that it can properly
// call this event handler if required
- CallWindowProc(this->OldProc,this->WindowId,WM_USER+14,28,(LONG)this->OldProc);
+ CallWindowProc(this->OldProc,this->WindowId,WM_USER+14,28,(intptr_t)this->OldProc);
}
-- else
-+ else
+ else
{
- vtkSetWindowLong(this->WindowId,vtkGWL_WNDPROC,(vtkLONG)this->OldProc);
+ vtkSetWindowLong(this->WindowId,vtkGWL_WNDPROC,(intptr_t)this->OldProc);
}
#ifdef VTK_USE_TDX
if(this->Device->GetInitialized())
-@@ -270,7 +272,7 @@ int vtkWin32RenderWindowInteractor::InternalCreateTimer(int timerId, int vtkNotU
- }
-
- //----------------------------------------------------------------------------
--int vtkWin32RenderWindowInteractor::InternalDestroyTimer(int platformTimerId)
-+int vtkWin32RenderWindowInteractor::InternalDestroyTimer(int platformTimerId)
- {
- return KillTimer(this->WindowId,platformTimerId);
- }
-@@ -282,42 +284,42 @@ int vtkWin32RenderWindowInteractor::InternalDestroyTimer(int platformTimerId)
- // this ascii code to keysym table is meant to mimic Tk
-
- static const char *AsciiToKeySymTable[] = {
-- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-- "space", "exclam", "quotedbl", "numbersign",
-- "dollar", "percent", "ampersand", "quoteright",
-- "parenleft", "parenright", "asterisk", "plus",
-+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-+ "space", "exclam", "quotedbl", "numbersign",
-+ "dollar", "percent", "ampersand", "quoteright",
-+ "parenleft", "parenright", "asterisk", "plus",
- "comma", "minus", "period", "slash",
-- "0", "1", "2", "3", "4", "5", "6", "7",
-+ "0", "1", "2", "3", "4", "5", "6", "7",
- "8", "9", "colon", "semicolon", "less", "equal", "greater", "question",
-- "at", "A", "B", "C", "D", "E", "F", "G",
-+ "at", "A", "B", "C", "D", "E", "F", "G",
- "H", "I", "J", "K", "L", "M", "N", "O",
- "P", "Q", "R", "S", "T", "U", "V", "W",
-- "X", "Y", "Z", "bracketleft",
-+ "X", "Y", "Z", "bracketleft",
- "backslash", "bracketright", "asciicircum", "underscore",
- "quoteleft", "a", "b", "c", "d", "e", "f", "g",
- "h", "i", "j", "k", "l", "m", "n", "o",
- "p", "q", "r", "s", "t", "u", "v", "w",
- "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "Delete",
-- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
--
-+
- // this virtual key code to keysym table is meant to mimic Tk
-
- static const char *VKeyCodeToKeySymTable[] = {
- 0, 0, 0, "Cancel", 0, 0, 0, 0,
- "BackSpace", "Tab", 0, 0, "Clear", "Return", 0, 0,
-- "Shift_L", "Control_L", "Alt_L", "Pause", "Caps_Lock", 0,0,0,
-+ "Shift_L", "Control_L", "Alt_L", "Pause", "Caps_Lock", 0,0,0,
- 0, 0, 0, "Escape", 0, 0, 0, 0,
- "space", "Prior", "Next", "End", "Home", "Left", "Up", "Right",
- "Down", "Select", 0, "Execute", "Snapshot", "Insert", "Delete", "Help",
-- "0", "1", "2", "3", "4", "5", "6", "7",
-+ "0", "1", "2", "3", "4", "5", "6", "7",
- "8", "9", 0, 0, 0, 0, 0, 0,
- 0, "a", "b", "c", "d", "e", "f", "g",
- "h", "i", "j", "k", "l", "m", "n", "o",
-@@ -326,7 +328,7 @@ static const char *VKeyCodeToKeySymTable[] = {
- "KP_0", "KP_1", "KP_2", "KP_3", "KP_4", "KP_5", "KP_6", "KP_7",
- "KP_8", "KP_9", "asterisk", "plus", "bar", "minus", "period", "slash",
- "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8",
-- "F9", "F10", "F11", "F12", "F13", "F14", "F15", "F16",
-+ "F9", "F10", "F11", "F12", "F13", "F14", "F15", "F16",
- "F17", "F18", "F19", "F20", "F21", "F22", "F23", "F24",
- 0, 0, 0, 0, 0, 0, 0, 0,
- "Num_Lock", "Scroll_Lock", 0, 0, 0, 0, 0, 0,
-@@ -341,20 +343,20 @@ static const char *VKeyCodeToKeySymTable[] = {
- //-------------------------------------------------------------
- // Event loop handlers
- //-------------------------------------------------------------
--void vtkWin32RenderWindowInteractor::OnMouseMove(HWND hWnd, UINT nFlags,
-- int X, int Y)
-+void vtkWin32RenderWindowInteractor::OnMouseMove(HWND hWnd, UINT nFlags,
-+ int X, int Y)
- {
-- if (!this->Enabled)
-+ if (!this->Enabled)
- {
- return;
- }
-
-- this->SetEventInformationFlipY(X,
-- Y,
-- nFlags & MK_CONTROL,
-+ this->SetEventInformationFlipY(X,
-+ Y,
-+ nFlags & MK_CONTROL,
- nFlags & MK_SHIFT);
- this->SetAltKey(GetKeyState(VK_MENU) & (~1));
-- if (!this->MouseInWindow &&
-+ if (!this->MouseInWindow &&
- (X >= 0 && X < this->Size[0] && Y >= 0 && Y < this->Size[1]))
- {
- this->InvokeEvent(vtkCommand::EnterEvent, NULL);
-@@ -366,15 +368,15 @@ void vtkWin32RenderWindowInteractor::OnMouseMove(HWND hWnd, UINT nFlags,
- tme.hwndTrack = hWnd;
- TrackMouseEvent(&tme);
- }
--
-+
- this->InvokeEvent(vtkCommand::MouseMoveEvent, NULL);
- }
-
- //----------------------------------------------------------------------------
--void vtkWin32RenderWindowInteractor::OnNCMouseMove(HWND, UINT nFlags,
-- int X, int Y)
-+void vtkWin32RenderWindowInteractor::OnNCMouseMove(HWND, UINT nFlags,
-+ int X, int Y)
- {
-- if (!this->Enabled)
-+ if (!this->Enabled)
- {
- return;
- }
-@@ -382,9 +384,9 @@ void vtkWin32RenderWindowInteractor::OnNCMouseMove(HWND, UINT nFlags,
- int *pos = this->RenderWindow->GetPosition();
- if (this->MouseInWindow)
- {
-- this->SetEventInformationFlipY(X - pos[0],
-+ this->SetEventInformationFlipY(X - pos[0],
- Y - pos[1],
-- nFlags & MK_CONTROL,
-+ nFlags & MK_CONTROL,
- nFlags & MK_SHIFT);
- this->SetAltKey(GetKeyState(VK_MENU) & (~1));
- this->InvokeEvent(vtkCommand::LeaveEvent, NULL);
-@@ -393,50 +395,50 @@ void vtkWin32RenderWindowInteractor::OnNCMouseMove(HWND, UINT nFlags,
- }
-
- //----------------------------------------------------------------------------
--void vtkWin32RenderWindowInteractor::OnMouseWheelForward(HWND,UINT nFlags,
-- int X, int Y)
-+void vtkWin32RenderWindowInteractor::OnMouseWheelForward(HWND,UINT nFlags,
-+ int X, int Y)
- {
-- if (!this->Enabled)
-+ if (!this->Enabled)
- {
- return;
- }
-- this->SetEventInformationFlipY(X,
-- Y,
-- nFlags & MK_CONTROL,
-+ this->SetEventInformationFlipY(X,
-+ Y,
-+ nFlags & MK_CONTROL,
- nFlags & MK_SHIFT);
- this->SetAltKey(GetKeyState(VK_MENU) & (~1));
- this->InvokeEvent(vtkCommand::MouseWheelForwardEvent,NULL);
- }
-
- //----------------------------------------------------------------------------
--void vtkWin32RenderWindowInteractor::OnMouseWheelBackward(HWND,UINT nFlags,
-- int X, int Y)
-+void vtkWin32RenderWindowInteractor::OnMouseWheelBackward(HWND,UINT nFlags,
-+ int X, int Y)
- {
-- if (!this->Enabled)
-+ if (!this->Enabled)
- {
- return;
- }
-- this->SetEventInformationFlipY(X,
-- Y,
-- nFlags & MK_CONTROL,
-+ this->SetEventInformationFlipY(X,
-+ Y,
-+ nFlags & MK_CONTROL,
- nFlags & MK_SHIFT);
- this->SetAltKey(GetKeyState(VK_MENU) & (~1));
- this->InvokeEvent(vtkCommand::MouseWheelBackwardEvent,NULL);
- }
-
- //----------------------------------------------------------------------------
--void vtkWin32RenderWindowInteractor::OnLButtonDown(HWND wnd,UINT nFlags,
-- int X, int Y, int repeat)
-+void vtkWin32RenderWindowInteractor::OnLButtonDown(HWND wnd,UINT nFlags,
-+ int X, int Y, int repeat)
- {
-- if (!this->Enabled)
-+ if (!this->Enabled)
- {
- return;
- }
- SetFocus(wnd);
- SetCapture(wnd);
-- this->SetEventInformationFlipY(X,
-- Y,
-- nFlags & MK_CONTROL,
-+ this->SetEventInformationFlipY(X,
-+ Y,
-+ nFlags & MK_CONTROL,
- nFlags & MK_SHIFT,
- 0, repeat);
- this->SetAltKey(GetKeyState(VK_MENU) & (~1));
-@@ -444,16 +446,16 @@ void vtkWin32RenderWindowInteractor::OnLButtonDown(HWND wnd,UINT nFlags,
- }
-
- //----------------------------------------------------------------------------
--void vtkWin32RenderWindowInteractor::OnLButtonUp(HWND,UINT nFlags,
-- int X, int Y)
-+void vtkWin32RenderWindowInteractor::OnLButtonUp(HWND,UINT nFlags,
-+ int X, int Y)
- {
-- if (!this->Enabled)
-+ if (!this->Enabled)
- {
- return;
- }
-- this->SetEventInformationFlipY(X,
-- Y,
-- nFlags & MK_CONTROL,
-+ this->SetEventInformationFlipY(X,
-+ Y,
-+ nFlags & MK_CONTROL,
- nFlags & MK_SHIFT);
- this->SetAltKey(GetKeyState(VK_MENU) & (~1));
- this->InvokeEvent(vtkCommand::LeftButtonReleaseEvent,NULL);
-@@ -461,18 +463,18 @@ void vtkWin32RenderWindowInteractor::OnLButtonUp(HWND,UINT nFlags,
- }
-
- //----------------------------------------------------------------------------
--void vtkWin32RenderWindowInteractor::OnMButtonDown(HWND wnd,UINT nFlags,
-- int X, int Y, int repeat)
-+void vtkWin32RenderWindowInteractor::OnMButtonDown(HWND wnd,UINT nFlags,
-+ int X, int Y, int repeat)
- {
-- if (!this->Enabled)
-+ if (!this->Enabled)
- {
- return;
- }
- SetFocus(wnd);
- SetCapture(wnd);
-- this->SetEventInformationFlipY(X,
-- Y,
-- nFlags & MK_CONTROL,
-+ this->SetEventInformationFlipY(X,
-+ Y,
-+ nFlags & MK_CONTROL,
- nFlags & MK_SHIFT,
- 0, repeat);
- this->SetAltKey(GetKeyState(VK_MENU) & (~1));
-@@ -480,16 +482,16 @@ void vtkWin32RenderWindowInteractor::OnMButtonDown(HWND wnd,UINT nFlags,
- }
-
- //----------------------------------------------------------------------------
--void vtkWin32RenderWindowInteractor::OnMButtonUp(HWND,UINT nFlags,
-- int X, int Y)
-+void vtkWin32RenderWindowInteractor::OnMButtonUp(HWND,UINT nFlags,
-+ int X, int Y)
- {
-- if (!this->Enabled)
-+ if (!this->Enabled)
- {
- return;
- }
-- this->SetEventInformationFlipY(X,
-- Y,
-- nFlags & MK_CONTROL,
-+ this->SetEventInformationFlipY(X,
-+ Y,
-+ nFlags & MK_CONTROL,
- nFlags & MK_SHIFT);
- this->SetAltKey(GetKeyState(VK_MENU) & (~1));
- this->InvokeEvent(vtkCommand::MiddleButtonReleaseEvent,NULL);
-@@ -497,18 +499,18 @@ void vtkWin32RenderWindowInteractor::OnMButtonUp(HWND,UINT nFlags,
- }
-
- //----------------------------------------------------------------------------
--void vtkWin32RenderWindowInteractor::OnRButtonDown(HWND wnd,UINT nFlags,
-- int X, int Y, int repeat)
-+void vtkWin32RenderWindowInteractor::OnRButtonDown(HWND wnd,UINT nFlags,
-+ int X, int Y, int repeat)
- {
-- if (!this->Enabled)
-+ if (!this->Enabled)
- {
- return;
- }
- SetFocus(wnd);
- SetCapture(wnd);
-- this->SetEventInformationFlipY(X,
-- Y,
-- nFlags & MK_CONTROL,
-+ this->SetEventInformationFlipY(X,
-+ Y,
-+ nFlags & MK_CONTROL,
- nFlags & MK_SHIFT,
- 0, repeat);
- this->SetAltKey(GetKeyState(VK_MENU) & (~1));
-@@ -516,16 +518,16 @@ void vtkWin32RenderWindowInteractor::OnRButtonDown(HWND wnd,UINT nFlags,
- }
-
- //----------------------------------------------------------------------------
--void vtkWin32RenderWindowInteractor::OnRButtonUp(HWND,UINT nFlags,
-- int X, int Y)
-+void vtkWin32RenderWindowInteractor::OnRButtonUp(HWND,UINT nFlags,
-+ int X, int Y)
- {
-- if (!this->Enabled)
-+ if (!this->Enabled)
- {
- return;
- }
-- this->SetEventInformationFlipY(X,
-- Y,
-- nFlags & MK_CONTROL,
-+ this->SetEventInformationFlipY(X,
-+ Y,
-+ nFlags & MK_CONTROL,
- nFlags & MK_SHIFT);
- this->SetAltKey(GetKeyState(VK_MENU) & (~1));
- this->InvokeEvent(vtkCommand::RightButtonReleaseEvent,NULL);
-@@ -542,15 +544,15 @@ void vtkWin32RenderWindowInteractor::OnSize(HWND,UINT, int X, int Y) {
- }
-
- //----------------------------------------------------------------------------
--void vtkWin32RenderWindowInteractor::OnTimer(HWND,UINT timerId)
-+void vtkWin32RenderWindowInteractor::OnTimer(HWND,UINT timerId)
- {
-- if (!this->Enabled)
-+ if (!this->Enabled)
- {
- return;
- }
- int tid = static_cast(timerId);
- this->InvokeEvent(vtkCommand::TimerEvent,(void*)&tid);
--
-+
- // Here we deal with one-shot versus repeating timers
- if ( this->IsOneShotTimer(tid) )
- {
-@@ -578,7 +580,7 @@ void vtkWin32RenderWindowInteractor::OnKeyDown(HWND, UINT vCode, UINT nRepCnt, U
- nChar = 0;
- }
- #endif
-- }
-+ }
- const char *keysym = AsciiToKeySymTable[(unsigned char)nChar];
- if (keysym == 0)
- {
-@@ -588,10 +590,10 @@ void vtkWin32RenderWindowInteractor::OnKeyDown(HWND, UINT vCode, UINT nRepCnt, U
- {
- keysym = "None";
- }
-- this->SetKeyEventInformation(ctrl,
-- shift,
-- nChar,
-- nRepCnt,
-+ this->SetKeyEventInformation(ctrl,
-+ shift,
-+ nChar,
-+ nRepCnt,
- keysym);
- this->SetAltKey(alt);
- this->InvokeEvent(vtkCommand::KeyPressEvent, NULL);
-@@ -627,10 +629,10 @@ void vtkWin32RenderWindowInteractor::OnKeyUp(HWND, UINT vCode, UINT nRepCnt, UIN
- {
- keysym = "None";
- }
-- this->SetKeyEventInformation(ctrl,
-- shift,
-- nChar,
-- nRepCnt,
-+ this->SetKeyEventInformation(ctrl,
-+ shift,
-+ nChar,
-+ nRepCnt,
- keysym);
- this->SetAltKey(alt);
- this->InvokeEvent(vtkCommand::KeyReleaseEvent, NULL);
-@@ -645,11 +647,11 @@ void vtkWin32RenderWindowInteractor::OnChar(HWND,UINT nChar,
- return;
- }
- int ctrl = GetKeyState(VK_CONTROL) & (~1);
-- int shift = GetKeyState(VK_SHIFT) & (~1);
-+ int shift = GetKeyState(VK_SHIFT) & (~1);
- int alt = GetKeyState(VK_MENU) & (~1);
-- this->SetKeyEventInformation(ctrl,
-- shift,
-- nChar,
-+ this->SetKeyEventInformation(ctrl,
-+ shift,
-+ nChar,
- nRepCnt);
- this->SetAltKey(alt);
- this->InvokeEvent(vtkCommand::CharEvent, NULL);
-@@ -658,11 +660,11 @@ void vtkWin32RenderWindowInteractor::OnChar(HWND,UINT nChar,
- //----------------------------------------------------------------------------
- void vtkWin32RenderWindowInteractor::OnFocus(HWND,UINT)
- {
-- if (!this->Enabled)
-+ if (!this->Enabled)
- {
- return;
- }
--
-+
- #ifdef VTK_USE_TDX
- if(this->Device->GetInitialized() && !this->Device->GetIsListening())
- {
-@@ -674,7 +676,7 @@ void vtkWin32RenderWindowInteractor::OnFocus(HWND,UINT)
- //----------------------------------------------------------------------------
- void vtkWin32RenderWindowInteractor::OnKillFocus(HWND,UINT)
- {
-- if (!this->Enabled)
-+ if (!this->Enabled)
- {
- return;
- }
-@@ -688,8 +690,8 @@ void vtkWin32RenderWindowInteractor::OnKillFocus(HWND,UINT)
-
- //----------------------------------------------------------------------------
- // This is only called when InstallMessageProc is true
--LRESULT CALLBACK vtkHandleMessage(HWND hWnd,UINT uMsg, WPARAM wParam,
-- LPARAM lParam)
-+LRESULT CALLBACK vtkHandleMessage(HWND hWnd,UINT uMsg, WPARAM wParam,
-+ LPARAM lParam)
- {
- LRESULT res = 0;
- vtkWin32OpenGLRenderWindow *ren;
-@@ -713,33 +715,33 @@ LRESULT CALLBACK vtkHandleMessage(HWND hWnd,UINT uMsg, WPARAM wParam,
- }
-
- #ifndef MAKEPOINTS
--#define MAKEPOINTS(l) (*((POINTS FAR *) & (l)))
-+#define MAKEPOINTS(l) (*((POINTS FAR *) & (l)))
- #endif
-
- //----------------------------------------------------------------------------
--LRESULT CALLBACK vtkHandleMessage2(HWND hWnd,UINT uMsg, WPARAM wParam,
-- LPARAM lParam,
-- vtkWin32RenderWindowInteractor *me)
-+LRESULT CALLBACK vtkHandleMessage2(HWND hWnd,UINT uMsg, WPARAM wParam,
-+ LPARAM lParam,
-+ vtkWin32RenderWindowInteractor *me)
- {
-- if ((uMsg == WM_USER+13)&&(wParam == 26))
-+ if ((uMsg == WM_USER+13)&&(wParam == 26))
- {
- // someone is telling us to set our OldProc
- me->OldProc = (WNDPROC)lParam;
- return 1;
- }
--
-- switch (uMsg)
-+
-+ switch (uMsg)
- {
- case WM_PAINT:
- me->Render();
- return CallWindowProc(me->OldProc,hWnd,uMsg,wParam,lParam);
- break;
--
-+
- case WM_SIZE:
- me->OnSize(hWnd,wParam,LOWORD(lParam),HIWORD(lParam));
- return CallWindowProc(me->OldProc,hWnd,uMsg,wParam,lParam);
- break;
--
-+
- case WM_LBUTTONDBLCLK:
- me->OnLButtonDown(hWnd,wParam,MAKEPOINTS(lParam).x,MAKEPOINTS(lParam).y, 1);
- break;
-@@ -747,7 +749,7 @@ LRESULT CALLBACK vtkHandleMessage2(HWND hWnd,UINT uMsg, WPARAM wParam,
- case WM_LBUTTONDOWN:
- me->OnLButtonDown(hWnd,wParam,MAKEPOINTS(lParam).x,MAKEPOINTS(lParam).y, 0);
- break;
--
-+
- case WM_LBUTTONUP:
- me->OnLButtonUp(hWnd,wParam,MAKEPOINTS(lParam).x,MAKEPOINTS(lParam).y);
- break;
-@@ -759,11 +761,11 @@ LRESULT CALLBACK vtkHandleMessage2(HWND hWnd,UINT uMsg, WPARAM wParam,
- case WM_MBUTTONDOWN:
- me->OnMButtonDown(hWnd,wParam,MAKEPOINTS(lParam).x,MAKEPOINTS(lParam).y, 0);
- break;
--
-+
- case WM_MBUTTONUP:
- me->OnMButtonUp(hWnd,wParam,MAKEPOINTS(lParam).x,MAKEPOINTS(lParam).y);
- break;
--
-+
- case WM_RBUTTONDBLCLK:
- me->OnRButtonDown(hWnd,wParam,MAKEPOINTS(lParam).x,MAKEPOINTS(lParam).y, 1);
- break;
-@@ -771,7 +773,7 @@ LRESULT CALLBACK vtkHandleMessage2(HWND hWnd,UINT uMsg, WPARAM wParam,
- case WM_RBUTTONDOWN:
- me->OnRButtonDown(hWnd,wParam,MAKEPOINTS(lParam).x,MAKEPOINTS(lParam).y, 0);
- break;
--
-+
- case WM_RBUTTONUP:
- me->OnRButtonUp(hWnd,wParam,MAKEPOINTS(lParam).x,MAKEPOINTS(lParam).y);
- break;
-@@ -811,7 +813,7 @@ LRESULT CALLBACK vtkHandleMessage2(HWND hWnd,UINT uMsg, WPARAM wParam,
- case WM_CHAR:
- me->OnChar(hWnd,wParam,LOWORD(lParam),HIWORD(lParam));
- break;
--
-+
- case WM_KEYDOWN:
- case WM_SYSKEYDOWN:
- me->OnKeyDown(hWnd,wParam,LOWORD(lParam),HIWORD(lParam));
-@@ -823,7 +825,7 @@ LRESULT CALLBACK vtkHandleMessage2(HWND hWnd,UINT uMsg, WPARAM wParam,
- break;
-
- case WM_TIMER:
-- me->OnTimer(hWnd,wParam);
-+ me->OnTimer(hWnd,wParam);
- break;
-
- case WM_ACTIVATE:
-@@ -836,25 +838,25 @@ LRESULT CALLBACK vtkHandleMessage2(HWND hWnd,UINT uMsg, WPARAM wParam,
- me->OnFocus(hWnd,wParam);
- }
- break;
--
-+
- case WM_SETFOCUS:
- // occurs when SetFocus() is called on the current window
- me->OnFocus(hWnd,wParam);
- break;
--
-+
- case WM_KILLFOCUS:
- // occurs when the focus was on the current window and SetFocus() is
-- // called on another window.
-+ // called on another window.
- me->OnKillFocus(hWnd,wParam);
- break;
--
-+
- default:
-- if (me)
-+ if (me)
- {
- return CallWindowProc(me->OldProc,hWnd,uMsg,wParam,lParam);
- }
- };
--
-+
- return 0;
- }
-
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tony Theodore
From b5dcff579d68ddf42370ef8732c8aa6972352e6b Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Sat, 19 Dec 2015 02:40:03 +0300
Subject: [PATCH 0247/1463] vtk: use STREQUAL, not MATCHES to compare paths
fix #1087
---
src/vtk-1-fixes.patch | 75 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 75 insertions(+)
diff --git a/src/vtk-1-fixes.patch b/src/vtk-1-fixes.patch
index cd83ecd2..c4bab4e8 100644
--- a/src/vtk-1-fixes.patch
+++ b/src/vtk-1-fixes.patch
@@ -461,3 +461,78 @@ index 1111111..2222222 100644
{
vtkErrorMacro(<< "Initialize: couldn't set user data for callback"\
<< " (" << GetLastError() << ")");
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Boris Nagaev
+Date: Sat, 19 Dec 2015 02:36:12 +0300
+Subject: [PATCH] cmake: use STREQUAL, not MATCHES to compare paths
+
+See https://github.com/mxe/mxe/issues/1087
+
+diff --git a/Utilities/MaterialLibrary/CMakeLists.txt b/Utilities/MaterialLibrary/CMakeLists.txt
+index 1111111..2222222 100644
+--- a/Utilities/MaterialLibrary/CMakeLists.txt
++++ b/Utilities/MaterialLibrary/CMakeLists.txt
+@@ -91,13 +91,13 @@ ENDMACRO(COPY_FILES_TO_DIR)
+
+ # Shaders/Materials provided in Utilities/MaterialLibrary/Repository
+ # are copied over to the binary dir.
+-IF (NOT "${VTK_BINARY_DIR}" MATCHES "^${VTK_SOURCE_DIR}$")
++IF (NOT "${VTK_BINARY_DIR}" STREQUAL "${VTK_SOURCE_DIR}")
+ # Ensure that the Source and Build dir are not same.
+ # In that case we don't need to copy anything.
+ COPY_FILES_TO_DIR(${MaterialLibrary_SOURCE_DIR}/Repository
+ ${VTK_DEFAULT_SHADERS_DIR})
+
+-ENDIF (NOT "${VTK_BINARY_DIR}" MATCHES "^${VTK_SOURCE_DIR}$")
++ENDIF (NOT "${VTK_BINARY_DIR}" STREQUAL "${VTK_SOURCE_DIR}")
+
+ # Build the ShaderCodes Library.
+ SET (CgCodes
+diff --git a/Utilities/vtkTclTest2Py/CMakeLists.txt b/Utilities/vtkTclTest2Py/CMakeLists.txt
+index 1111111..2222222 100644
+--- a/Utilities/vtkTclTest2Py/CMakeLists.txt
++++ b/Utilities/vtkTclTest2Py/CMakeLists.txt
+@@ -40,9 +40,9 @@ IF(PYTHON_EXECUTABLE AND VTK_WRAP_PYTHON)
+ SET(VTK_PYTHON_SOURCE_FILES ${VTK_PYTHON_SOURCE_FILES} ${src})
+ ENDFOREACH(file)
+
+- IF ("${VTK_BINARY_DIR}" MATCHES "^${VTK_SOURCE_DIR}$")
++ IF ("${VTK_BINARY_DIR}" STREQUAL "${VTK_SOURCE_DIR}")
+ #MESSAGE("In source build -- no need to copy Python files.")
+- ELSE ("${VTK_BINARY_DIR}" MATCHES "^${VTK_SOURCE_DIR}$")
++ ELSE ("${VTK_BINARY_DIR}" STREQUAL "${VTK_SOURCE_DIR}")
+ FOREACH(file ${VTK_PYTHON_FILES})
+ SET(src "${VTK_SOURCE_DIR}/Utilities/vtkTclTest2Py/${file}.py")
+ SET(tgt "${VTK_BINARY_DIR}/Utilities/vtkTclTest2Py/${file}.py")
+@@ -52,7 +52,7 @@ IF(PYTHON_EXECUTABLE AND VTK_WRAP_PYTHON)
+ OUTPUT ${tgt}
+ COMMENT "source copy")
+ ENDFOREACH(file)
+- ENDIF ("${VTK_BINARY_DIR}" MATCHES "^${VTK_SOURCE_DIR}$")
++ ENDIF ("${VTK_BINARY_DIR}" STREQUAL "${VTK_SOURCE_DIR}")
+
+ # Byte compile the Python files.
+ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/compile_all_vtk.py.in
+diff --git a/Wrapping/Python/CMakeLists.txt b/Wrapping/Python/CMakeLists.txt
+index 1111111..2222222 100644
+--- a/Wrapping/Python/CMakeLists.txt
++++ b/Wrapping/Python/CMakeLists.txt
+@@ -468,7 +468,7 @@ IF(PYTHON_EXECUTABLE)
+ SET(VTK_PYTHON_SOURCE_FILES ${VTK_PYTHON_SOURCE_FILES} ${src})
+ ENDFOREACH(file)
+
+- IF (NOT "${VTK_BINARY_DIR}" MATCHES "^${VTK_SOURCE_DIR}$")
++ IF (NOT "${VTK_BINARY_DIR}" STREQUAL "${VTK_SOURCE_DIR}")
+ FOREACH(file ${VTK_PYTHON_FILES})
+ SET(src "${VTK_SOURCE_DIR}/Wrapping/Python/${file}.py")
+ SET(tgt "${VTK_BINARY_DIR}/Wrapping/Python/${file}.py")
+@@ -477,7 +477,7 @@ IF(PYTHON_EXECUTABLE)
+ OUTPUT ${tgt}
+ COMMENT "source copy")
+ ENDFOREACH(file)
+- ENDIF (NOT "${VTK_BINARY_DIR}" MATCHES "^${VTK_SOURCE_DIR}$")
++ ENDIF (NOT "${VTK_BINARY_DIR}" STREQUAL "${VTK_SOURCE_DIR}")
+
+ # handle the different configuration types (each will have identical files)
+ SET(VTK_PYTHON_CONFIGURATION_TYPES ${CMAKE_CONFIGURATION_TYPES})
From e5273585a16412e94381359dcad003dc2bfdaa82 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Sun, 20 Dec 2015 02:27:47 +0300
Subject: [PATCH 0248/1463] vtk6: consolidate patches
---
src/vtk6-1-fixes.patch | 86 ++++++++++++++++++++++++++++
src/vtk6-1-tryrun.patch | 36 ------------
src/vtk6-2-config-compiletools.patch | 29 ----------
3 files changed, 86 insertions(+), 65 deletions(-)
create mode 100644 src/vtk6-1-fixes.patch
delete mode 100644 src/vtk6-1-tryrun.patch
delete mode 100644 src/vtk6-2-config-compiletools.patch
diff --git a/src/vtk6-1-fixes.patch b/src/vtk6-1-fixes.patch
new file mode 100644
index 00000000..696cc087
--- /dev/null
+++ b/src/vtk6-1-fixes.patch
@@ -0,0 +1,86 @@
+This file is part of MXE.
+See index.html for further information.
+
+Contains ad hoc patches for cross building.
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Martin=20M=C3=BCllenhaupt?=
+Date: Sat, 22 Jun 2013 18:44:18 +1000
+Subject: [PATCH] add TryRunResults.cmake
+
+
+diff --git a/TryRunResults.cmake b/TryRunResults.cmake
+new file mode 100644
+index 1111111..2222222
+--- /dev/null
++++ b/TryRunResults.cmake
+@@ -0,0 +1,30 @@
++SET( VTK_TYPE_CHAR_IS_SIGNED
++ "1"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++SET( VTK_ANSI_STREAM_EOF_RESULT
++ "1"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++SET( KWSYS_CHAR_IS_SIGNED
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++
++SET( KWSYS_CHAR_IS_SIGNED__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++
++SET( CMAKE_REQUIRE_LARGE_FILE_SUPPORT
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++
++SET( CMAKE_REQUIRE_LARGE_FILE_SUPPORT__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++
++SET( KWSYS_LFS_WORKS
++ "0"
++ CACHE STRING "Result from TRY_RUN" FORCE)
++
++SET( KWSYS_LFS_WORKS__TRYRUN_OUTPUT
++ ""
++ CACHE STRING "Output from TRY_RUN" FORCE)
++
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Martin=20M=C3=BCllenhaupt?=
+Date: Thu, 29 Aug 2013 10:19:49 +0200
+Subject: [PATCH] strip down native configure to required compile tools
+
+
+diff --git a/Utilities/EncodeString/module.cmake b/Utilities/EncodeString/module.cmake
+index 1111111..2222222 100644
+--- a/Utilities/EncodeString/module.cmake
++++ b/Utilities/EncodeString/module.cmake
+@@ -1,4 +1,7 @@
+ vtk_module(vtkUtilitiesEncodeString
++ GROUPS
++ CompileTools
+ DEPENDS
+ vtksys
++ vtkCommonCore
+ EXCLUDE_FROM_WRAPPING)
+diff --git a/Utilities/HashSource/module.cmake b/Utilities/HashSource/module.cmake
+index 1111111..2222222 100644
+--- a/Utilities/HashSource/module.cmake
++++ b/Utilities/HashSource/module.cmake
+@@ -1,4 +1,6 @@
+ vtk_module(vtkUtilitiesHashSource
++ GROUPS
++ CompileTools
+ DEPENDS
+ vtksys
+ EXCLUDE_FROM_WRAPPING
+diff --git a/Utilities/ParseOGLExt/module.cmake b/Utilities/ParseOGLExt/module.cmake
+index 1111111..2222222 100644
+--- a/Utilities/ParseOGLExt/module.cmake
++++ b/Utilities/ParseOGLExt/module.cmake
+@@ -1,2 +1,4 @@
+ vtk_module(vtkParseOGLExt
++ GROUPS
++ CompileTools
+ EXCLUDE_FROM_WRAPPING)
diff --git a/src/vtk6-1-tryrun.patch b/src/vtk6-1-tryrun.patch
deleted file mode 100644
index c30aa7e7..00000000
--- a/src/vtk6-1-tryrun.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-This file is part of MXE.
-See index.html for further information.
-
---- blubb 1970-01-01 01:00:00.000000000 +0100
-+++ VTK/TryRunResults.cmake 2011-09-27 08:44:04.563613261 +0200
-@@ -0,0 +1,30 @@
-+SET( VTK_TYPE_CHAR_IS_SIGNED
-+ "1"
-+ CACHE STRING "Result from TRY_RUN" FORCE)
-+SET( VTK_ANSI_STREAM_EOF_RESULT
-+ "1"
-+ CACHE STRING "Result from TRY_RUN" FORCE)
-+SET( KWSYS_CHAR_IS_SIGNED
-+ "0"
-+ CACHE STRING "Result from TRY_RUN" FORCE)
-+
-+SET( KWSYS_CHAR_IS_SIGNED__TRYRUN_OUTPUT
-+ ""
-+ CACHE STRING "Output from TRY_RUN" FORCE)
-+
-+SET( CMAKE_REQUIRE_LARGE_FILE_SUPPORT
-+ "0"
-+ CACHE STRING "Result from TRY_RUN" FORCE)
-+
-+SET( CMAKE_REQUIRE_LARGE_FILE_SUPPORT__TRYRUN_OUTPUT
-+ ""
-+ CACHE STRING "Output from TRY_RUN" FORCE)
-+
-+SET( KWSYS_LFS_WORKS
-+ "0"
-+ CACHE STRING "Result from TRY_RUN" FORCE)
-+
-+SET( KWSYS_LFS_WORKS__TRYRUN_OUTPUT
-+ ""
-+ CACHE STRING "Output from TRY_RUN" FORCE)
-+
diff --git a/src/vtk6-2-config-compiletools.patch b/src/vtk6-2-config-compiletools.patch
deleted file mode 100644
index 253eb128..00000000
--- a/src/vtk6-2-config-compiletools.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-This file is part of MXE.
-See index.html for further information.
-
---- VTK6.3.0/Utilities/EncodeString/module.cmake 2013-06-12 21:47:10.000000000 +0200
-+++ VTK6.3.0/Utilities/EncodeString/module.cmake 2013-08-29 10:06:51.327921851 +0200
-@@ -1,4 +1,7 @@
- vtk_module(vtkUtilitiesEncodeString
-+ GROUPS
-+ CompileTools
- DEPENDS
- vtksys
-+ vtkCommonCore
- EXCLUDE_FROM_WRAPPING)
---- VTK6.3.0/Utilities/HashSource/module.cmake 2013-06-12 21:47:10.000000000 +0200
-+++ VTK6.3.0/Utilities/HashSource/module.cmake 2013-08-29 09:58:48.055272752 +0200
-@@ -1,4 +1,6 @@
- vtk_module(vtkUtilitiesHashSource
-+ GROUPS
-+ CompileTools
- DEPENDS
- vtksys
- EXCLUDE_FROM_WRAPPING
---- VTK6.3.0/Utilities/ParseOGLExt/module.cmake 2013-06-12 21:47:10.000000000 +0200
-+++ VTK6.3.0/Utilities/ParseOGLExt/module.cmake 2013-08-29 09:58:54.939480759 +0200
-@@ -1,4 +1,6 @@
- vtk_module(vtkParseOGLExt
-+ GROUPS
-+ CompileTools
- EXCLUDE_FROM_WRAPPING)
From ba1b6a20a93accd9fd662f8e5454ee03088d8db4 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Sun, 20 Dec 2015 18:32:47 +0300
Subject: [PATCH 0249/1463] opencv: fix CMake error if a directory contains ++
fix #1091
---
src/opencv-5-fix-in-bad-dir.patch | 66 +++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
create mode 100644 src/opencv-5-fix-in-bad-dir.patch
diff --git a/src/opencv-5-fix-in-bad-dir.patch b/src/opencv-5-fix-in-bad-dir.patch
new file mode 100644
index 00000000..f44116d9
--- /dev/null
+++ b/src/opencv-5-fix-in-bad-dir.patch
@@ -0,0 +1,66 @@
+This file is part of MXE.
+See index.html for further information.
+
+Contains ad hoc patches for cross building.
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Boris Nagaev
+Date: Sun, 20 Dec 2015 18:14:56 +0300
+Subject: [PATCH] fix CMake error if a directory contains ++
+
+See https://github.com/mxe/mxe/issues/1091
+
+diff --git a/cmake/OpenCVModule.cmake b/cmake/OpenCVModule.cmake
+index 1111111..2222222 100644
+--- a/cmake/OpenCVModule.cmake
++++ b/cmake/OpenCVModule.cmake
+@@ -364,12 +364,16 @@ function(__ocv_resolve_dependencies)
+ # process private deps
+ foreach(m ${OPENCV_MODULES_BUILD})
+ foreach(d ${OPENCV_MODULE_${m}_PRIVATE_REQ_DEPS})
+- if(NOT (";${deps_${m}};" MATCHES ";${d};"))
++ # can't use MATCH because file paths can include regexp special chars
++ string(FIND ";${deps_${m}};" ";${d};" d_offset)
++ if(${d_offset} EQUAL -1)
+ list(APPEND deps_${m} ${d})
+ endif()
+ endforeach()
+ foreach(d ${OPENCV_MODULE_${m}_PRIVATE_OPT_DEPS})
+- if(NOT (";${deps_${m}};" MATCHES ";${d};"))
++ # can't use MATCH because file paths can include regexp special chars
++ string(FIND ";${deps_${m}};" ";${d};" d_offset)
++ if(${d_offset} EQUAL -1)
+ if(HAVE_${d} OR TARGET ${d})
+ list(APPEND deps_${m} ${d})
+ endif()
+diff --git a/cmake/OpenCVPCHSupport.cmake b/cmake/OpenCVPCHSupport.cmake
+index 1111111..2222222 100644
+--- a/cmake/OpenCVPCHSupport.cmake
++++ b/cmake/OpenCVPCHSupport.cmake
+@@ -54,7 +54,9 @@ MACRO(_PCH_GET_COMPILE_FLAGS _out_compile_flags)
+
+ GET_DIRECTORY_PROPERTY(DIRINC INCLUDE_DIRECTORIES )
+ FOREACH(item ${DIRINC})
+- if(item MATCHES "^${OpenCV_SOURCE_DIR}/modules/")
++ # can't use MATCH because file paths can include regexp special chars
++ string(FIND "${item}" "${OpenCV_SOURCE_DIR}/modules/" modules_offset)
++ if(${modules_offset} EQUAL 0)
+ LIST(APPEND ${_out_compile_flags} "${_PCH_include_prefix}\"${item}\"")
+ else()
+ LIST(APPEND ${_out_compile_flags} "${_PCH_isystem_prefix}\"${item}\"")
+diff --git a/cmake/OpenCVUtils.cmake b/cmake/OpenCVUtils.cmake
+index 1111111..2222222 100644
+--- a/cmake/OpenCVUtils.cmake
++++ b/cmake/OpenCVUtils.cmake
+@@ -39,7 +39,10 @@ function(ocv_include_directories)
+ set(__add_before "")
+ foreach(dir ${ARGN})
+ get_filename_component(__abs_dir "${dir}" ABSOLUTE)
+- if("${__abs_dir}" MATCHES "^${OpenCV_SOURCE_DIR}" OR "${__abs_dir}" MATCHES "^${OpenCV_BINARY_DIR}")
++ # can't use MATCH because file paths can include regexp special chars
++ string(FIND "${__abs_dir}" "${OpenCV_SOURCE_DIR}" OpenCV_SOURCE_DIR_offset)
++ string(FIND "${__abs_dir}" "${OpenCV_BINARY_DIR}" OpenCV_BINARY_DIR_offset)
++ if($OpenCV_BINARY_DIR_offset} EQUAL 0 OR ${OpenCV_BINARY_DIR_offset} EQUAL 0)
+ list(APPEND __add_before "${dir}")
+ else()
+ include_directories(AFTER SYSTEM "${dir}")
From 5ebcb2ebde350e2840928dc2dcf3663feff93dda Mon Sep 17 00:00:00 2001
From: Tony Theodore
Date: Tue, 22 Dec 2015 20:10:47 +1100
Subject: [PATCH 0250/1463] Makefile: error on paths with dollar signs
see #1085
---
Makefile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Makefile b/Makefile
index 1f439009..120cba63 100644
--- a/Makefile
+++ b/Makefile
@@ -230,6 +230,11 @@ ifneq ($(words $(PWD)),1)
$(error GNU Make chokes on paths with spaces)
endif
+# dollar signs also cause troubles
+ifneq (,$(findstring $$,$(PWD)))
+ $(error GNU Make chokes on paths with dollar signs)
+endif
+
ifeq ($(IGNORE_SETTINGS),yes)
$(info [ignore settings.mk])
else ifeq ($(wildcard $(PWD)/settings.mk),$(PWD)/settings.mk)
From 8540e9c19a6e1fd312214cf264b679695b5e5762 Mon Sep 17 00:00:00 2001
From: fiesh
Date: Tue, 22 Dec 2015 13:45:56 +0100
Subject: [PATCH 0251/1463] fix freeimage build
Add the FREEIMAGE_LIB define in order to keep the build process from
defining dllspec specifications. Remove -fPIC to fix a warning.
---
src/freeimage-2-fixes.patch | 18 ++++++++++++++++++
src/freeimage.mk | 1 -
2 files changed, 18 insertions(+), 1 deletion(-)
create mode 100644 src/freeimage-2-fixes.patch
diff --git a/src/freeimage-2-fixes.patch b/src/freeimage-2-fixes.patch
new file mode 100644
index 00000000..6ea967a6
--- /dev/null
+++ b/src/freeimage-2-fixes.patch
@@ -0,0 +1,18 @@
+This file is part of MXE.
+See index.html for further information.
+
+Add the FREEIMAGE_LIB define in order to keep the build process from defining
+dllspec specifications.
+
+diff -ur a/Makefile.fip b/Makefile.fip
+--- a/Makefile.fip 2010-12-09 15:12:12.000000000 +0100
++++ b/Makefile.fip 2015-12-22 13:24:33.071944345 +0100
+@@ -17,7 +17,7 @@
+ MODULES := $(MODULES:.cpp=.o)
+ CFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden -DNO_LCMS
+ CFLAGS += $(INCLUDE)
+-CXXFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy
++CXXFLAGS ?= -O3 -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -DFREEIMAGE_LIB
+ CXXFLAGS += $(INCLUDE)
+
+ ifeq ($(shell sh -c 'uname -m 2>/dev/null || echo not'),x86_64)
diff --git a/src/freeimage.mk b/src/freeimage.mk
index bb85db2d..d83f3b08 100644
--- a/src/freeimage.mk
+++ b/src/freeimage.mk
@@ -27,7 +27,6 @@ define $(PKG)_BUILD
$(MAKE) -C '$(1)' -j '$(JOBS)' -f Makefile.fip \
CXX='$(TARGET)-g++' \
- CXXFLAGS='-DFREEIMAGE_LIB' \
CC='$(TARGET)-gcc' \
AR='$(TARGET)-ar' \
RC='$(TARGET)-windres' \
From 2031b976aebe14bf6b5a794fc32d049c6117c16b Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Fri, 25 Dec 2015 00:55:13 +0300
Subject: [PATCH 0252/1463] freeimage: consolidate patches
---
src/freeimage-1-fixes.patch | 42 +++++++++++++++++++++++++------------
src/freeimage-2-fixes.patch | 18 ----------------
2 files changed, 29 insertions(+), 31 deletions(-)
delete mode 100644 src/freeimage-2-fixes.patch
diff --git a/src/freeimage-1-fixes.patch b/src/freeimage-1-fixes.patch
index b166db52..0b3dcd2e 100644
--- a/src/freeimage-1-fixes.patch
+++ b/src/freeimage-1-fixes.patch
@@ -3,15 +3,15 @@ See index.html for further information.
Contains ad hoc patches for cross building.
-From 85f449a5341881f90a6af1dbbb7f3d3cd656bca6 Mon Sep 17 00:00:00 2001
-From: MXE
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: "fix@me"
Date: Sat, 27 Oct 2012 22:57:27 +0200
-Subject: [PATCH 1/2] include string.h for memset
+Subject: [PATCH] include string.h for memset
taken from https://sourceforge.net/tracker/?func=detail&aid=3581223&group_id=11504&atid=311504
diff --git a/Source/OpenEXR/IlmImf/ImfAutoArray.h b/Source/OpenEXR/IlmImf/ImfAutoArray.h
-index edb8b10..0b1378e 100755
+index 1111111..2222222 100644
--- a/Source/OpenEXR/IlmImf/ImfAutoArray.h
+++ b/Source/OpenEXR/IlmImf/ImfAutoArray.h
@@ -45,6 +45,10 @@
@@ -25,18 +25,15 @@ index edb8b10..0b1378e 100755
namespace Imf {
---
-1.8.2.2
-
-From 1c85f65b9efc06760ac572ba19c1c513f14d4719 Mon Sep 17 00:00:00 2001
-From: MXE
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: "fix@me"
Date: Sat, 11 May 2013 15:15:39 +1000
-Subject: [PATCH 2/2] mingw-w64 fixes
+Subject: [PATCH] mingw-w64 fixes
diff --git a/Source/FreeImage/PluginTIFF.cpp b/Source/FreeImage/PluginTIFF.cpp
-index 72218a2..10c86fd 100755
+index 1111111..2222222 100644
--- a/Source/FreeImage/PluginTIFF.cpp
+++ b/Source/FreeImage/PluginTIFF.cpp
@@ -35,6 +35,8 @@
@@ -57,6 +54,25 @@ index 72218a2..10c86fd 100755
}
return tif;
---
-1.8.2.2
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: fiesh
+Date: Tue, 22 Dec 2015 13:45:56 +0100
+Subject: [PATCH] fix freeimage build
+
+Add the FREEIMAGE_LIB define in order to keep the build process from
+defining dllspec specifications. Remove -fPIC to fix a warning.
+
+diff --git a/Makefile.fip b/Makefile.fip
+index 1111111..2222222 100644
+--- a/Makefile.fip
++++ b/Makefile.fip
+@@ -17,7 +17,7 @@ MODULES = $(SRCS:.c=.o)
+ MODULES := $(MODULES:.cpp=.o)
+ CFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden -DNO_LCMS
+ CFLAGS += $(INCLUDE)
+-CXXFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy
++CXXFLAGS ?= -O3 -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -DFREEIMAGE_LIB
+ CXXFLAGS += $(INCLUDE)
+
+ ifeq ($(shell sh -c 'uname -m 2>/dev/null || echo not'),x86_64)
diff --git a/src/freeimage-2-fixes.patch b/src/freeimage-2-fixes.patch
deleted file mode 100644
index 6ea967a6..00000000
--- a/src/freeimage-2-fixes.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-This file is part of MXE.
-See index.html for further information.
-
-Add the FREEIMAGE_LIB define in order to keep the build process from defining
-dllspec specifications.
-
-diff -ur a/Makefile.fip b/Makefile.fip
---- a/Makefile.fip 2010-12-09 15:12:12.000000000 +0100
-+++ b/Makefile.fip 2015-12-22 13:24:33.071944345 +0100
-@@ -17,7 +17,7 @@
- MODULES := $(MODULES:.cpp=.o)
- CFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden -DNO_LCMS
- CFLAGS += $(INCLUDE)
--CXXFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy
-+CXXFLAGS ?= -O3 -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -DFREEIMAGE_LIB
- CXXFLAGS += $(INCLUDE)
-
- ifeq ($(shell sh -c 'uname -m 2>/dev/null || echo not'),x86_64)
From 7dc682ceb648cd47cd39c6f4a18576db627306e4 Mon Sep 17 00:00:00 2001
From: Boris Nagaev
Date: Fri, 25 Dec 2015 00:59:44 +0300
Subject: [PATCH 0253/1463] freeimage: find authors of two patches
* "include string.h for memset" was added in 2eb0615d46f
* "mingw-w64 fixes" was added in 5390e5203e5
---
src/freeimage-1-fixes.patch | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/freeimage-1-fixes.patch b/src/freeimage-1-fixes.patch
index 0b3dcd2e..ba6bdbca 100644
--- a/src/freeimage-1-fixes.patch
+++ b/src/freeimage-1-fixes.patch
@@ -4,7 +4,7 @@ See index.html for further information.
Contains ad hoc patches for cross building.
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: "fix@me"
+From: Mark Brand
Date: Sat, 27 Oct 2012 22:57:27 +0200
Subject: [PATCH] include string.h for memset
@@ -27,7 +27,7 @@ index 1111111..2222222 100644
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: "fix@me"
+From: Tony Theodore
Date: Sat, 11 May 2013 15:15:39 +1000
Subject: [PATCH] mingw-w64 fixes
From fdd5b9f7aa8bf0e40c1f1f8119701af96e51457e Mon Sep 17 00:00:00 2001
From: Tony Theodore
Date: Fri, 25 Dec 2015 20:43:53 +1100
Subject: [PATCH 0254/1463] boost: update 1.57.0 --> 1.60.0
tested on all four targets
---
src/boost-1-fixes.patch | 1767 ++-------------------------------------
src/boost.mk | 5 +-
2 files changed, 65 insertions(+), 1707 deletions(-)
diff --git a/src/boost-1-fixes.patch b/src/boost-1-fixes.patch
index fd9db9c4..90b70bb5 100644
--- a/src/boost-1-fixes.patch
+++ b/src/boost-1-fixes.patch
@@ -1,1725 +1,82 @@
This file is part of MXE.
See index.html for further information.
-From 7b1ff5c3a275e2903a7f35a3817d00f8a75b47d0 Mon Sep 17 00:00:00 2001
-From: Tony Theodore
-Date: Sun, 29 Mar 2015 12:55:15 +0200
-Subject: [PATCH 1/3] fixes
-
-This patch has been taken from:
-https://aur.archlinux.org/packages/mingw-w64-boost/
-
-diff --git a/boost/detail/interlocked.hpp b/boost/detail/interlocked.hpp
-index 2c91ce2..abc7c6d 100644
---- a/boost/detail/interlocked.hpp
-+++ b/boost/detail/interlocked.hpp
-@@ -1,6 +1,10 @@
- #ifndef BOOST_DETAIL_INTERLOCKED_HPP_INCLUDED
- #define BOOST_DETAIL_INTERLOCKED_HPP_INCLUDED
-
-+#ifndef BOOST_USE_WINDOWS_H
-+#define BOOST_USE_WINDOWS_H
-+#endif
-+
- //
- // boost/detail/interlocked.hpp
- //
-diff --git a/boost/detail/interlocked.hpp.orig b/boost/detail/interlocked.hpp.orig
-new file mode 100644
-index 0000000..2c91ce2
---- /dev/null
-+++ b/boost/detail/interlocked.hpp.orig
-@@ -0,0 +1,218 @@
-+#ifndef BOOST_DETAIL_INTERLOCKED_HPP_INCLUDED
-+#define BOOST_DETAIL_INTERLOCKED_HPP_INCLUDED
-+
-+//
-+// boost/detail/interlocked.hpp
-+//
-+// Copyright 2005 Peter Dimov
-+//
-+// Distributed under the Boost Software License, Version 1.0. (See
-+// accompanying file LICENSE_1_0.txt or copy at
-+// http://www.boost.org/LICENSE_1_0.txt)
-+//
-+
-+#include
-+
-+// MS compatible compilers support #pragma once
-+#ifdef BOOST_HAS_PRAGMA_ONCE
-+#pragma once
-+#endif
-+
-+#if defined( BOOST_USE_WINDOWS_H )
-+
-+# include
-+
-+# define BOOST_INTERLOCKED_INCREMENT InterlockedIncrement
-+# define BOOST_INTERLOCKED_DECREMENT InterlockedDecrement
-+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE InterlockedCompareExchange
-+# define BOOST_INTERLOCKED_EXCHANGE InterlockedExchange
-+# define BOOST_INTERLOCKED_EXCHANGE_ADD InterlockedExchangeAdd
-+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE_POINTER InterlockedCompareExchangePointer
-+# define BOOST_INTERLOCKED_EXCHANGE_POINTER InterlockedExchangePointer
-+
-+#elif defined( BOOST_USE_INTRIN_H )
-+
-+#include
-+
-+# define BOOST_INTERLOCKED_INCREMENT _InterlockedIncrement
-+# define BOOST_INTERLOCKED_DECREMENT _InterlockedDecrement
-+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE _InterlockedCompareExchange
-+# define BOOST_INTERLOCKED_EXCHANGE _InterlockedExchange
-+# define BOOST_INTERLOCKED_EXCHANGE_ADD _InterlockedExchangeAdd
-+
-+# if defined(_M_IA64) || defined(_M_AMD64) || defined(__x86_64__) || defined(__x86_64)
-+
-+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE_POINTER _InterlockedCompareExchangePointer
-+# define BOOST_INTERLOCKED_EXCHANGE_POINTER _InterlockedExchangePointer
-+
-+# else
-+
-+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE_POINTER(dest,exchange,compare) \
-+ ((void*)BOOST_INTERLOCKED_COMPARE_EXCHANGE((long volatile*)(dest),(long)(exchange),(long)(compare)))
-+# define BOOST_INTERLOCKED_EXCHANGE_POINTER(dest,exchange) \
-+ ((void*)BOOST_INTERLOCKED_EXCHANGE((long volatile*)(dest),(long)(exchange)))
-+
-+# endif
-+
-+#elif defined(_WIN32_WCE)
-+
-+#if _WIN32_WCE >= 0x600
-+
-+extern "C" long __cdecl _InterlockedIncrement( long volatile * );
-+extern "C" long __cdecl _InterlockedDecrement( long volatile * );
-+extern "C" long __cdecl _InterlockedCompareExchange( long volatile *, long, long );
-+extern "C" long __cdecl _InterlockedExchange( long volatile *, long );
-+extern "C" long __cdecl _InterlockedExchangeAdd( long volatile *, long );
-+
-+# define BOOST_INTERLOCKED_INCREMENT _InterlockedIncrement
-+# define BOOST_INTERLOCKED_DECREMENT _InterlockedDecrement
-+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE _InterlockedCompareExchange
-+# define BOOST_INTERLOCKED_EXCHANGE _InterlockedExchange
-+# define BOOST_INTERLOCKED_EXCHANGE_ADD _InterlockedExchangeAdd
-+
-+#else
-+// under Windows CE we still have old-style Interlocked* functions
-+
-+extern "C" long __cdecl InterlockedIncrement( long* );
-+extern "C" long __cdecl InterlockedDecrement( long* );
-+extern "C" long __cdecl InterlockedCompareExchange( long*, long, long );
-+extern "C" long __cdecl InterlockedExchange( long*, long );
-+extern "C" long __cdecl InterlockedExchangeAdd( long*, long );
-+
-+# define BOOST_INTERLOCKED_INCREMENT InterlockedIncrement
-+# define BOOST_INTERLOCKED_DECREMENT InterlockedDecrement
-+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE InterlockedCompareExchange
-+# define BOOST_INTERLOCKED_EXCHANGE InterlockedExchange
-+# define BOOST_INTERLOCKED_EXCHANGE_ADD InterlockedExchangeAdd
-+
-+#endif
-+
-+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE_POINTER(dest,exchange,compare) \
-+ ((void*)BOOST_INTERLOCKED_COMPARE_EXCHANGE((long*)(dest),(long)(exchange),(long)(compare)))
-+# define BOOST_INTERLOCKED_EXCHANGE_POINTER(dest,exchange) \
-+ ((void*)BOOST_INTERLOCKED_EXCHANGE((long*)(dest),(long)(exchange)))
-+
-+#elif defined( BOOST_MSVC ) || defined( BOOST_INTEL_WIN )
-+
-+#if defined( BOOST_MSVC ) && BOOST_MSVC >= 1400
-+
-+#include
-+
-+#else
-+
-+# if defined( __CLRCALL_PURE_OR_CDECL )
-+# define BOOST_INTERLOCKED_CLRCALL_PURE_OR_CDECL __CLRCALL_PURE_OR_CDECL
-+# else
-+# define BOOST_INTERLOCKED_CLRCALL_PURE_OR_CDECL __cdecl
-+# endif
-+
-+extern "C" long BOOST_INTERLOCKED_CLRCALL_PURE_OR_CDECL _InterlockedIncrement( long volatile * );
-+extern "C" long BOOST_INTERLOCKED_CLRCALL_PURE_OR_CDECL _InterlockedDecrement( long volatile * );
-+extern "C" long BOOST_INTERLOCKED_CLRCALL_PURE_OR_CDECL _InterlockedCompareExchange( long volatile *, long, long );
-+extern "C" long BOOST_INTERLOCKED_CLRCALL_PURE_OR_CDECL _InterlockedExchange( long volatile *, long );
-+extern "C" long BOOST_INTERLOCKED_CLRCALL_PURE_OR_CDECL _InterlockedExchangeAdd( long volatile *, long );
-+
-+# undef BOOST_INTERLOCKED_CLRCALL_PURE_OR_CDECL
-+
-+# if defined( BOOST_MSVC ) && BOOST_MSVC >= 1310
-+# pragma intrinsic( _InterlockedIncrement )
-+# pragma intrinsic( _InterlockedDecrement )
-+# pragma intrinsic( _InterlockedCompareExchange )
-+# pragma intrinsic( _InterlockedExchange )
-+# pragma intrinsic( _InterlockedExchangeAdd )
-+# endif
-+
-+#endif
-+
-+# if defined(_M_IA64) || defined(_M_AMD64)
-+
-+extern "C" void* __cdecl _InterlockedCompareExchangePointer( void* volatile *, void*, void* );
-+extern "C" void* __cdecl _InterlockedExchangePointer( void* volatile *, void* );
-+
-+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE_POINTER _InterlockedCompareExchangePointer
-+# define BOOST_INTERLOCKED_EXCHANGE_POINTER _InterlockedExchangePointer
-+
-+# else
-+
-+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE_POINTER(dest,exchange,compare) \
-+ ((void*)BOOST_INTERLOCKED_COMPARE_EXCHANGE((long volatile*)(dest),(long)(exchange),(long)(compare)))
-+# define BOOST_INTERLOCKED_EXCHANGE_POINTER(dest,exchange) \
-+ ((void*)BOOST_INTERLOCKED_EXCHANGE((long volatile*)(dest),(long)(exchange)))
-+
-+# endif
-+
-+# define BOOST_INTERLOCKED_INCREMENT _InterlockedIncrement
-+# define BOOST_INTERLOCKED_DECREMENT _InterlockedDecrement
-+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE _InterlockedCompareExchange
-+# define BOOST_INTERLOCKED_EXCHANGE _InterlockedExchange
-+# define BOOST_INTERLOCKED_EXCHANGE_ADD _InterlockedExchangeAdd
-+
-+// Unlike __MINGW64__, __MINGW64_VERSION_MAJOR is defined by MinGW-w64 for both 32 and 64-bit targets.
-+#elif defined(__MINGW64_VERSION_MAJOR)
-+
-+// MinGW-w64 provides intrin.h for both 32 and 64-bit targets.
-+#include
-+
-+# define BOOST_INTERLOCKED_INCREMENT _InterlockedIncrement
-+# define BOOST_INTERLOCKED_DECREMENT _InterlockedDecrement
-+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE _InterlockedCompareExchange
-+# define BOOST_INTERLOCKED_EXCHANGE _InterlockedExchange
-+# define BOOST_INTERLOCKED_EXCHANGE_ADD _InterlockedExchangeAdd
-+# if defined(__x86_64__) || defined(__x86_64)
-+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE_POINTER _InterlockedCompareExchangePointer
-+# define BOOST_INTERLOCKED_EXCHANGE_POINTER _InterlockedExchangePointer
-+# else
-+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE_POINTER(dest,exchange,compare) \
-+ ((void*)BOOST_INTERLOCKED_COMPARE_EXCHANGE((long volatile*)(dest),(long)(exchange),(long)(compare)))
-+# define BOOST_INTERLOCKED_EXCHANGE_POINTER(dest,exchange) \
-+ ((void*)BOOST_INTERLOCKED_EXCHANGE((long volatile*)(dest),(long)(exchange)))
-+# endif
-+
-+#elif defined( WIN32 ) || defined( _WIN32 ) || defined( __WIN32__ ) || defined( __CYGWIN__ )
-+
-+#define BOOST_INTERLOCKED_IMPORT __declspec(dllimport)
-+
-+namespace boost
-+{
-+
-+namespace detail
-+{
-+
-+extern "C" BOOST_INTERLOCKED_IMPORT long __stdcall InterlockedIncrement( long volatile * );
-+extern "C" BOOST_INTERLOCKED_IMPORT long __stdcall InterlockedDecrement( long volatile * );
-+extern "C" BOOST_INTERLOCKED_IMPORT long __stdcall InterlockedCompareExchange( long volatile *, long, long );
-+extern "C" BOOST_INTERLOCKED_IMPORT long __stdcall InterlockedExchange( long volatile *, long );
-+extern "C" BOOST_INTERLOCKED_IMPORT long __stdcall InterlockedExchangeAdd( long volatile *, long );
-+
-+# if defined(_M_IA64) || defined(_M_AMD64)
-+extern "C" BOOST_INTERLOCKED_IMPORT void* __stdcall InterlockedCompareExchangePointer( void* volatile *, void*, void* );
-+extern "C" BOOST_INTERLOCKED_IMPORT void* __stdcall InterlockedExchangePointer( void* volatile *, void* );
-+# endif
-+
-+} // namespace detail
-+
-+} // namespace boost
-+
-+# define BOOST_INTERLOCKED_INCREMENT ::boost::detail::InterlockedIncrement
-+# define BOOST_INTERLOCKED_DECREMENT ::boost::detail::InterlockedDecrement
-+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE ::boost::detail::InterlockedCompareExchange
-+# define BOOST_INTERLOCKED_EXCHANGE ::boost::detail::InterlockedExchange
-+# define BOOST_INTERLOCKED_EXCHANGE_ADD ::boost::detail::InterlockedExchangeAdd
-+
-+# if defined(_M_IA64) || defined(_M_AMD64)
-+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE_POINTER ::boost::detail::InterlockedCompareExchangePointer
-+# define BOOST_INTERLOCKED_EXCHANGE_POINTER ::boost::detail::InterlockedExchangePointer
-+# else
-+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE_POINTER(dest,exchange,compare) \
-+ ((void*)BOOST_INTERLOCKED_COMPARE_EXCHANGE((long volatile*)(dest),(long)(exchange),(long)(compare)))
-+# define BOOST_INTERLOCKED_EXCHANGE_POINTER(dest,exchange) \
-+ ((void*)BOOST_INTERLOCKED_EXCHANGE((long volatile*)(dest),(long)(exchange)))
-+# endif
-+
-+#else
-+
-+# error "Interlocked intrinsics not available"
-+
-+#endif
-+
-+#endif // #ifndef BOOST_DETAIL_INTERLOCKED_HPP_INCLUDED
-diff --git a/libs/context/build/Jamfile.v2 b/libs/context/build/Jamfile.v2
-index 7cc8a07..2143ed3 100644
---- a/libs/context/build/Jamfile.v2
-+++ b/libs/context/build/Jamfile.v2
-@@ -581,6 +581,17 @@ alias asm_context_sources
- ;
-
- alias asm_context_sources
-+ : asm/make_i386_ms_pe_gas.S
-+ asm/jump_i386_ms_pe_gas.S
-+ dummy.cpp
-+ : 32
-+ x86
-+ pe
-+ windows
-+ gcc
-+ ;
-+
-+alias asm_context_sources
- : asm/make_i386_ms_pe_masm.asm
- asm/jump_i386_ms_pe_masm.asm
- dummy.cpp
-@@ -715,6 +726,17 @@ alias asm_context_sources
- ;
-
- alias asm_context_sources
-+ : asm/make_x86_64_ms_pe_gas.S
-+ asm/jump_x86_64_ms_pe_gas.S
-+ dummy.cpp
-+ : 64
-+ x86
-+ pe
-+ windows
-+ gcc
-+ ;
-+
-+alias asm_context_sources
- : asm/make_x86_64_ms_pe_masm.asm
- asm/jump_x86_64_ms_pe_masm.asm
- dummy.cpp
-diff --git a/libs/context/build/Jamfile.v2.orig b/libs/context/build/Jamfile.v2.orig
-new file mode 100644
-index 0000000..7cc8a07
---- /dev/null
-+++ b/libs/context/build/Jamfile.v2.orig
-@@ -0,0 +1,775 @@
-+
-+# Boost.Context Library Build Jamfile
-+
-+# Copyright Oliver Kowalke 2009.
-+# Distributed under the Boost Software License, Version 1.0.
-+# (See accompanying file LICENSE_1_0.txt or copy at
-+# http://www.boost.org/LICENSE_1_0.txt)
-+
-+import common ;
-+import feature ;
-+import indirect ;
-+import modules ;
-+import os ;
-+import toolset ;
-+import architecture ;
-+
-+project boost/context
-+ : requirements
-+ SOLARIS:_XOPEN_SOURCE=600
-+ shared:BOOST_CONTEXT_DYN_LINK=1
-+ BOOST_CONTEXT_SOURCE
-+ : usage-requirements
-+ shared:BOOST_CONTEXT_DYN_LINK=1
-+ : source-location ../src
-+ ;
-+
-+local rule default_binary_format ( )
-+{
-+ local tmp = elf ;
-+ if [ os.name ] = "MACOSX" { tmp = mach-o ; }
-+ if [ os.name ] = "NT" { tmp = pe ; }
-+ if [ os.name ] = "AIX" { tmp = xcoff ; }
-+ return $(tmp) ;
-+}
-+
-+feature.feature binary-format
-+ : elf
-+ mach-o
-+ pe
-+ xcoff
-+ : propagated
-+ ;
-+feature.set-default binary-format : [ default_binary_format ] ;
-+
-+
-+local rule default_abi ( )
-+{
-+ local tmp = sysv ;
-+ if [ os.name ] = "NT" { tmp = ms ; }
-+ else if [ os.platform ] = "ARM" { tmp = aapcs ; }
-+ else if [ os.platform ] = "MIPS" { tmp = o32 ; }
-+ return $(tmp) ;
-+}
-+
-+feature.feature abi
-+ : aapcs
-+ eabi
-+ ms
-+ n32
-+ n64
-+ o32
-+ o64
-+ sysv
-+ x32
-+ : propagated
-+ ;
-+feature.set-default abi : [ default_abi ] ;
-+
-+
-+actions gas32
-+{
-+ cpp -x assembler-with-cpp "$(>)" | as --32 -o "$(<)"
-+}
-+
-+actions gas64
-+{
-+ cpp -x assembler-with-cpp "$(>)" | as --64 -o "$(<)"
-+}
-+
-+actions gasx32
-+{
-+ cpp -x assembler-with-cpp "$(>)" | as --x32 -o "$(<)"
-+}
-+
-+actions gas
-+{
-+ cpp -x assembler-with-cpp "$(>)" | as -o "$(<)"
-+}
-+
-+actions armasm
-+{
-+ armasm "$(>)" "$(<)"
-+}
-+
-+actions masm
-+{
-+ ml /c /Fo"$(<)" "$(>)"
-+}
-+
-+actions masm64
-+{
-+ ml64 /c /Fo"$(<)" "$(>)"
-+}
-+
-+
-+rule configure ( properties * )
-+{
-+ local result ;
-+
-+# if ( ! ( gcc in $(properties)
-+# || intel in $(properties)
-+# || msvc in $(properties) ) )
-+# {
-+# result = no ;
-+# ECHO "toolset not supported" ;
-+# }
-+
-+ return $(result) ;
-+}
-+
-+# ARM
-+# ARM/AAPCS/ELF
-+alias asm_context_sources
-+ : [ make asm/make_arm_aapcs_elf_gas.o : asm/make_arm_aapcs_elf_gas.S : @gas32 ]
-+ [ make asm/jump_arm_aapcs_elf_gas.o : asm/jump_arm_aapcs_elf_gas.S : @gas32 ]
-+ : aapcs
-+ 32
-+ arm
-+ elf
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_arm_aapcs_elf_gas.S
-+ asm/jump_arm_aapcs_elf_gas.S
-+ : aapcs
-+ 32
-+ arm
-+ elf
-+ clang
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_arm_aapcs_elf_gas.S
-+ asm/jump_arm_aapcs_elf_gas.S
-+ : aapcs
-+ 32
-+ arm
-+ elf
-+ gcc
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_arm_aapcs_elf_gas.S
-+ asm/jump_arm_aapcs_elf_gas.S
-+ : aapcs
-+ 32
-+ arm
-+ elf
-+ qcc
-+ ;
-+# ARM/AAPCS/MACH-O
-+alias asm_context_sources
-+ : [ make asm/make_arm_aapcs_macho_gas.o : asm/make_arm_aapcs_macho_gas.S : @gas32 ]
-+ [ make asm/jump_arm_aapcs_macho_gas.o : asm/jump_arm_aapcs_macho_gas.S : @gas32 ]
-+ : aapcs
-+ 32
-+ arm
-+ mach-o
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_arm_aapcs_macho_gas.S
-+ asm/jump_arm_aapcs_macho_gas.S
-+ : aapcs
-+ 32
-+ arm
-+ mach-o
-+ clang
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_arm_aapcs_macho_gas.S
-+ asm/jump_arm_aapcs_macho_gas.S
-+ : aapcs
-+ 32
-+ arm
-+ mach-o
-+ darwin
-+ ;
-+# ARM/AAPCS/PE
-+alias asm_context_sources
-+ : [ make asm/make_arm_aapcs_pe_armasm.o : asm/make_arm_aapcs_pe_armasm.asm : @armasm ]
-+ [ make asm/jump_arm_aapcs_pe_armasm.o : asm/jump_arm_aapcs_pe_armasm.asm : @armasm ]
-+ untested.cpp
-+ : aapcs
-+ 32
-+ arm
-+ pe
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_arm_aapcs_pe_armasm.asm
-+ asm/jump_arm_aapcs_pe_armasm.asm
-+ untested.cpp
-+ : aapcs
-+ 32
-+ arm
-+ pe
-+ msvc
-+ ;
-+
-+# MIPS
-+# MIPS/O32/ELF
-+alias asm_context_sources
-+ : [ make asm/make_mips32_o32_elf_gas.o : asm/make_mips32_o32_elf_gas.S : @gas32 ]
-+ [ make asm/jump_mips32_o32_elf_gas.o : asm/jump_mips32_o32_elf_gas.S : @gas32 ]
-+ : o32
-+ 32
-+ mips1
-+ elf
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_mips32_o32_elf_gas.S
-+ asm/jump_mips32_o32_elf_gas.S
-+ : o32
-+ 32
-+ mips1
-+ elf
-+ clang
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_mips32_o32_elf_gas.S
-+ asm/jump_mips32_o32_elf_gas.S
-+ : o32
-+ 32
-+ mips1
-+ elf
-+ gcc
-+ ;
-+
-+# POWERPC_32
-+# POWERPC_32/SYSV/ELF
-+alias asm_context_sources
-+ : [ make asm/make_ppc32_sysv_elf_gas.o : asm/make_ppc32_sysv_elf_gas.S : @gas32 ]
-+ [ make asm/jump_ppc32_sysv_elf_gas.o : asm/jump_ppc32_sysv_elf_gas.S : @gas32 ]
-+ : sysv
-+ 32
-+ power
-+ elf
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_ppc32_sysv_elf_gas.S
-+ asm/jump_ppc32_sysv_elf_gas.S
-+ : sysv
-+ 32
-+ power
-+ elf
-+ clang
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_ppc32_sysv_elf_gas.S
-+ asm/jump_ppc32_sysv_elf_gas.S
-+ : sysv
-+ 32
-+ power
-+ elf
-+ gcc
-+ ;
-+# POWERPC_32/SYSV/MACH-O
-+alias asm_context_sources
-+ : [ make asm/make_ppc32_sysv_macho_gas.o : asm/make_ppc32_sysv_macho_gas.S : @gas32 ]
-+ [ make asm/jump_ppc32_sysv_macho_gas.o : asm/jump_ppc32_sysv_macho_gas.S : @gas32 ]
-+ : sysv
-+ 32
-+ power
-+ mach-o
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_ppc32_sysv_macho_gas.S
-+ asm/jump_ppc32_sysv_macho_gas.S
-+ : sysv
-+ 32
-+ power
-+ mach-o
-+ clang
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_ppc32_sysv_macho_gas.S
-+ asm/jump_ppc32_sysv_macho_gas.S
-+ : sysv
-+ 32
-+ power
-+ mach-o
-+ darwin
-+ ;
-+#POWERPC_32/SYSV/XCOFF
-+alias asm_context_sources
-+ : [ make asm/make_ppc32_sysv_xcoff_gas.o : asm/make_ppc32_sysv_xcoff_gas.S : @gas ]
-+ [ make asm/jump_ppc32_sysv_xcoff_gas.o : asm/jump_ppc32_sysv_xcoff_gas.S : @gas ]
-+ : sysv
-+ 32
-+ power
-+ xcoff
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_ppc32_sysv_xcoff_gas.S
-+ asm/jump_ppc32_sysv_xcoff_gas.S
-+ : sysv
-+ 32
-+ power
-+ xcoff
-+ clang
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_ppc32_sysv_xcoff_gas.S
-+ asm/jump_ppc32_sysv_xcoff_gas.S
-+ : sysv
-+ 32
-+ power
-+ xcoff
-+ gcc
-+ ;
-+
-+# POWERPC_64
-+# POWERPC_64/SYSV/ELF
-+alias asm_context_sources
-+ : [ make asm/make_ppc64_sysv_elf_gas.o : asm/make_ppc64_sysv_elf_gas.S : @gas64 ]
-+ [ make asm/jump_ppc64_sysv_elf_gas.o : asm/jump_ppc64_sysv_elf_gas.S : @gas64 ]
-+ : sysv
-+ 64
-+ power
-+ elf
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_ppc64_sysv_elf_gas.S
-+ asm/jump_ppc64_sysv_elf_gas.S
-+ : sysv
-+ 64
-+ power
-+ elf
-+ clang
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_ppc64_sysv_elf_gas.S
-+ asm/jump_ppc64_sysv_elf_gas.S
-+ : sysv
-+ 64
-+ power
-+ elf
-+ gcc
-+ ;
-+# POWERPC_64/SYSV/MACH-O
-+alias asm_context_sources
-+ : [ make asm/make_ppc64_sysv_macho_gas.o : asm/make_ppc64_sysv_macho_gas.S : @gas ]
-+ [ make asm/jump_ppc64_sysv_macho_gas.o : asm/jump_ppc64_sysv_macho_gas.S : @gas ]
-+ untested.cpp
-+ : sysv
-+ 64
-+ power
-+ mach-o
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_ppc64_sysv_macho_gas.S
-+ asm/jump_ppc64_sysv_macho_gas.S
-+ untested.cpp
-+ : sysv
-+ 64
-+ power
-+ mach-o
-+ clang
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_ppc64_sysv_macho_gas.S
-+ asm/jump_ppc64_sysv_macho_gas.S
-+ untested.cpp
-+ : sysv
-+ 64
-+ power
-+ mach-o
-+ darwin
-+ ;
-+# POWERPC_64/SYSV/XCOFF
-+alias asm_context_sources
-+ : [ make asm/make_ppc64_sysv_xcoff_gas.o : asm/make_ppc64_sysv_xcoff_gas.S : @gas ]
-+ [ make asm/jump_ppc64_sysv_xcoff_gas.o : asm/jump_ppc64_sysv_xcoff_gas.S : @gas ]
-+ : sysv
-+ 64
-+ power
-+ xcoff
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_ppc64_sysv_xcoff_gas.S
-+ asm/jump_ppc64_sysv_xcoff_gas.S
-+ : sysv
-+ 64
-+ power
-+ xcoff
-+ clang
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_ppc64_sysv_xcoff_gas.S
-+ asm/jump_ppc64_sysv_xcoff_gas.S
-+ : sysv
-+ 64
-+ power
-+ xcoff
-+ gcc
-+ ;
-+
-+# POWERPC universal
-+# POWERPC_32_64/SYSV/MACH-O
-+alias asm_context_sources
-+ : asm/make_ppc32_ppc64_sysv_macho_gas.S
-+ asm/jump_ppc32_ppc64_sysv_macho_gas.S
-+ : sysv
-+ 32_64
-+ power
-+ mach-o
-+ ;
-+
-+# SPARC
-+# SPARC/SYSV/ELF
-+alias asm_context_sources
-+ : [ make asm/make_sparc_sysv_elf_gas.o : asm/make_sparc_sysv_elf_gas.S : @gas32 ]
-+ [ make asm/jump_sparc_sysv_elf_gas.o : asm/jump_sparc_sysv_elf_gas.S : @gas32 ]
-+ unsupported.cpp
-+ : sysv
-+ 32
-+ sparc
-+ elf
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_sparc_sysv_elf_gas.S
-+ asm/jump_sparc_sysv_elf_gas.S
-+ unsupported.cpp
-+ : sysv
-+ 32
-+ sparc
-+ elf
-+ clang
-+ ;
-+
-+alias asm_context_sources
-+ : asm/make_sparc_sysv_elf_gas.S
-+ asm/jump_sparc_sysv_elf_gas.S
-+ unsupported.cpp
-+ : sysv
-+ 32
-+ sparc
-+ elf
-+ gcc
-+ ;
-+
-+# SPARC_64
-+# SPARC_64/SYSV/ELF
-+alias asm_context_sources
-+ : [ make asm/make_sparc64_sysv_elf_gas.o : asm/make_sparc64_sysv_elf_gas.S : @gas64 ]
-+ [ make asm/jump_sparc64_sysv_elf_gas.o : asm/jump_sparc64_sysv_elf_gas.S : @gas64 ]
-+ unsupported.cpp
-+ :