mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:19:01 +08:00
[freeglut,gl2ps,glui,mdl-sdk] Platform support corrections (#35391)
* [freeglut] Fix android * [glui] android unsupported, needs GL/gl.h * [gl2ps] android unsupported, needs GL/gl.h * [libraw] Skip arm-neon-android CI, needs ftello * [mdl-sdk] Update 'supports' * Update ci.baseline.txt * [gl2ps] freeglut not needed * [mdl-sdk] Fix static-md
This commit is contained in:
parent
5b60a7a105
commit
01ea5f6f16
@ -1,5 +1,3 @@
|
||||
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO FreeGLUTProject/freeglut
|
||||
@ -13,8 +11,10 @@ vcpkg_from_github(
|
||||
windows-output-name.patch
|
||||
)
|
||||
|
||||
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
||||
message("Freeglut currently requires the following libraries from the system package manager:\n opengl\n glu\n libx11\n xrandr\n xi\n xxf86vm\n\nThese can be installed on Ubuntu systems via apt-get install libxi-dev libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev libxrandr-dev libxxf86vm-dev\nOn macOS Xquartz is required.")
|
||||
if(VCPKG_TARGET_IS_OSX)
|
||||
message("Freeglut currently requires Xquartz for macOS.")
|
||||
elseif(NOT VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_ANDROID)
|
||||
message("Freeglut currently requires the following libraries from the system package manager:\n opengl\n glu\n libx11\n xrandr\n xi\n xxf86vm\n\nThese can be installed on Ubuntu systems via apt-get install libxi-dev libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev libxrandr-dev libxxf86vm-dev")
|
||||
endif()
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" FREEGLUT_STATIC)
|
||||
@ -33,12 +33,20 @@ vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/FreeGLUT)
|
||||
vcpkg_fixup_pkgconfig()
|
||||
file(COPY_FILE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/glut.pc" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/freeglut.pc")
|
||||
if(NOT VCPKG_BUILD_TYPE)
|
||||
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/glut.pc" " -lfreeglut" " -lfreeglutd")
|
||||
|
||||
file(GLOB pc_files "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/*.pc" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/*.pc")
|
||||
foreach(file IN LISTS pc_files)
|
||||
vcpkg_replace_string("${file}" ";-D" " -D")
|
||||
endforeach()
|
||||
|
||||
if(NOT VCPKG_TARGET_IS_ANDROID)
|
||||
file(COPY_FILE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/glut.pc" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/freeglut.pc")
|
||||
if(NOT VCPKG_BUILD_TYPE)
|
||||
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/glut.pc" " -lfreeglut" " -lfreeglutd")
|
||||
endif()
|
||||
file(COPY_FILE "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/glut.pc" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/freeglut.pc")
|
||||
endif()
|
||||
file(COPY_FILE "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/glut.pc" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/freeglut.pc")
|
||||
endif()
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
|
@ -1,9 +1,11 @@
|
||||
{
|
||||
"name": "freeglut",
|
||||
"version": "3.4.0",
|
||||
"port-version": 1,
|
||||
"description": "A free OpenGL utility toolkit, the open-sourced alternative to the GLUT library.",
|
||||
"homepage": "https://sourceforge.net/projects/freeglut/",
|
||||
"license": null,
|
||||
"supports": "!ios",
|
||||
"dependencies": [
|
||||
"opengl",
|
||||
{
|
||||
|
@ -1,20 +1,27 @@
|
||||
vcpkg_from_gitlab(
|
||||
GITLAB_URL http://gitlab.onelab.info
|
||||
GITLAB_URL https://gitlab.onelab.info
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO gl2ps/gl2ps
|
||||
REF gl2ps_1_4_2
|
||||
SHA512 cb4abd79f6790e229a0b05a6d12e4bd4d24885c89c4cb8644e49b0459361565c5c5379b53d85f59eeaba16144d3288dbd06c90f55a739f0928a788224ccb8085
|
||||
HEAD_REF master
|
||||
PATCHES separate-static-dynamic-build.patch
|
||||
PATCHES
|
||||
separate-static-dynamic-build.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
||||
OPTIONS
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_GLUT=ON
|
||||
OPTIONS_DEBUG
|
||||
-DDISABLE_INSTALL_HEADERS=ON
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL "${SOURCE_PATH}/COPYING.GL2PS" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
file(INSTALL "${SOURCE_PATH}/COPYING.LGPL" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright.LGPL)
|
||||
vcpkg_install_copyright(
|
||||
FILE_LIST
|
||||
"${SOURCE_PATH}/README.txt"
|
||||
"${SOURCE_PATH}/COPYING.LGPL"
|
||||
"${SOURCE_PATH}/COPYING.GL2PS"
|
||||
)
|
||||
|
@ -1,12 +1,13 @@
|
||||
{
|
||||
"name": "gl2ps",
|
||||
"version": "1.4.2",
|
||||
"port-version": 3,
|
||||
"port-version": 4,
|
||||
"description": "OpenGL to PostScript Printing Library",
|
||||
"homepage": "https://gitlab.onelab.info/gl2ps/gl2ps",
|
||||
"supports": "!android",
|
||||
"dependencies": [
|
||||
"freeglut",
|
||||
"libpng",
|
||||
"opengl",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
|
@ -1,11 +1,13 @@
|
||||
{
|
||||
"name": "glui",
|
||||
"version-date": "2019-11-30",
|
||||
"port-version": 3,
|
||||
"port-version": 4,
|
||||
"description": "GLUI is a GLUT-based C++ user interface library",
|
||||
"homepage": "https://github.com/libglui/glui",
|
||||
"supports": "!android",
|
||||
"dependencies": [
|
||||
"freeglut",
|
||||
"opengl",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
|
@ -30,7 +30,7 @@ index b11573a..703458e 100644
|
||||
set(FREEIMAGE_DIR "NOT-SPECIFIED" CACHE PATH "Directory that contains the freeimage library and the corresponding headers.")
|
||||
#-----------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -90,6 +93,35 @@ function(FIND_FREEIMAGE_EXT)
|
||||
@@ -90,6 +93,37 @@ function(FIND_FREEIMAGE_EXT)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@ -55,6 +55,8 @@ index b11573a..703458e 100644
|
||||
+ if(NOT _FREEIMAGE_LIB)
|
||||
+ get_target_property(_FREEIMAGE_LIB freeimage::FreeImage IMPORTED_IMPLIB_DEBUG)
|
||||
+ endif()
|
||||
+ elseif(WINDOWS)
|
||||
+ set(_FREEIMAGE_LIB "${_FREEIMAGE_SHARED}")
|
||||
+ endif()
|
||||
+
|
||||
+ find_file(_FREEIMAGE_HEADER_FILE "FreeImage.h"
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "mdl-sdk",
|
||||
"version": "2021.1.2",
|
||||
"port-version": 3,
|
||||
"port-version": 4,
|
||||
"description": "NVIDIA Material Definition Language SDK",
|
||||
"homepage": "https://github.com/NVIDIA/MDL-SDK",
|
||||
"license": "BSD-3-Clause",
|
||||
"supports": "!arm & !x86 & !(windows & static)",
|
||||
"supports": "!arm & !x86 & !staticcrt",
|
||||
"dependencies": [
|
||||
"boost-algorithm",
|
||||
"boost-any",
|
||||
|
@ -338,9 +338,7 @@ fmi4cpp:arm64-uwp=fail
|
||||
fmi4cpp:x64-uwp=fail
|
||||
folly:arm64-android=fail
|
||||
folly:x64-android=fail
|
||||
freeglut:arm-neon-android=fail
|
||||
freeglut:arm64-android=fail
|
||||
freeglut:x64-android=fail
|
||||
# Needs XQuartz
|
||||
freeglut:x64-osx=fail
|
||||
# Needs /bigobj
|
||||
freeopcua:arm-neon-android=fail
|
||||
@ -610,6 +608,8 @@ libqcow:x64-windows=skip
|
||||
libqcow:x64-linux=skip
|
||||
libqcow:x86-windows=skip
|
||||
libqcow:arm64-windows=skip
|
||||
# needs ftello
|
||||
libraw:arm-neon-android=fail
|
||||
# Conflicts with openssl
|
||||
libressl:arm-neon-android=skip
|
||||
libressl:arm64-android=skip
|
||||
|
@ -2758,7 +2758,7 @@
|
||||
},
|
||||
"freeglut": {
|
||||
"baseline": "3.4.0",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"freeimage": {
|
||||
"baseline": "3.18.0",
|
||||
@ -2966,7 +2966,7 @@
|
||||
},
|
||||
"gl2ps": {
|
||||
"baseline": "1.4.2",
|
||||
"port-version": 3
|
||||
"port-version": 4
|
||||
},
|
||||
"gl3w": {
|
||||
"baseline": "2018-05-31",
|
||||
@ -3030,7 +3030,7 @@
|
||||
},
|
||||
"glui": {
|
||||
"baseline": "2019-11-30",
|
||||
"port-version": 3
|
||||
"port-version": 4
|
||||
},
|
||||
"gmime": {
|
||||
"baseline": "3.2.6",
|
||||
@ -5490,7 +5490,7 @@
|
||||
},
|
||||
"mdl-sdk": {
|
||||
"baseline": "2021.1.2",
|
||||
"port-version": 3
|
||||
"port-version": 4
|
||||
},
|
||||
"mdns": {
|
||||
"baseline": "1.4.3",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "f948f7bed9cac147c0687d4b170b99bc6b59f157",
|
||||
"version": "3.4.0",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "51a55df4538f3ecdeeb6d9846afd156ec3255630",
|
||||
"version": "3.4.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "1f0cdea5ea747e24f3a5fba076e645e1292a832f",
|
||||
"version": "1.4.2",
|
||||
"port-version": 4
|
||||
},
|
||||
{
|
||||
"git-tree": "3607998f92ba0e61fbcae891aa6a8aa996e3bf0a",
|
||||
"version": "1.4.2",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "8c2b09ac7fb9d890c835c7580c3e0addb996752d",
|
||||
"version-date": "2019-11-30",
|
||||
"port-version": 4
|
||||
},
|
||||
{
|
||||
"git-tree": "5fb1a005d3f676d62e974dbb3b96dba5c3c7369a",
|
||||
"version-date": "2019-11-30",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "7c4084ba04dcadc57086603e341b7d74e6926f00",
|
||||
"version": "2021.1.2",
|
||||
"port-version": 4
|
||||
},
|
||||
{
|
||||
"git-tree": "a8fcd0cdebe6b073993485aba6fa0dd24445f9f5",
|
||||
"version": "2021.1.2",
|
||||
|
Loading…
Reference in New Issue
Block a user