2018-07-09 13:34:16 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO openscenegraph/osgQt
|
2021-04-30 04:01:42 +08:00
|
|
|
REF 2cb70673a4e83a618290e7ee66d52402a94ec3f6
|
|
|
|
SHA512 29aeb5b31e70d5b12e69de7970b36ab7d1541c984873384a46c6468394e8562688c46ef39179820990817c94f283c7836c2c6ff207eefe385086d850ba3f8306
|
2018-07-09 13:34:16 +08:00
|
|
|
HEAD_REF master
|
2020-04-10 08:08:01 +08:00
|
|
|
PATCHES
|
2019-08-15 05:12:55 +08:00
|
|
|
OsgMacroUtils.patch
|
2020-11-07 05:21:53 +08:00
|
|
|
fix-static-install.patch
|
2021-04-30 04:01:42 +08:00
|
|
|
CMakeLists.patch
|
2021-10-29 09:10:38 +08:00
|
|
|
use-lib.patch
|
2018-07-09 13:34:16 +08:00
|
|
|
)
|
|
|
|
|
2020-04-10 08:08:01 +08:00
|
|
|
if(VCPKG_TARGET_IS_OSX)
|
|
|
|
string(APPEND VCPKG_CXX_FLAGS " -stdlib=libc++")
|
|
|
|
string(APPEND VCPKG_C_FLAGS "") # both must be set
|
|
|
|
endif()
|
2018-07-09 13:34:16 +08:00
|
|
|
|
2020-04-24 12:19:45 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
|
|
|
set(OPTIONS -DDYNAMIC_OPENSCENEGRAPH=ON)
|
|
|
|
else()
|
|
|
|
set(OPTIONS -DDYNAMIC_OPENSCENEGRAPH=OFF)
|
|
|
|
endif()
|
|
|
|
|
2021-10-29 09:10:38 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
${OPTIONS}
|
|
|
|
-DBUILD_OSG_EXAMPLES=OFF
|
|
|
|
-DOSG_BUILD_APPLICATION_BUNDLES=OFF
|
2018-07-09 13:34:16 +08:00
|
|
|
)
|
|
|
|
|
2021-10-29 09:10:38 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2018-07-09 13:34:16 +08:00
|
|
|
|
2021-10-29 09:10:38 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|