diff options
| author | Fei Chong <ZgblKylin@users.noreply.github.com> | 2021-04-30 04:01:42 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-29 13:01:42 -0700 |
| commit | 2cfbf01199889ab30fc6e3b9d7fe37db6cb73566 (patch) | |
| tree | 4b8cdf5b6455aae25ae2e8e75375396e43f6916d | |
| parent | 6537078e8ae397e5fb959e839c79e86c836065c2 (diff) | |
| download | vcpkg-2cfbf01199889ab30fc6e3b9d7fe37db6cb73566.tar.gz vcpkg-2cfbf01199889ab30fc6e3b9d7fe37db6cb73566.zip | |
update osg-qt from Qt4 tag to master branch(Qt5) (#14761)
* update osg-qt from Qt4 tag to master brach(Qt5)
* [osg-qt]: update version to Qt5#4
* Apply suggestions from code review
* Update versions/baseline.json
* Update versions/o-/osg-qt.json
* Update versions/baseline.json
* Update versions/o-/osg-qt.json
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
| -rw-r--r-- | ports/osg-qt/CMakeLists.patch | 16 | ||||
| -rw-r--r-- | ports/osg-qt/CONTROL | 7 | ||||
| -rw-r--r-- | ports/osg-qt/OsgMacroUtils.patch | 4 | ||||
| -rw-r--r-- | ports/osg-qt/fix-static-install.patch | 16 | ||||
| -rw-r--r-- | ports/osg-qt/portfile.cmake | 7 | ||||
| -rw-r--r-- | versions/baseline.json | 4 | ||||
| -rw-r--r-- | versions/o-/osg-qt.json | 5 |
7 files changed, 40 insertions, 19 deletions
diff --git a/ports/osg-qt/CMakeLists.patch b/ports/osg-qt/CMakeLists.patch new file mode 100644 index 000000000..0a60fb416 --- /dev/null +++ b/ports/osg-qt/CMakeLists.patch @@ -0,0 +1,16 @@ +diff --git a/src/osgQOpenGL/CMakeLists.txt b/src/osgQOpenGL/CMakeLists.txt +--- a/src/osgQOpenGL/CMakeLists.txt ++++ b/src/osgQOpenGL/CMakeLists.txt +@@ -14,7 +14,11 @@ + ${HEADER_PATH}/OSGRenderer + ) + +- qt5_wrap_cpp(SOURCES_H_MOC ${SOURCE_H} #[[OPTIONS ${MOC_OPTIONS}]]) ++ FOREACH(HEADER_FILE ${SOURCE_H}) ++ get_filename_component(HEADER_FILE_NAME "${CMAKE_CURRENT_LIST_DIR}/${HEADER_FILE}" NAME) ++ qt5_wrap_cpp(HEADER_FILE_MOC ${HEADER_FILE} OPTIONS "-f<osgQOpenGL/${HEADER_FILE_NAME}>") ++ LIST(APPEND SOURCES_H_MOC ${HEADER_FILE_MOC}) ++ ENDFOREACH() + + SET(TARGET_H + ${SOURCE_H} diff --git a/ports/osg-qt/CONTROL b/ports/osg-qt/CONTROL index 6293c82fe..7f8a19320 100644 --- a/ports/osg-qt/CONTROL +++ b/ports/osg-qt/CONTROL @@ -1,5 +1,4 @@ Source: osg-qt
-Version: Qt4
-Port-Version: 3 -Description: osgQt - Qt project for making use of OpenSceneGraph(OSG)
-Build-Depends: osg, protobuf, qt5-base[core]
\ No newline at end of file +Version: Qt5
+Description: osgQt - Qt project for making use of OpenSceneGraph(OSG)
+Build-Depends: osg, protobuf, qt5-base[core]
diff --git a/ports/osg-qt/OsgMacroUtils.patch b/ports/osg-qt/OsgMacroUtils.patch index 96f040cd3..d46f1f90a 100644 --- a/ports/osg-qt/OsgMacroUtils.patch +++ b/ports/osg-qt/OsgMacroUtils.patch @@ -1,8 +1,8 @@ --- a/CMakeModules/OsgMacroUtils.cmake +++ b/CMakeModules/OsgMacroUtils.cmake -@@ -88,7 +88,7 @@ MACRO(LINK_CORELIB_DEFAULT CORELIB_NAME) +@@ -92,7 +92,7 @@ MACRO(LINK_CORELIB_DEFAULT CORELIB_NAME) ENDIF() - + LINK_EXTERNAL(${CORELIB_NAME} ${ALL_GL_LIBRARIES}) - LINK_WITH_VARIABLES(${CORELIB_NAME} OPENTHREADS_LIBRARY) + #LINK_WITH_VARIABLES(${CORELIB_NAME} OPENTHREADS_LIBRARY) diff --git a/ports/osg-qt/fix-static-install.patch b/ports/osg-qt/fix-static-install.patch index c4088d331..4b2597c92 100644 --- a/ports/osg-qt/fix-static-install.patch +++ b/ports/osg-qt/fix-static-install.patch @@ -2,24 +2,24 @@ diff --git a/CMakeModules/ModuleInstall.cmake b/CMakeModules/ModuleInstall.cmake index eb26ba2..14b8bca 100644 --- a/CMakeModules/ModuleInstall.cmake +++ b/CMakeModules/ModuleInstall.cmake -@@ -40,10 +40,10 @@ INSTALL( +@@ -40,10 +40,10 @@ ARCHIVE DESTINATION ${INSTALL_ARCHIVEDIR} COMPONENT libopenscenegraph-dev ) - + -IF(MSVC AND NOT CMAKE_BUILD_TYPE STREQUAL "Release") +IF(MSVC AND NOT CMAKE_BUILD_TYPE STREQUAL "Release" AND DYNAMIC_OPENSCENEGRAPH) GET_TARGET_PROPERTY(PREFIX ${LIB_NAME} PREFIX) INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PREFIX}${LIB_NAME}${CMAKE_BUILD_POSTFIX}.pdb DESTINATION ${INSTALL_BINDIR} COMPONENT libopenscenegraph) -ENDIF(MSVC AND NOT CMAKE_BUILD_TYPE STREQUAL "Release") +ENDIF(MSVC AND NOT CMAKE_BUILD_TYPE STREQUAL "Release" AND DYNAMIC_OPENSCENEGRAPH) - + IF(NOT OSG_COMPILE_FRAMEWORKS) INSTALL ( diff --git a/CMakeModules/OsgMacroUtils.cmake b/CMakeModules/OsgMacroUtils.cmake index 5688f8f..329f862 100644 --- a/CMakeModules/OsgMacroUtils.cmake +++ b/CMakeModules/OsgMacroUtils.cmake -@@ -327,9 +327,9 @@ MACRO(SETUP_PLUGIN PLUGIN_NAME) +@@ -333,9 +333,9 @@ MACRO(SETUP_PLUGIN PLUGIN_NAME) RUNTIME DESTINATION bin COMPONENT ${PACKAGE_COMPONENT} ARCHIVE DESTINATION lib/${OSG_PLUGINS} COMPONENT libopenscenegraph-dev LIBRARY DESTINATION bin/${OSG_PLUGINS} COMPONENT ${PACKAGE_COMPONENT}) @@ -31,7 +31,7 @@ index 5688f8f..329f862 100644 ELSE(WIN32) INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION bin COMPONENT ${PACKAGE_COMPONENT} -@@ -432,9 +432,9 @@ MACRO(SETUP_APPLICATION APPLICATION_NAME) +@@ -436,9 +436,9 @@ MACRO(SETUP_APPLICATION APPLICATION_NAME) INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION bin BUNDLE DESTINATION bin) ELSE(APPLE) INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION bin COMPONENT openscenegraph ) @@ -41,9 +41,9 @@ index 5688f8f..329f862 100644 - ENDIF(MSVC AND NOT CMAKE_BUILD_TYPE STREQUAL "Release") + ENDIF(MSVC AND NOT CMAKE_BUILD_TYPE STREQUAL "Release" AND DYNAMIC_OPENSCENEGRAPH) ENDIF(APPLE) - + ENDMACRO(SETUP_APPLICATION) -@@ -464,9 +464,9 @@ MACRO(SETUP_EXAMPLE EXAMPLE_NAME) +@@ -468,9 +468,9 @@ MACRO(SETUP_EXAMPLE EXAMPLE_NAME) INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION share/OpenSceneGraph/bin BUNDLE DESTINATION share/OpenSceneGraph/bin ) ELSE(APPLE) INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION share/OpenSceneGraph/bin COMPONENT openscenegraph-examples ) @@ -53,5 +53,5 @@ index 5688f8f..329f862 100644 - ENDIF(MSVC AND NOT CMAKE_BUILD_TYPE STREQUAL "Release") + ENDIF(MSVC AND NOT CMAKE_BUILD_TYPE STREQUAL "Release" AND DYNAMIC_OPENSCENEGRAPH) ENDIF(APPLE) - + ENDMACRO(SETUP_EXAMPLE) diff --git a/ports/osg-qt/portfile.cmake b/ports/osg-qt/portfile.cmake index 3d3dd73ea..97937f13d 100644 --- a/ports/osg-qt/portfile.cmake +++ b/ports/osg-qt/portfile.cmake @@ -1,12 +1,13 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO openscenegraph/osgQt
- REF Qt4 - SHA512 426a4ba88f680978d24817248b99c68cafa4517144e6e3d2480612870c4a224bb955539cacb438274d4ee1c93c36d94f8437d142070b2ecde2b81517bf357e71
+ REF 2cb70673a4e83a618290e7ee66d52402a94ec3f6
+ SHA512 29aeb5b31e70d5b12e69de7970b36ab7d1541c984873384a46c6468394e8562688c46ef39179820990817c94f283c7836c2c6ff207eefe385086d850ba3f8306
HEAD_REF master
PATCHES
OsgMacroUtils.patch
fix-static-install.patch
+ CMakeLists.patch
)
if(VCPKG_TARGET_IS_OSX)
@@ -35,4 +36,4 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) # Handle License
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
-file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
\ No newline at end of file +file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
diff --git a/versions/baseline.json b/versions/baseline.json index 1a7b4672d..f096dc3eb 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4593,8 +4593,8 @@ "port-version": 7 }, "osg-qt": { - "baseline": "Qt4", - "port-version": 3 + "baseline": "Qt5", + "port-version": 0 }, "osgearth": { "baseline": "3.1", diff --git a/versions/o-/osg-qt.json b/versions/o-/osg-qt.json index d930d44bd..81eae086b 100644 --- a/versions/o-/osg-qt.json +++ b/versions/o-/osg-qt.json @@ -1,6 +1,11 @@ { "versions": [ { + "git-tree": "912b87e36bf6db14319d83e11d91286b6921675f", + "version-string": "Qt5", + "port-version": 0 + }, + { "git-tree": "0cb876c38973571d755b0c92b17c8d1359027d07", "version-string": "Qt4", "port-version": 3 |
