diff options
| author | Long Nguyen <nguyen.long.908132@gmail.com> | 2021-05-29 00:09:56 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-28 10:09:56 -0700 |
| commit | a29126f785b1ace2b3ef9f600d4f3c8aed63cea2 (patch) | |
| tree | b2ff3afa84314817762a99650d6bcd90aca04077 /ports/tre | |
| parent | 0de461216d66a4d5ca1870254e27258a66f6e361 (diff) | |
| download | vcpkg-a29126f785b1ace2b3ef9f600d4f3c8aed63cea2.tar.gz vcpkg-a29126f785b1ace2b3ef9f600d4f3c8aed63cea2.zip | |
[tre, libmagic] Windows + mingw support (#17769)
* [tre] mingw support
* [libmagic] Windows support
* [libmagic] Apply @Neumann-A suggestions
* [libmagic] Add host dependency
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
* [libmagic] Copy the magic file to the corresponding tools dir
* [ci baseline] libmagic now passes
* Update ports/libmagic/portfile.cmake
* [libmagic] Import patch from MSYS2
* [vcpkg baseline] Update libmagic, tre
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
Diffstat (limited to 'ports/tre')
| -rw-r--r-- | ports/tre/CONTROL | 3 | ||||
| -rw-r--r-- | ports/tre/portfile.cmake | 4 |
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( |
