aboutsummaryrefslogtreecommitdiff
path: root/ports/tre
diff options
context:
space:
mode:
Diffstat (limited to 'ports/tre')
-rw-r--r--ports/tre/CONTROL3
-rw-r--r--ports/tre/portfile.cmake4
2 files changed, 6 insertions, 1 deletions
diff --git a/ports/tre/CONTROL b/ports/tre/CONTROL
index 70a5ce003..bccd0d6e6 100644
--- a/ports/tre/CONTROL
+++ b/ports/tre/CONTROL
@@ -1,4 +1,5 @@
Source: tre
-Version: 0.8.0-1
+Version: 0.8.0
+Port-Version: 2
Homepage: https://github.com/laurikari/tre
Description: TRE is a lightweight, robust, and efficient POSIX compliant regexp matching library with some exciting features such as approximate (fuzzy) matching.
diff --git a/ports/tre/portfile.cmake b/ports/tre/portfile.cmake
index f468138de..cbc904e6e 100644
--- a/ports/tre/portfile.cmake
+++ b/ports/tre/portfile.cmake
@@ -10,6 +10,10 @@ file(READ ${SOURCE_PATH}/win32/config.h CONFIG_H)
string(REPLACE "#define snprintf sprintf_s" "" CONFIG_H ${CONFIG_H})
file(WRITE ${SOURCE_PATH}/win32/config.h "${CONFIG_H}")
+if(VCPKG_TARGET_IS_MINGW)
+ vcpkg_replace_string(${SOURCE_PATH}/win32/tre.def "tre.dll" "libtre.dll")
+endif()
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
vcpkg_configure_cmake(