diff options
Diffstat (limited to 'vcpkg/ports/superglu')
| -rw-r--r-- | vcpkg/ports/superglu/change-output-name.patch | 11 | ||||
| -rw-r--r-- | vcpkg/ports/superglu/portfile.cmake | 29 | ||||
| -rw-r--r-- | vcpkg/ports/superglu/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/superglu/vcpkg.json | 19 |
4 files changed, 63 insertions, 0 deletions
diff --git a/vcpkg/ports/superglu/change-output-name.patch b/vcpkg/ports/superglu/change-output-name.patch new file mode 100644 index 0000000..49993c2 --- /dev/null +++ b/vcpkg/ports/superglu/change-output-name.patch @@ -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>)
+
diff --git a/vcpkg/ports/superglu/portfile.cmake b/vcpkg/ports/superglu/portfile.cmake new file mode 100644 index 0000000..f3378a4 --- /dev/null +++ b/vcpkg/ports/superglu/portfile.cmake @@ -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}")
\ No newline at end of file diff --git a/vcpkg/ports/superglu/usage b/vcpkg/ports/superglu/usage new file mode 100644 index 0000000..09e57ee --- /dev/null +++ b/vcpkg/ports/superglu/usage @@ -0,0 +1,4 @@ +The package superglu provides CMake targets: + + find_package(superglu CONFIG REQUIRED) + target_link_libraries(main PRIVATE superglu::GLU) diff --git a/vcpkg/ports/superglu/vcpkg.json b/vcpkg/ports/superglu/vcpkg.json new file mode 100644 index 0000000..a469ff5 --- /dev/null +++ b/vcpkg/ports/superglu/vcpkg.json @@ -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 + } + ] +} |