aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangli28 <47812810+wangli28@users.noreply.github.com>2019-06-18 01:30:25 +0800
committerPhil Christensen <philc@microsoft.com>2019-06-17 10:30:25 -0700
commit1dbb58814f69f99abe535214b64a088db18097cc (patch)
tree45df26e831c1a5a5fcea235c6e1952d5fb00d199
parent1e297085c76fe81afbbb38f35ae0a851e9058e6b (diff)
downloadvcpkg-1dbb58814f69f99abe535214b64a088db18097cc.tar.gz
vcpkg-1dbb58814f69f99abe535214b64a088db18097cc.zip
[wt] Fix XML file installation path (#6925)
-rw-r--r--ports/wt/0005-XML_file_path.patch17
-rw-r--r--ports/wt/CONTROL2
-rw-r--r--ports/wt/portfile.cmake2
3 files changed, 20 insertions, 1 deletions
diff --git a/ports/wt/0005-XML_file_path.patch b/ports/wt/0005-XML_file_path.patch
new file mode 100644
index 000000000..b2be62c9d
--- /dev/null
+++ b/ports/wt/0005-XML_file_path.patch
@@ -0,0 +1,17 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ca19b30..4765632 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -197,7 +197,11 @@ SET(CMAKE_INSTALL_DIR "${LIB_INSTALL_DIR}/cmake" CACHE STRING
+
+ IF(WIN32)
+
+- SET(RUNDIR "c:/witty") # Does not apply to win32
++ if (NOT INSTALL_CONFIG_FILE_PATH)
++ SET(RUNDIR "c:/witty") # Does not apply to win32
++ else()
++ SET(RUNDIR ${INSTALL_CONFIG_FILE_PATH}) # Does not apply to win32
++ endif()
+
+ IF(NOT DEFINED CONFIGDIR)
+ SET(CONFIGDIR ${RUNDIR} CACHE STRING "Path for the configuration files")
diff --git a/ports/wt/CONTROL b/ports/wt/CONTROL
index 3379d8ff0..b712ca738 100644
--- a/ports/wt/CONTROL
+++ b/ports/wt/CONTROL
@@ -1,5 +1,5 @@
Source: wt
-Version: 4.0.5
+Version: 4.0.5-1
Homepage: https://github.com/emweb/wt
Description: Wt is a C++ library for developing web applications
Build-Depends: openssl, sqlite3, libpq, pango, glew, boost-date-time, boost-regex, boost-program-options, boost-signals, boost-system, boost-filesystem, boost-thread, boost-random, boost-multi-index, boost-signals2, boost-asio, boost-ublas, boost-conversion, boost-array, boost-smart-ptr, boost-tuple, boost-algorithm, boost-logic, boost-interprocess
diff --git a/ports/wt/portfile.cmake b/ports/wt/portfile.cmake
index c9fb520f6..8fb8af205 100644
--- a/ports/wt/portfile.cmake
+++ b/ports/wt/portfile.cmake
@@ -10,6 +10,7 @@ vcpkg_from_github(
0002-link-glew.patch
0003-disable-boost-autolink.patch
0004-link-ssl.patch
+ 0005-XML_file_path.patch
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SHARED_LIBS)
@@ -18,6 +19,7 @@ vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
+ -DINSTALL_CONFIG_FILE_PATH="${DOWNLOADS}/wt"
-DSHARED_LIBS=${SHARED_LIBS}
-DBOOST_DYNAMIC=ON
-DDISABLE_BOOST_AUTOLINK=ON