| @@ -1,62 +1,62 @@ | | | @@ -1,62 +1,62 @@ |
1 | $NetBSD: patch-cmake_boost.cmake,v 1.4 2017/04/30 05:10:32 adam Exp $ | | 1 | $NetBSD: patch-cmake_boost.cmake,v 1.5 2017/09/01 10:02:01 abs Exp $ |
2 | | | 2 | |
3 | Fix to use a newer version of Boost. | | 3 | Fix to use a newer version of Boost. |
4 | | | 4 | |
5 | --- cmake/boost.cmake.orig 2016-09-13 14:56:09.000000000 +0000 | | 5 | --- cmake/boost.cmake.orig 2017-06-22 14:13:19.000000000 +0000 |
6 | +++ cmake/boost.cmake | | 6 | +++ cmake/boost.cmake |
7 | @@ -13,7 +13,7 @@ | | 7 | @@ -13,7 +13,7 @@ |
8 | # along with this program; if not, write to the Free Software | | 8 | # along with this program; if not, write to the Free Software |
9 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | | 9 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
10 | | | 10 | |
11 | -# We want boost 1.59.0 in order to build our boost/geometry code. | | 11 | -# We want boost 1.59.0 in order to build our boost/geometry code. |
12 | +# We want boost 1.64.0 in order to build our boost/geometry code. | | 12 | +# We want boost 1.65.0 in order to build our boost/geometry code. |
13 | # The boost tarball is fairly big, and takes several minutes | | 13 | # The boost tarball is fairly big, and takes several minutes |
14 | # to download. So we recommend downloading/unpacking it | | 14 | # to download. So we recommend downloading/unpacking it |
15 | # only once, in a place visible from any bzr sandbox. | | 15 | # only once, in a place visible from any bzr sandbox. |
16 | @@ -31,10 +31,10 @@ | | 16 | @@ -31,10 +31,10 @@ |
17 | # we assume that the correct version (see below) | | 17 | # we assume that the correct version (see below) |
18 | # is installed on the compile host in the standard location. | | 18 | # is installed on the compile host in the standard location. |
19 | | | 19 | |
20 | -SET(BOOST_PACKAGE_NAME "boost_1_59_0") | | 20 | -SET(BOOST_PACKAGE_NAME "boost_1_59_0") |
21 | +SET(BOOST_PACKAGE_NAME "boost_1_64_0") | | 21 | +SET(BOOST_PACKAGE_NAME "boost_1_65_0") |
22 | SET(BOOST_TARBALL "${BOOST_PACKAGE_NAME}.tar.gz") | | 22 | SET(BOOST_TARBALL "${BOOST_PACKAGE_NAME}.tar.gz") |
23 | SET(BOOST_DOWNLOAD_URL | | 23 | SET(BOOST_DOWNLOAD_URL |
24 | - "http://sourceforge.net/projects/boost/files/boost/1.59.0/${BOOST_TARBALL}" | | 24 | - "http://sourceforge.net/projects/boost/files/boost/1.59.0/${BOOST_TARBALL}" |
25 | + "http://sourceforge.net/projects/boost/files/boost/1.64.0/${BOOST_TARBALL}" | | 25 | + "http://sourceforge.net/projects/boost/files/boost/1.65.0/${BOOST_TARBALL}" |
26 | ) | | 26 | ) |
27 | | | 27 | |
28 | SET(OLD_PACKAGE_NAMES "boost_1_55_0 boost_1_56_0 boost_1_57_0 boost_1_58_0") | | 28 | SET(OLD_PACKAGE_NAMES "boost_1_55_0 boost_1_56_0 boost_1_57_0 boost_1_58_0") |
29 | @@ -244,7 +244,7 @@ ENDIF() | | 29 | @@ -244,7 +244,7 @@ ENDIF() |
30 | # // BOOST_VERSION % 100 is the patch level | | 30 | # // BOOST_VERSION % 100 is the patch level |
31 | # // BOOST_VERSION / 100 % 1000 is the minor version | | 31 | # // BOOST_VERSION / 100 % 1000 is the minor version |
32 | # // BOOST_VERSION / 100000 is the major version | | 32 | # // BOOST_VERSION / 100000 is the major version |
33 | -# #define BOOST_VERSION 105900 | | 33 | -# #define BOOST_VERSION 105900 |
34 | +# #define BOOST_VERSION 106400 | | 34 | +# #define BOOST_VERSION 106500 |
35 | FILE(STRINGS "${BOOST_INCLUDE_DIR}/boost/version.hpp" | | 35 | FILE(STRINGS "${BOOST_INCLUDE_DIR}/boost/version.hpp" |
36 | BOOST_VERSION_NUMBER | | 36 | BOOST_VERSION_NUMBER |
37 | REGEX "^#define[\t ]+BOOST_VERSION[\t ][0-9]+.*" | | 37 | REGEX "^#define[\t ]+BOOST_VERSION[\t ][0-9]+.*" |
38 | @@ -262,9 +262,9 @@ IF(NOT BOOST_MAJOR_VERSION EQUAL 10) | | 38 | @@ -262,9 +262,9 @@ IF(NOT BOOST_MAJOR_VERSION EQUAL 10) |
39 | COULD_NOT_FIND_BOOST() | | 39 | COULD_NOT_FIND_BOOST() |
40 | ENDIF() | | 40 | ENDIF() |
41 | | | 41 | |
42 | -IF(NOT BOOST_MINOR_VERSION EQUAL 59) | | 42 | -IF(NOT BOOST_MINOR_VERSION EQUAL 59) |
43 | +IF(NOT BOOST_MINOR_VERSION EQUAL 64) | | 43 | +IF(NOT BOOST_MINOR_VERSION EQUAL 65) |
44 | MESSAGE(WARNING "Boost minor version found is ${BOOST_MINOR_VERSION} " | | 44 | MESSAGE(WARNING "Boost minor version found is ${BOOST_MINOR_VERSION} " |
45 | - "we need 59" | | 45 | - "we need 59" |
46 | + "we need 64" | | 46 | + "we need 65" |
47 | ) | | 47 | ) |
48 | COULD_NOT_FIND_BOOST() | | 48 | COULD_NOT_FIND_BOOST() |
49 | ENDIF() | | 49 | ENDIF() |
50 | @@ -272,10 +272,10 @@ ENDIF() | | 50 | @@ -272,10 +272,10 @@ ENDIF() |
51 | MESSAGE(STATUS "BOOST_INCLUDE_DIR ${BOOST_INCLUDE_DIR}") | | 51 | MESSAGE(STATUS "BOOST_INCLUDE_DIR ${BOOST_INCLUDE_DIR}") |
52 | | | 52 | |
53 | # We have a limited set of patches/bugfixes here: | | 53 | # We have a limited set of patches/bugfixes here: |
54 | -SET(BOOST_PATCHES_DIR "${CMAKE_SOURCE_DIR}/include/boost_1_59_0/patches") | | 54 | -SET(BOOST_PATCHES_DIR "${CMAKE_SOURCE_DIR}/include/boost_1_59_0/patches") |
55 | +SET(BOOST_PATCHES_DIR "${CMAKE_SOURCE_DIR}/include/boost_1_64_0/patches") | | 55 | +SET(BOOST_PATCHES_DIR "${CMAKE_SOURCE_DIR}/include/boost_1_65_0/patches") |
56 | | | 56 | |
57 | # We have a limited set of source files here: | | 57 | # We have a limited set of source files here: |
58 | -SET(BOOST_SOURCES_DIR "${CMAKE_SOURCE_DIR}/include/boost_1_59_0") | | 58 | -SET(BOOST_SOURCES_DIR "${CMAKE_SOURCE_DIR}/include/boost_1_59_0") |
59 | +SET(BOOST_SOURCES_DIR "${CMAKE_SOURCE_DIR}/include/boost_1_64_0") | | 59 | +SET(BOOST_SOURCES_DIR "${CMAKE_SOURCE_DIR}/include/boost_1_65_0") |
60 | | | 60 | |
61 | # Bug in sqrt(NaN) on 32bit platforms | | 61 | # Bug in sqrt(NaN) on 32bit platforms |
62 | IF(SIZEOF_VOIDP EQUAL 4) | | 62 | IF(SIZEOF_VOIDP EQUAL 4) |