aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/poco/CONTROL2
-rw-r--r--ports/poco/fix-static-internal-pcre.patch27
-rw-r--r--ports/poco/portfile.cmake1
3 files changed, 29 insertions, 1 deletions
diff --git a/ports/poco/CONTROL b/ports/poco/CONTROL
index ea16a2644..e979e2247 100644
--- a/ports/poco/CONTROL
+++ b/ports/poco/CONTROL
@@ -1,5 +1,5 @@
Source: poco
-Version: 1.8.1
+Version: 1.8.1-1
Build-Depends: zlib, pcre, sqlite3, expat
Description: Modern, powerful open source C++ class libraries for building network and internet-based applications that run on desktop, server, mobile and embedded systems.
diff --git a/ports/poco/fix-static-internal-pcre.patch b/ports/poco/fix-static-internal-pcre.patch
new file mode 100644
index 000000000..970f9e246
--- /dev/null
+++ b/ports/poco/fix-static-internal-pcre.patch
@@ -0,0 +1,27 @@
+diff --git a/Foundation/CMakeLists.txt b/Foundation/CMakeLists.txt
+index d47ced2..ddead59 100644
+--- a/Foundation/CMakeLists.txt
++++ b/Foundation/CMakeLists.txt
+@@ -48,6 +48,22 @@ if (POCO_UNBUNDLED)
+
+ add_definitions(-DPOCO_UNBUNDLED)
+
++ add_definitions(
++ -D_pcre_utf8_table1=_poco_pcre_utf8_table1
++ -D_pcre_utf8_table1_size=_poco_pcre_utf8_table1_size
++ -D_pcre_utf8_table2=_poco_pcre_utf8_table2
++ -D_pcre_utf8_table3=_poco_pcre_utf8_table3
++ -D_pcre_utf8_table4=_poco_pcre_utf8_table4
++ -D_pcre_utt_names=_poco_pcre_utt_names
++ -D_pcre_utt=_poco_pcre_utt
++ -D_pcre_utt_size=_poco_pcre_utt_size
++ -D_pcre_OP_lengths=_poco_pcre_OP_lengths
++ -D_pcre_hspace_list=_poco_pcre_hspace_list
++ -D_pcre_vspace_list=_poco_pcre_vspace_list
++ -D_pcre_ucp_gentype=_poco_pcre_ucp_gentype
++ -D_pcre_ucp_gbtable=_poco_pcre_ucp_gbtable
++ )
++
+ else()
+ # pcre
+ POCO_SOURCES( SRCS pcre
diff --git a/ports/poco/portfile.cmake b/ports/poco/portfile.cmake
index 6d3db0fa4..399f1a064 100644
--- a/ports/poco/portfile.cmake
+++ b/ports/poco/portfile.cmake
@@ -14,6 +14,7 @@ vcpkg_apply_patches(
${CMAKE_CURRENT_LIST_DIR}/config_h.patch
${CMAKE_CURRENT_LIST_DIR}/find_pcre.patch
${CMAKE_CURRENT_LIST_DIR}/foundation-public-include-pcre.patch
+ ${CMAKE_CURRENT_LIST_DIR}/fix-static-internal-pcre.patch
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" POCO_STATIC)