diff --git a/ports/libunibreak/libunibreak-config.cmake.in b/ports/libunibreak/libunibreak-config.cmake.in index 3c217318c0f..0a4746360e3 100644 --- a/ports/libunibreak/libunibreak-config.cmake.in +++ b/ports/libunibreak/libunibreak-config.cmake.in @@ -6,6 +6,14 @@ if(TARGET libunibreak) return() endif() +# Compute the installation prefix relative to this file. +get_filename_component(_INSTALL_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) +get_filename_component(_INSTALL_DIR "${_INSTALL_DIR}" PATH) +get_filename_component(_INSTALL_DIR "${_INSTALL_DIR}" PATH) +if(_INSTALL_DIR STREQUAL "/") + set(_INSTALL_DIR "") +endif() + add_library(unibreak INTERFACE IMPORTED GLOBAL) add_library(libunibreak::libunibreak ALIAS unibreak) diff --git a/ports/libunibreak/vcpkg.json b/ports/libunibreak/vcpkg.json index 7e2a8dd328f..3c4a6f438eb 100644 --- a/ports/libunibreak/vcpkg.json +++ b/ports/libunibreak/vcpkg.json @@ -1,6 +1,7 @@ { "name": "libunibreak", "version": "5.0", + "port-version": 1, "description": "an implementation of the line breaking and word breaking algorithms as described in [Unicode Standard Annex 14] 1 and [Unicode Standard Annex 29] 2. Check the project's [home page] 3 for up-to-date information.", "homepage": "https://github.com/adah1972/libunibreak", "license": "zlib-acknowledgement", diff --git a/versions/baseline.json b/versions/baseline.json index 27f14e50ba0..30bc6b0055a 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4114,7 +4114,7 @@ }, "libunibreak": { "baseline": "5.0", - "port-version": 0 + "port-version": 1 }, "libunifex": { "baseline": "2021-12-07", diff --git a/versions/l-/libunibreak.json b/versions/l-/libunibreak.json index 9250855dc31..364e54e6a65 100644 --- a/versions/l-/libunibreak.json +++ b/versions/l-/libunibreak.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "724f588851a5f81f6ddd8eb1fc01a45bedfa5517", + "version": "5.0", + "port-version": 1 + }, { "git-tree": "ab89a270477d6d97e3d70c4503ee573f1ca8e539", "version": "5.0",