[superglu] add new port (#46340)

This commit is contained in:
shixiong2333 2025-07-09 17:46:16 +08:00 committed by GitHub
parent c6f09fc73e
commit 51bf8db55f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 76 additions and 0 deletions

View File

@ -0,0 +1,11 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -124,6 +124,7 @@
endif()
set_target_properties(GLU PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${SUPERGLU_SO_VERSION})
+set_target_properties(GLU PROPERTIES OUTPUT_NAME "superglu")
target_compile_definitions(GLU PRIVATE HAVE_CONFIG_H LIBRARYBUILD GLU_INTERNAL GLU_DEBUG=$<CONFIG:Debug>)

View File

@ -0,0 +1,29 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO coin3d/superglu
REF "v${VERSION}"
SHA512 ff1edb95192b4593e99106bf5d7fe30aabd8e42b21a6a02b2dcb2431b1388d87e7c1186a2291047f8a10897e872329e8dd993e89414e4d88f2e9e95c6a74fd52
HEAD_REF master
PATCHES
change-output-name.patch
)
vcpkg_find_acquire_program(PERL)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DSUPERGLU_BUILD_SHARED_LIBS=OFF
"-DPERL_EXECUTABLE=${PERL}"
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/superglu-${VERSION})
vcpkg_fixup_pkgconfig()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

4
ports/superglu/usage Normal file
View File

@ -0,0 +1,4 @@
The package superglu provides CMake targets:
find_package(superglu CONFIG REQUIRED)
target_link_libraries(main PRIVATE superglu::GLU)

19
ports/superglu/vcpkg.json Normal file
View File

@ -0,0 +1,19 @@
{
"name": "superglu",
"version": "1.3.3",
"description": "SGI GLU with miscellaneous fixes",
"homepage": "https://github.com/coin3d/superglu",
"license": "SGI-B-1.1",
"supports": "windows & !uwp",
"dependencies": [
"opengl-registry",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -9272,6 +9272,10 @@
"baseline": "7.1.1",
"port-version": 0
},
"superglu": {
"baseline": "1.3.3",
"port-version": 0
},
"superlu": {
"baseline": "7.0.0",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "b0cf2170a9c932e1c20c93d2556ef1d25fb3d991",
"version": "1.3.3",
"port-version": 0
}
]
}