Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions ports/ptex/CONTROL

This file was deleted.

20 changes: 10 additions & 10 deletions ports/ptex/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
19 changes: 19 additions & 0 deletions ports/ptex/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
20 changes: 11 additions & 9 deletions ports/rbdl-orb/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" RBDL_STATIC)

if (EXISTS "${CURRENT_INSTALLED_DIR}/share/rbdl/copyright")
message(FATAL_ERROR "${PORT} conflict with rbdl, please remove rbdl before install ${PORT}.")
endif()

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" RBDL_STATIC)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ORB-HD/rbdl-orb
REF b22abab856a90dbc62e6b2e79f148bd383b5ce43
SHA512 744a60145243454a9d148971d998ae7a3cc5b9d66131b5d6f3c7be80d6c9ef8b8bf4390b9d1b90b14be6c619c2e1d14c7c6104b3ca6e606e22e3581b548e4f9d
HEAD_REF master
)
)

vcpkg_from_github(
OUT_SOURCE_PATH PARSER_SOURCE_PATH
Expand All @@ -17,10 +21,10 @@ vcpkg_from_github(
if(NOT EXISTS "${SOURCE_PATH}/addons/urdfreader/thirdparty/urdfparser/CMakeLists.txt")
file(REMOVE_RECURSE "${SOURCE_PATH}/addons/urdfreader/thirdparty/urdfparser")
file(RENAME "${PARSER_SOURCE_PATH}" "${SOURCE_PATH}/addons/urdfreader/thirdparty/urdfparser")
endif()
endif()

vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DRBDL_BUILD_STATIC=${RBDL_STATIC}
-DRBDL_BUILD_ADDON_LUAMODEL=ON
Expand All @@ -31,10 +35,8 @@ vcpkg_cmake_configure(

vcpkg_cmake_install()

# # Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

# # Remove duplicated include directory
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

vcpkg_copy_pdbs()

file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
5 changes: 1 addition & 4 deletions ports/rbdl-orb/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "rbdl-orb",
"version": "3.0.0",
"port-version": 1,
"description": "Rigid Body Dynamics Library - ORB",
"homepage": "https://github.com/orb-hd/rbdl-orb",
"dependencies": [
Expand All @@ -10,10 +11,6 @@
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
6 changes: 0 additions & 6 deletions ports/rbdl/CONTROL

This file was deleted.

21 changes: 9 additions & 12 deletions ports/rbdl/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
set(RBDL_STATIC ON)
else()
set(RBDL_STATIC OFF)
if (EXISTS "${CURRENT_INSTALLED_DIR}/share/rbdl-orb/copyright")
message(FATAL_ERROR "${PORT} conflict with rbdl-orb, please remove rbdl-orb before install ${PORT}.")
endif()

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" RBDL_STATIC)

vcpkg_from_github(ARCHIVE
OUT_SOURCE_PATH SOURCE_PATH
REPO rbdl/rbdl
Expand All @@ -14,19 +14,16 @@ vcpkg_from_github(ARCHIVE
)


vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA # Disable this option if project cannot be built with Ninja
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DRBDL_BUILD_STATIC=${RBDL_STATIC}
)

vcpkg_install_cmake()

# # Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
vcpkg_cmake_install()

# # Remove duplicated include directory
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

vcpkg_copy_pdbs()

file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
14 changes: 14 additions & 0 deletions ports/rbdl/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "rbdl",
"version": "2.6.0",
"port-version": 1,
"description": "Rigid Body Dynamics Library",
"homepage": "https://github.com/rbdl/rbdl",
"dependencies": [
"eigen3",
{
"name": "vcpkg-cmake",
"host": true
}
]
}
10 changes: 10 additions & 0 deletions scripts/ci.baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1325,6 +1325,16 @@ rapidstring:x86-windows=fail
raylib:arm64-windows=fail
raylib:arm-uwp=fail
raylib:x64-uwp=fail
# file conflicts with rbdl
rbdl-orb:x86-windows=skip
rbdl-orb:x64-windows=skip
rbdl-orb:x64-windows-static=skip
rbdl-orb:x64-windows-static-md=skip
rbdl-orb:x64-uwp=skip
rbdl-orb:arm-uwp=skip
rbdl-orb:arm64-windows=skip
rbdl-orb:x64-linux=skip
rbdl-orb:x64-osx=skip
readline:arm-uwp=fail
readline:x64-uwp=fail
readline-win32:arm-uwp=fail
Expand Down
6 changes: 3 additions & 3 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5098,7 +5098,7 @@
},
"ptex": {
"baseline": "2.3.2",
"port-version": 2
"port-version": 3
},
"pthread": {
"baseline": "3.0.0",
Expand Down Expand Up @@ -5526,11 +5526,11 @@
},
"rbdl": {
"baseline": "2.6.0",
"port-version": 0
"port-version": 1
},
"rbdl-orb": {
"baseline": "3.0.0",
"port-version": 0
"port-version": 1
},
"re2": {
"baseline": "2020-10-01",
Expand Down
5 changes: 5 additions & 0 deletions versions/p-/ptex.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c524a2ab1940315d3481e9fbf745425caf5b7c15",
"version": "2.3.2",
"port-version": 3
},
{
"git-tree": "e4ee03f1ba1d9c807b8baee1bd3b1089e71476ca",
"version-string": "2.3.2",
Expand Down
5 changes: 5 additions & 0 deletions versions/r-/rbdl-orb.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "5850c6901f4123803184bfe9b6e587af9350331a",
"version": "3.0.0",
"port-version": 1
},
{
"git-tree": "d475aade9be86281a6db741ee68e30a23d0f16d3",
"version": "3.0.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/r-/rbdl.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "44606d1a4e33112ca45274e823041ad877e62623",
"version": "2.6.0",
"port-version": 1
},
{
"git-tree": "c2823f8341acd1e564485661989fb3780a6b4a2a",
"version-string": "2.6.0",
Expand Down