Skip to content

Commit

Permalink
Add gegl new port
Browse files Browse the repository at this point in the history
  • Loading branch information
talregev committed Feb 21, 2025
1 parent 99c9bc8 commit 5642692
Show file tree
Hide file tree
Showing 66 changed files with 381 additions and 188 deletions.
File renamed without changes.
20 changes: 20 additions & 0 deletions ports/gz-cmake/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
string(REGEX MATCH "^[1-9]+" VERSION_MAJOR ${VERSION})
string(REGEX MATCH "^gz-([a-z]+)" MATCHED_VALUE ${PORT})
set(PACKAGE_NAME ${CMAKE_MATCH_1})

ignition_modular_library(
NAME ${PACKAGE_NAME}
REF ${PORT}${VERSION_MAJOR}_${VERSION}
VERSION ${VERSION}
SHA512 30cf5aa69674bdc1a99762fc45d134b99da5e2faf846749392697ae41463a5304a43022bb0c2ca1b373af4171135d686fdd736573fe6e1cc26dc2cecc8333e69
PATCHES
dependencies.patch
)



file(COPY "${CURRENT_PORT_DIR}/vcpkg" DESTINATION "${CURRENT_PACKAGES_DIR}/share/cmake/${PORT}/${PACKAGE_NAME}${VERSION_MAJOR}")
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" @ONLY)

# preserve the original port behavior
file(COPY "${CURRENT_PACKAGES_DIR}/share/${PORT}/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}${VERSION_MAJOR}/")
File renamed without changes.
3 changes: 1 addition & 2 deletions ports/gz-cmake3/vcpkg.json → ports/gz-cmake/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "gz-cmake3",
"name": "gz-cmake",
"version": "3.4.1",
"port-version": 5,
"description": "CMake helper functions for building robotic applications",
"homepage": "https://ignitionrobotics.org/libs/cmake",
"license": null,
Expand Down
File renamed without changes.
File renamed without changes.
13 changes: 0 additions & 13 deletions ports/gz-cmake3/portfile.cmake

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
set(PACKAGE_NAME common)
string(REGEX MATCH "^[1-9]+" VERSION_MAJOR ${VERSION})
string(REGEX MATCH "^gz-([a-z]+)" MATCHED_VALUE ${PORT})
set(PACKAGE_NAME ${CMAKE_MATCH_1})

ignition_modular_library(
NAME ${PACKAGE_NAME}
REF ${PORT}_${VERSION}
REF ${PORT}${VERSION_MAJOR}_${VERSION}
VERSION ${VERSION}
SHA512 40db4747db743005d7c43ca25cfe93cf68ee19201abcb165e72de37708b92fd88553b11520c420db33b37f4cab7e01e4d79c91c5dc0485146b7156284b8baaee
OPTIONS
Expand All @@ -14,14 +16,17 @@ ignition_modular_library(
003-include-chrono.patch
)

vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/gz-common5-graphics/gz-common5-graphics-config.cmake" "find_package(GTS "
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}${VERSION_MAJOR}-graphics/${PORT}${VERSION_MAJOR}-graphics-config.cmake" "find_package(GTS "
"# Ensure that consumers get a pkg-config tool which is needed for GTS
set(PKG_CONFIG_EXECUTABLE \"\${CMAKE_CURRENT_LIST_DIR}/../../../${HOST_TRIPLET}/tools/pkgconf/pkgconf${VCPKG_HOST_EXECUTABLE_SUFFIX}\" CACHE STRING vcpkg)
find_package(GTS "
IGNORE_UNCHANGED)

foreach(component IN ITEMS av events geospatial graphics io profiler testing)
if(NOT EXISTS "${CURRENT_PACKAGES_DIR}/share/${PORT}-${component}/${PORT}-${component}-config.cmake")
if(NOT EXISTS "${CURRENT_PACKAGES_DIR}/share/${PORT}${VERSION_MAJOR}-${component}/${PORT}${VERSION_MAJOR}-${component}-config.cmake")
message(FATAL_ERROR "Failed to install component ${component}. Check configuration logs for missing dependencies.")
endif()
endforeach()

# preserve the original port behavior
file(COPY "${CURRENT_PACKAGES_DIR}/share/${PORT}/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}${VERSION_MAJOR}/")
7 changes: 3 additions & 4 deletions ports/gz-common5/vcpkg.json → ports/gz-common/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "gz-common5",
"name": "gz-common",
"version": "5.4.1",
"port-version": 3,
"description": "Common libraries for robotics applications",
"homepage": "https://ignitionrobotics.org/libs/common",
"license": "Apache-2.0",
Expand All @@ -15,8 +14,8 @@
"freeimage",
"gdal",
"gts",
"gz-cmake3",
"gz-math7",
"gz-cmake",
"gz-math",
{
"name": "ignition-modularscripts",
"host": true
Expand Down
16 changes: 16 additions & 0 deletions ports/gz-fuel-tools/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
string(REGEX MATCH "^[1-9]+" VERSION_MAJOR ${VERSION})
string(REGEX MATCH "^gz-([a-z]+)" MATCHED_VALUE ${PORT})
set(PACKAGE_NAME ${CMAKE_MATCH_1})

ignition_modular_library(
NAME ${PACKAGE_NAME}
REF ${PORT}${VERSION_MAJOR}_${VERSION}
VERSION ${VERSION}
SHA512 6a31719441c7ea835007d82b6aea99b10fa124ebad71683b8c1c58c41b435d4801e016464dc30d760cc9464e642dab4ff910375f5244ebf7c565845174e65cbf
OPTIONS
PATCHES
remove_docs.patch
)

# preserve the original port behavior
file(COPY "${CURRENT_PACKAGES_DIR}/share/${PORT}/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}${VERSION_MAJOR}/")
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "gz-fuel-tools8",
"name": "gz-fuel-tools",
"version": "8.1.0",
"description": "Tools for using fuel API to download robot models",
"homepage": "https://gazebosim.org/libs/fuel_tools",
"license": null,
"dependencies": [
"curl",
"gz-cmake3",
"gz-common5",
"gz-msgs9",
"gz-cmake",
"gz-common",
"gz-msgs",
{
"name": "ignition-modularscripts",
"host": true
Expand Down
11 changes: 0 additions & 11 deletions ports/gz-fuel-tools8/portfile.cmake

This file was deleted.

File renamed without changes.
13 changes: 9 additions & 4 deletions ports/gz-gui7/portfile.cmake → ports/gz-gui/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
set(PACKAGE_NAME gui)
string(REGEX MATCH "^[1-9]+" VERSION_MAJOR ${VERSION})
string(REGEX MATCH "^gz-([a-z]+)" MATCHED_VALUE ${PORT})
set(PACKAGE_NAME ${CMAKE_MATCH_1})

ignition_modular_library(
NAME ${PACKAGE_NAME}
REF ${PORT}_${VERSION}
REF ${PORT}${VERSION_MAJOR}_${VERSION}
VERSION ${VERSION}
SHA512 29f37a31bbf90dd35f37e80053c1aff9fb404b7a09c8c10e640da505cc6261387e6ce77e3bf379a911e6131c684f866cf1ef8d83777112b3c7f148b1f95cc72f
OPTIONS
Expand All @@ -11,13 +13,13 @@ ignition_modular_library(
)

if(VCPKG_TARGET_IS_WINDOWS)
file(GLOB plugins "${CURRENT_PACKAGES_DIR}/lib/gz-gui-7/plugins/*.dll")
file(GLOB plugins "${CURRENT_PACKAGES_DIR}/lib/${PORT}-${VERSION_MAJOR}/plugins/*.dll")
if (NOT plugins STREQUAL "")
file(COPY ${plugins} DESTINATION "${CURRENT_PACKAGES_DIR}/engine-plugins/")
file(REMOVE ${plugins})
endif()

file(GLOB plugins_debug "${CURRENT_PACKAGES_DIR}/debug/lib/gz-gui-7/plugins/*.dll")
file(GLOB plugins_debug "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}-${VERSION_MAJOR}/plugins/*.dll")
if (NOT plugins_debug STREQUAL "")
file(COPY ${plugins_debug} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/engine-plugins/")
file(REMOVE ${plugins_debug})
Expand All @@ -26,3 +28,6 @@ if(VCPKG_TARGET_IS_WINDOWS)
# Lacking pc files for Qt
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
endif()

# preserve the original port behavior
file(COPY "${CURRENT_PACKAGES_DIR}/share/${PORT}/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}${VERSION_MAJOR}/")
20 changes: 10 additions & 10 deletions ports/gz-gui7/vcpkg.json → ports/gz-gui/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "gz-gui7",
"name": "gz-gui",
"version": "7.2.1",
"description": "Gazebo GUI builds on top of Qt to provide widgets which are useful when developing robotics applications, such as a 3D view, plots, dashboard, etc, and can be used together in a convenient unified interface.",
"homepage": "https://gazebosim.org/libs/gui",
"license": "Apache-2.0",
"dependencies": [
"gz-cmake3",
"gz-common5",
"gz-math7",
"gz-msgs9",
"gz-plugin2",
"gz-rendering7",
"gz-transport12",
"gz-utils2",
"gz-cmake",
"gz-common",
"gz-math",
"gz-msgs",
"gz-plugin",
"gz-rendering",
"gz-transport",
"gz-utils",
{
"name": "ignition-modularscripts",
"host": true
Expand All @@ -26,7 +26,7 @@
"name": "qt5-quickcontrols2",
"default-features": false
},
"sdformat13",
"sdformat",
"tinyxml2"
]
}
17 changes: 17 additions & 0 deletions ports/gz-math/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
string(REGEX MATCH "^[1-9]+" VERSION_MAJOR ${VERSION})
string(REGEX MATCH "^gz-([a-z]+)" MATCHED_VALUE ${PORT})
set(PACKAGE_NAME ${CMAKE_MATCH_1})

ignition_modular_library(
NAME ${PACKAGE_NAME}
REF ${PORT}${VERSION_MAJOR}_${VERSION}
VERSION ${VERSION}
SHA512 6d6e7c298f927110060882457f4ea379292f013b577f83a3a6f1fd68fc9cd7ea0bbef82cc0b9279373ab7af6e66f6ea2d8995669fa7d6d1fff13f8b8c857a6ed
OPTIONS
-DSKIP_SWIG=ON
-DSKIP_PYBIND11=ON
-DBUILD_DOCS=OFF
)

# preserve the original port behavior
file(COPY "${CURRENT_PACKAGES_DIR}/share/${PORT}/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}${VERSION_MAJOR}/")
6 changes: 3 additions & 3 deletions ports/gz-math7/vcpkg.json → ports/gz-math/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "gz-math7",
"name": "gz-math",
"version": "7.3.0",
"description": "Math API for robotic applications",
"homepage": "https://ignitionrobotics.org/libs/math",
"license": null,
"dependencies": [
"eigen3",
"gz-cmake3",
"gz-utils2",
"gz-cmake",
"gz-utils",
{
"name": "ignition-modularscripts",
"host": true
Expand Down
12 changes: 0 additions & 12 deletions ports/gz-math7/portfile.cmake

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
set(PACKAGE_NAME msgs)
string(REGEX MATCH "^[1-9]+" VERSION_MAJOR ${VERSION})
string(REGEX MATCH "^gz-([a-z]+)" MATCHED_VALUE ${PORT})
set(PACKAGE_NAME ${CMAKE_MATCH_1})

vcpkg_find_acquire_program(PYTHON3)
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
vcpkg_add_to_path("${PYTHON3_DIR}")

ignition_modular_library(
NAME ${PACKAGE_NAME}
REF ${PORT}_${VERSION}
REF ${PORT}${VERSION_MAJOR}_${VERSION}
VERSION ${VERSION}
SHA512 669e60fc35868e4d86695104a58aecaef9ad08861cba97ff91c7306caf66ec237da46c0a13f5f59907371fc7a4dd56d5506fabe4ba97c393889fc5a9c2a101ee
OPTIONS
PATCHES
remove_ruby.patch
)

# preserve the original port behavior
file(COPY "${CURRENT_PACKAGES_DIR}/share/${PORT}/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}${VERSION_MAJOR}/")
File renamed without changes.
6 changes: 3 additions & 3 deletions ports/gz-msgs9/vcpkg.json → ports/gz-msgs/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "gz-msgs9",
"name": "gz-msgs",
"version": "9.5.0",
"description": "Middleware protobuf messages for robotics",
"license": "Apache-2.0",
"supports": "!(android | arm | uwp)",
"dependencies": [
"gz-cmake3",
"gz-math7",
"gz-cmake",
"gz-math",
{
"name": "ignition-modularscripts",
"host": true
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
set(PACKAGE_NAME physics)
string(REGEX MATCH "^[1-9]+" VERSION_MAJOR ${VERSION})
string(REGEX MATCH "^gz-([a-z]+)" MATCHED_VALUE ${PORT})
set(PACKAGE_NAME ${CMAKE_MATCH_1})

ignition_modular_library(
NAME ${PACKAGE_NAME}
REF ${PORT}_${VERSION}
REF ${PORT}${VERSION_MAJOR}_${VERSION}
VERSION ${VERSION}
SHA512 c29594663509234e25c7d0a33848c0fe222c2b9471513978c18ea6873a17c66c43b4037c74e8849995fa6449c2dddc0f2ee669605893daf65119c277a17f39e1
OPTIONS
Expand All @@ -11,15 +13,18 @@ ignition_modular_library(
)

if(VCPKG_TARGET_IS_WINDOWS)
file(GLOB plugins "${CURRENT_PACKAGES_DIR}/lib/gz-physics-6/engine-plugins/*.dll")
file(GLOB plugins "${CURRENT_PACKAGES_DIR}/lib/${PORT}-${VERSION_MAJOR}/engine-plugins/*.dll")
if (NOT plugins STREQUAL "")
file(COPY ${plugins} DESTINATION "${CURRENT_PACKAGES_DIR}/engine-plugins/")
file(REMOVE ${plugins})
endif()

file(GLOB plugins_debug "${CURRENT_PACKAGES_DIR}/debug/lib/gz-physics-6/engine-plugins/*.dll")
file(GLOB plugins_debug "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}-${VERSION_MAJOR}/engine-plugins/*.dll")
if (NOT plugins_debug STREQUAL "")
file(COPY ${plugins_debug} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/engine-plugins/")
file(REMOVE ${plugins_debug})
endif()
endif()

# preserve the original port behavior
file(COPY "${CURRENT_PACKAGES_DIR}/share/${PORT}/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}${VERSION_MAJOR}/")
15 changes: 7 additions & 8 deletions ports/gz-physics6/vcpkg.json → ports/gz-physics/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
{
"name": "gz-physics6",
"name": "gz-physics",
"version": "6.5.1",
"port-version": 1,
"description": "component of Gazebo, provides an abstract physics interface designed to support simulation and rapid development of robot applications.",
"homepage": "https://gazebosim.org/libs/physics",
"license": "Apache-2.0",
"dependencies": [
"bullet3",
"dartsim",
"eigen3",
"gz-cmake3",
"gz-common5",
"gz-math7",
"gz-plugin2",
"gz-utils2",
"gz-cmake",
"gz-common",
"gz-math",
"gz-plugin",
"gz-utils",
{
"name": "ignition-modularscripts",
"host": true
},
"sdformat13"
"sdformat"
]
}
15 changes: 15 additions & 0 deletions ports/gz-plugin/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
string(REGEX MATCH "^[1-9]+" VERSION_MAJOR ${VERSION})
string(REGEX MATCH "^gz-([a-z]+)" MATCHED_VALUE ${PORT})
set(PACKAGE_NAME ${CMAKE_MATCH_1})

ignition_modular_library(
NAME ${PACKAGE_NAME}
REF ${PORT}${VERSION_MAJOR}_${VERSION}
VERSION ${VERSION}
SHA512 4c497291f8e33aae3a5752607a7fd7b48912e209f0f424ea7b1e6d35f27d1e920d1dd97ee64b7b3846d7d433618742be5d19352cbce8f6f63eccc83a086520ea
OPTIONS
PATCHES
)

# preserve the original port behavior
file(COPY "${CURRENT_PACKAGES_DIR}/share/${PORT}/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}${VERSION_MAJOR}/")
Loading

0 comments on commit 5642692

Please sign in to comment.