diff options
| author | Phoebe <20694052+PhoebeHui@users.noreply.github.com> | 2021-08-10 00:07:37 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-09 09:07:37 -0700 |
| commit | e1e7daf3abb8b55b8034360263e1c0d29429fdff (patch) | |
| tree | cf8bab6b67de02587d9c612c3f739955f3dc2256 /ports/ptex | |
| parent | 7893cbb48a8e639e6a8d63819ca7610327907de8 (diff) | |
| download | vcpkg-e1e7daf3abb8b55b8034360263e1c0d29429fdff.tar.gz vcpkg-e1e7daf3abb8b55b8034360263e1c0d29429fdff.zip | |
[vcpkg baseline][rbdl-orb/rbdl/ptex] file conflicts, skip rbdl-orb in CI testing (#19453)
* [vcpkg baseline][rbdl-orb/rbdl] file conflicts, skip rbdl-orb in Ci testing
* [ptex] Add DISABLE_PARALLEL_CONFIGURE
* Update the baseline version
* Add missing quotes
* Update the baseline version
Diffstat (limited to 'ports/ptex')
| -rw-r--r-- | ports/ptex/CONTROL | 7 | ||||
| -rw-r--r-- | ports/ptex/portfile.cmake | 20 | ||||
| -rw-r--r-- | ports/ptex/vcpkg.json | 19 |
3 files changed, 29 insertions, 17 deletions
diff --git a/ports/ptex/CONTROL b/ports/ptex/CONTROL deleted file mode 100644 index c00a1a0b8..000000000 --- a/ports/ptex/CONTROL +++ /dev/null @@ -1,7 +0,0 @@ -Source: ptex -Version: 2.3.2 -Port-Version: 2 -Homepage: https://github.com/wdas/ptex -Description: Per-Face Texture Mapping for Production Rendering. -Build-Depends: zlib -Supports: !uwp
\ No newline at end of file diff --git a/ports/ptex/portfile.cmake b/ports/ptex/portfile.cmake index f065e4426..6fe24666b 100644 --- a/ports/ptex/portfile.cmake +++ b/ports/ptex/portfile.cmake @@ -21,29 +21,29 @@ else() set(BUILD_STATIC_LIB ON) endif() -vcpkg_configure_cmake( - SOURCE_PATH ${SOURCE_PATH} - PREFER_NINJA +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + DISABLE_PARALLEL_CONFIGURE OPTIONS -DPTEX_VER=v${PTEX_VER} -DPTEX_BUILD_SHARED_LIBS=${BUILD_SHARED_LIB} -DPTEX_BUILD_STATIC_LIBS=${BUILD_STATIC_LIB} ) -vcpkg_install_cmake() -vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/Ptex) +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/Ptex) vcpkg_copy_pdbs() foreach(HEADER PtexHalf.h Ptexture.h) - file(READ ${CURRENT_PACKAGES_DIR}/include/${HEADER} PTEX_HEADER) + file(READ "${CURRENT_PACKAGES_DIR}/include/${HEADER}" PTEX_HEADER) if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic) string(REPLACE "ifndef PTEX_STATIC" "if 1" PTEX_HEADER "${PTEX_HEADER}") else() string(REPLACE "ifndef PTEX_STATIC" "if 0" PTEX_HEADER "${PTEX_HEADER}") endif() - file(WRITE ${CURRENT_PACKAGES_DIR}/include/${HEADER} "${PTEX_HEADER}") + file(WRITE "${CURRENT_PACKAGES_DIR}/include/${HEADER}" "${PTEX_HEADER}") endforeach() -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share) -# Handle copyright -file(INSTALL ${SOURCE_PATH}/src/doc/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share") + +file(INSTALL "${SOURCE_PATH}/src/doc/License.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/ptex/vcpkg.json b/ports/ptex/vcpkg.json new file mode 100644 index 000000000..355a40596 --- /dev/null +++ b/ports/ptex/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "ptex", + "version": "2.3.2", + "port-version": 3, + "description": "Per-Face Texture Mapping for Production Rendering.", + "homepage": "https://github.com/wdas/ptex", + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "zlib" + ] +} |
