diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-04-05 11:38:36 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-04-05 11:38:36 -0700 |
| commit | d4bdf8508fb203cd13f4cc62ec70e0bedee8473b (patch) | |
| tree | adcfcaff2bb99bf5301a11f63b85d0abf55b25ad | |
| parent | 11b4f5fdd62f0b09b69d08a4ef1888f526bbc5cd (diff) | |
| download | vcpkg-d4bdf8508fb203cd13f4cc62ec70e0bedee8473b.tar.gz vcpkg-d4bdf8508fb203cd13f4cc62ec70e0bedee8473b.zip | |
[freetype] In static builds, do not use absolute paths in cmake config files.
| -rw-r--r-- | ports/freetype/CONTROL | 2 | ||||
| -rw-r--r-- | ports/freetype/portfile.cmake | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ports/freetype/CONTROL b/ports/freetype/CONTROL index 866033e3c..3afd18c9d 100644 --- a/ports/freetype/CONTROL +++ b/ports/freetype/CONTROL @@ -1,4 +1,4 @@ Source: freetype -Version: 2.6.3-4 +Version: 2.6.3-5 Build-Depends: zlib, bzip2, libpng Description: A library to render fonts.
\ No newline at end of file diff --git a/ports/freetype/portfile.cmake b/ports/freetype/portfile.cmake index 7e8fb63de..b5c20a610 100644 --- a/ports/freetype/portfile.cmake +++ b/ports/freetype/portfile.cmake @@ -33,8 +33,13 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(READ ${CURRENT_PACKAGES_DIR}/debug/share/freetype/freetype-config-debug.cmake DEBUG_MODULE) string(REPLACE "\${_IMPORT_PREFIX}" "\${_IMPORT_PREFIX}/debug" DEBUG_MODULE "${DEBUG_MODULE}") +string(REPLACE "${CURRENT_INSTALLED_DIR}" "\${_IMPORT_PREFIX}" DEBUG_MODULE "${DEBUG_MODULE}") file(WRITE ${CURRENT_PACKAGES_DIR}/share/freetype/freetype-config-debug.cmake "${DEBUG_MODULE}") +file(READ ${CURRENT_PACKAGES_DIR}/share/freetype/freetype-config-release.cmake RELEASE_MODULE) +string(REPLACE "${CURRENT_INSTALLED_DIR}" "\${_IMPORT_PREFIX}" RELEASE_MODULE "${RELEASE_MODULE}") +file(WRITE ${CURRENT_PACKAGES_DIR}/share/freetype/freetype-config-release.cmake "${RELEASE_MODULE}") + # Fix the include dir [freetype2 -> freetype] file(READ ${CURRENT_PACKAGES_DIR}/debug/share/freetype/freetype-config.cmake CONFIG_MODULE) string(REPLACE "\${_IMPORT_PREFIX}/include/freetype2" "\${_IMPORT_PREFIX}/include/freetype" CONFIG_MODULE "${CONFIG_MODULE}") |
