mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-21 18:17:10 +01:00
[Coin3D] Add new ports for simage, Coin, and SoQt (#9880)
* [simage] Add new port * [coin] Add new port * [soqt] Add new port
This commit is contained in:
parent
5db4f98d6e
commit
2fc37d513a
31
ports/coin/CONTROL
Normal file
31
ports/coin/CONTROL
Normal file
@ -0,0 +1,31 @@
|
||||
Source: coin
|
||||
Version: 4.0.0
|
||||
Description: A high-level 3D visualization library with Open Inventor 2.1 API
|
||||
Build-Depends: boost-assert, boost-config, boost-lexical-cast, boost-math, boost-smart-ptr, boost-static-assert
|
||||
Homepage: https://github.com/coin3d/coin
|
||||
Default-Features: simage, zlib
|
||||
Supports: !(arm|arm64|uwp)
|
||||
|
||||
Feature: bzip2
|
||||
Build-Depends: bzip2, freetype[bzip2]
|
||||
Description: Support bzip2 compressed fonts
|
||||
|
||||
Feature: fontconfig
|
||||
Build-Depends: fontconfig
|
||||
Description: Use fontconfig for font support
|
||||
|
||||
Feature: freetype
|
||||
Build-Depends: freetype
|
||||
Description: Use freetype for font support
|
||||
|
||||
Feature: openal
|
||||
Build-Depends: openal-soft
|
||||
Description: Use OpenAL for sound support in VRML97
|
||||
|
||||
Feature: simage
|
||||
Build-Depends: simage
|
||||
Description: Use simage for loading images (textures), audio, and animations
|
||||
|
||||
Feature: zlib
|
||||
Build-Depends: zlib
|
||||
Description: Use zlib for reading/writing compressed files
|
10
ports/coin/disable-cpackd.patch
Normal file
10
ports/coin/disable-cpackd.patch
Normal file
@ -0,0 +1,10 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index f32f6ffe3..639fc4109 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -815,4 +815,4 @@ endif()
|
||||
|
||||
# ############################################################################
|
||||
# New CPACK section, please see the README file inside cpack.d directory.
|
||||
-add_subdirectory(cpack.d)
|
||||
+#add_subdirectory(cpack.d)
|
43
ports/coin/portfile.cmake
Normal file
43
ports/coin/portfile.cmake
Normal file
@ -0,0 +1,43 @@
|
||||
vcpkg_fail_port_install(ON_TARGET "UWP" ON_ARCH "arm" "arm64")
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO Coin3D/coin
|
||||
REF Coin-4.0.0
|
||||
SHA512 8a0289cab3e02a7417022fe659ec30a2dd705b9bacb254e0269ada9155c76c6aea0285c475cd6e663f5d7f2b49e60244b16baac7188d57e3d7f8ab08d228f21f
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
disable-cpackd.patch
|
||||
)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
set(COIN_BUILD_MSVC_STATIC_RUNTIME ON)
|
||||
set(COIN_BUILD_SHARED_LIBS OFF)
|
||||
else()
|
||||
set(COIN_BUILD_MSVC_STATIC_RUNTIME OFF)
|
||||
set(COIN_BUILD_SHARED_LIBS ON)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DCOIN_BUILD_DOCUMENTATION=OFF
|
||||
-DCOIN_BUILD_MSVC_STATIC_RUNTIME=${COIN_BUILD_MSVC_STATIC_RUNTIME}
|
||||
-DCOIN_BUILD_SHARED_LIBS=${COIN_BUILD_SHARED_LIBS}
|
||||
-DCOIN_BUILD_TESTS=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Coin-4.0.0)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
endif()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/Coin/profiler)
|
5
ports/simage/CONTROL
Normal file
5
ports/simage/CONTROL
Normal file
@ -0,0 +1,5 @@
|
||||
Source: simage
|
||||
Version: 1.8.0
|
||||
Description: Image file format library abstraction layer
|
||||
Build-Depends: giflib (linux|uwp), libjpeg-turbo (linux|uwp), libpng (linux|uwp), libsndfile (linux|uwp), tiff (linux|uwp), libvorbis (linux|uwp)
|
||||
Homepage: https://github.com/coin3d/simage
|
10
ports/simage/disable-cpackd.patch
Normal file
10
ports/simage/disable-cpackd.patch
Normal file
@ -0,0 +1,10 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 775037a..e3deb01 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -627,4 +627,4 @@ install(EXPORT ${PROJECT_NAME}
|
||||
|
||||
# ############################################################################
|
||||
# New CPACK section, please see the README file inside cpack.d directory.
|
||||
-add_subdirectory(cpack.d)
|
||||
+#add_subdirectory(cpack.d)
|
44
ports/simage/disable-examples.patch
Normal file
44
ports/simage/disable-examples.patch
Normal file
@ -0,0 +1,44 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 775037a..fbd81b2 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -482,23 +489,23 @@ endif()
|
||||
# Build examples
|
||||
# ############################################################################
|
||||
|
||||
-set(SIMAGE_EXAMPLE_SOURCE
|
||||
- ${CMAKE_CURRENT_SOURCE_DIR}/examples/audio2raw.c
|
||||
- ${CMAKE_CURRENT_SOURCE_DIR}/examples/img2avi.c
|
||||
+#set(SIMAGE_EXAMPLE_SOURCE
|
||||
+# ${CMAKE_CURRENT_SOURCE_DIR}/examples/audio2raw.c
|
||||
+# ${CMAKE_CURRENT_SOURCE_DIR}/examples/img2avi.c
|
||||
# ${CMAKE_CURRENT_SOURCE_DIR}/examples/mpeg2enc.cpp # requires Coin to build
|
||||
- ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-convert.c
|
||||
- ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-read-line-test.c
|
||||
-)
|
||||
-
|
||||
-foreach(_source ${SIMAGE_EXAMPLE_SOURCE})
|
||||
- get_filename_component(_example ${_source} NAME_WE)
|
||||
- add_executable(${_example} ${_source})
|
||||
- target_compile_definitions(${_example} PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)
|
||||
- target_link_libraries(${_example} simage)
|
||||
- if(UNIX)
|
||||
- target_link_libraries(${_example} m)
|
||||
- endif()
|
||||
-endforeach()
|
||||
+# ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-convert.c
|
||||
+# ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-read-line-test.c
|
||||
+#)
|
||||
+
|
||||
+#foreach(_source ${SIMAGE_EXAMPLE_SOURCE})
|
||||
+# get_filename_component(_example ${_source} NAME_WE)
|
||||
+# add_executable(${_example} ${_source})
|
||||
+# target_compile_definitions(${_example} PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)
|
||||
+# target_link_libraries(${_example} simage)
|
||||
+# if(UNIX)
|
||||
+# target_link_libraries(${_example} m)
|
||||
+# endif()
|
||||
+#endforeach()
|
||||
|
||||
# ############################################################################
|
||||
# Build tests
|
49
ports/simage/disable-tests.patch
Normal file
49
ports/simage/disable-tests.patch
Normal file
@ -0,0 +1,49 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 775037a..b82734a 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -504,25 +511,25 @@ endforeach()
|
||||
# Build tests
|
||||
# ############################################################################
|
||||
|
||||
-enable_testing()
|
||||
-
|
||||
-add_executable(loaders tests/loaders.c)
|
||||
-target_link_libraries(loaders simage)
|
||||
-target_compile_definitions(loaders PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)
|
||||
-if(UNIX)
|
||||
- target_link_libraries(loaders m)
|
||||
-endif()
|
||||
-
|
||||
-add_test(
|
||||
- loaders
|
||||
- ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/loaders
|
||||
- ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.gif
|
||||
- ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.jpg
|
||||
- ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.png
|
||||
- ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.rgb
|
||||
- ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.tga
|
||||
- ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.tif
|
||||
-)
|
||||
+#enable_testing()
|
||||
+
|
||||
+#add_executable(loaders tests/loaders.c)
|
||||
+#target_link_libraries(loaders simage)
|
||||
+#target_compile_definitions(loaders PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)
|
||||
+#if(UNIX)
|
||||
+# target_link_libraries(loaders m)
|
||||
+#endif()
|
||||
+
|
||||
+#add_test(
|
||||
+# loaders
|
||||
+# ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/loaders
|
||||
+# ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.gif
|
||||
+# ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.jpg
|
||||
+# ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.png
|
||||
+# ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.rgb
|
||||
+# ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.tga
|
||||
+# ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.tif
|
||||
+#)
|
||||
|
||||
# Add a target to generate API documentation with Doxygen
|
||||
if(SIMAGE_BUILD_DOCUMENTATION)
|
60
ports/simage/link-flac-library.patch
Normal file
60
ports/simage/link-flac-library.patch
Normal file
@ -0,0 +1,60 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 775037a..2de9b9f 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -108,6 +108,10 @@ find_package(Jasper)
|
||||
find_package(OggVorbis)
|
||||
find_package(Sndfile)
|
||||
|
||||
+if(SNDFILE_FOUND)
|
||||
+ find_package(FLAC)
|
||||
+endif()
|
||||
+
|
||||
if(APPLE AND SIMAGE_USE_CGIMAGE)
|
||||
check_cxx_source_compiles("
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
@@ -467,6 +471,9 @@ endif()
|
||||
if(SNDFILE_FOUND)
|
||||
target_include_directories(simage PRIVATE ${SNDFILE_INCLUDE_DIRS})
|
||||
target_link_libraries(simage PRIVATE ${SNDFILE_LIBRARIES})
|
||||
+ if(FLAC_FOUND)
|
||||
+ target_link_libraries(simage PRIVATE ${FLAC_LIBRARIES})
|
||||
+ endif()
|
||||
endif()
|
||||
|
||||
if(TIFF_FOUND)
|
||||
diff --git a/FindFLAC.cmake b/FindFLAC.cmake
|
||||
new file mode 100644
|
||||
index 0000000..ce40a11
|
||||
--- /dev/null
|
||||
+++ b/FindFLAC.cmake
|
||||
@@ -0,0 +1,29 @@
|
||||
+include(FindPackageHandleStandardArgs)
|
||||
+
|
||||
+find_path(FLAC_INCLUDE_DIR FLAC/all.h)
|
||||
+
|
||||
+mark_as_advanced(FLAC_INCLUDE_DIR)
|
||||
+
|
||||
+set(FLAC_INCLUDE_DIRS ${FLAC_INCLUDE_DIR})
|
||||
+
|
||||
+find_library(FLAC_LIBRARY NAMES FLAC)
|
||||
+
|
||||
+mark_as_advanced(
|
||||
+ FLAC_INCLUDE_DIR
|
||||
+ FLAC_LIBRARY
|
||||
+)
|
||||
+
|
||||
+set(FLAC_LIBRARIES ${FLAC_LIBRARY})
|
||||
+
|
||||
+find_package_handle_standard_args(
|
||||
+ FLAC
|
||||
+ DEFAULT_MSG
|
||||
+ FLAC_INCLUDE_DIRS
|
||||
+ FLAC_LIBRARIES
|
||||
+)
|
||||
+
|
||||
+if(FLAC_FOUND AND NOT TARGET FLAC::FLAC)
|
||||
+ add_library(FLAC::FLAC UNKNOWN IMPORTED)
|
||||
+ set_target_properties(FLAC::FLAC PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${FLAC_INCLUDE_DIR}")
|
||||
+ set_property(TARGET FLAC::FLAC APPEND PROPERTY IMPORTED_LOCATION "${FLAC_LIBRARY}")
|
||||
+endif()
|
14
ports/simage/link-math-library.patch
Normal file
14
ports/simage/link-math-library.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 4a978dd..e7abd57 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -454,6 +454,9 @@ endif()
|
||||
if(PNG_FOUND)
|
||||
target_include_directories(simage PRIVATE ${PNG_INCLUDE_DIR})
|
||||
target_link_libraries(simage PRIVATE ${PNG_LIBRARIES})
|
||||
+ if(UNIX)
|
||||
+ target_link_libraries(simage PRIVATE m)
|
||||
+ endif()
|
||||
endif()
|
||||
|
||||
if(SIMAGE_QIMAGE_SUPPORT)
|
16
ports/simage/link-ogg-library.patch
Normal file
16
ports/simage/link-ogg-library.patch
Normal file
@ -0,0 +1,16 @@
|
||||
diff --git a/FindOggVorbis.cmake b/FindOggVorbis.cmake
|
||||
index a33e63e..7e2708b 100644
|
||||
--- a/FindOggVorbis.cmake
|
||||
+++ b/FindOggVorbis.cmake
|
||||
@@ -28,10 +28,10 @@ mark_as_advanced(
|
||||
|
||||
set(
|
||||
OGGVORBIS_LIBRARIES
|
||||
- ${OGG_LIBRARY}
|
||||
${VORBIS_LIBRARY}
|
||||
${VORBISFILE_LIBRARY}
|
||||
${VORBISENC_LIBRARY}
|
||||
+ ${OGG_LIBRARY}
|
||||
)
|
||||
|
||||
find_package_handle_standard_args(
|
48
ports/simage/portfile.cmake
Normal file
48
ports/simage/portfile.cmake
Normal file
@ -0,0 +1,48 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO Coin3D/simage
|
||||
REF simage-1.8.0
|
||||
SHA512 7070c845fc72094a97b1253d23a5f60f90e71dc6ed968c9c7da67e05660b05245a807fbdf0f592a1d459c7c3b725783c55f59f867182b11cb9ec40741d7ad58c
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
disable-cpackd.patch
|
||||
disable-examples.patch
|
||||
disable-tests.patch
|
||||
link-flac-library.patch
|
||||
link-math-library.patch
|
||||
link-ogg-library.patch
|
||||
potentially-uninitialized-local-pointer-variable.patch
|
||||
)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
set(SIMAGE_BUILD_SHARED_LIBS OFF)
|
||||
else()
|
||||
set(SIMAGE_BUILD_SHARED_LIBS ON)
|
||||
endif()
|
||||
|
||||
if(VCPKG_TARGET_IS_UWP)
|
||||
set(SIMAGE_USE_AVIENC OFF)
|
||||
set(SIMAGE_USE_GDIPLUS OFF)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DSIMAGE_BUILD_SHARED_LIBS=${SIMAGE_BUILD_SHARED_LIBS}
|
||||
-DSIMAGE_USE_AVIENC=${SIMAGE_USE_AVIENC}
|
||||
-DSIMAGE_USE_GDIPLUS=${SIMAGE_USE_GDIPLUS}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/simage-1.8.0)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
endif()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
@ -0,0 +1,26 @@
|
||||
diff --git a/examples/img2avi.c b/examples/img2avi.c
|
||||
index 7a5ca96..d0ee057 100644
|
||||
--- a/examples/img2avi.c
|
||||
+++ b/examples/img2avi.c
|
||||
@@ -30,7 +30,7 @@ int main(int argc, char *argv[])
|
||||
int first;
|
||||
int width;
|
||||
int height;
|
||||
- s_movie * movie;
|
||||
+ s_movie * movie = NULL;
|
||||
s_params * params;
|
||||
s_image *image;
|
||||
char formatbuf[20];
|
||||
diff --git a/mpeg2enc/putvlc.c b/mpeg2enc/putvlc.c
|
||||
index 6a84fbd..b373fea 100644
|
||||
--- a/mpeg2enc/putvlc.c
|
||||
+++ b/mpeg2enc/putvlc.c
|
||||
@@ -103,7 +103,7 @@ void
|
||||
simpeg_encode_putAC(simpeg_encode_context * context,int run, int signed_level, int vlcformat)
|
||||
{
|
||||
int level, len;
|
||||
- VLCtable *ptab;
|
||||
+ VLCtable *ptab = NULL;
|
||||
|
||||
level = (signed_level<0) ? -signed_level : signed_level; /* abs(signed_level) */
|
||||
|
6
ports/soqt/CONTROL
Normal file
6
ports/soqt/CONTROL
Normal file
@ -0,0 +1,6 @@
|
||||
Source: soqt
|
||||
Version: 1.6.0
|
||||
Description: A Qt Gui-toolkit binding for Coin
|
||||
Build-Depends: coin, qt5-base
|
||||
Homepage: https://github.com/coin3d/soqt
|
||||
Supports: !(arm|arm64|uwp)
|
10
ports/soqt/disable-cpackd.patch
Normal file
10
ports/soqt/disable-cpackd.patch
Normal file
@ -0,0 +1,10 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 802e512c..21cc23a9 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -393,4 +393,4 @@ add_subdirectory(test-code)
|
||||
|
||||
############################################################################
|
||||
# New CPACK section, please see the README file inside cpack.d directory.
|
||||
-add_subdirectory(cpack.d)
|
||||
+#add_subdirectory(cpack.d)
|
13
ports/soqt/disable-test-code.patch
Normal file
13
ports/soqt/disable-test-code.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 4b0815f2..236ffa8d 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -390,7 +390,7 @@ set(PACKAGE_REQUIREMENTS "Coin, ${PACKAGE_ADDITIONAL_REQUIREMENTS}")
|
||||
add_subdirectory(data)
|
||||
add_subdirectory(src)
|
||||
##### small test programs (to be run interactively)
|
||||
-add_subdirectory(test-code)
|
||||
+#add_subdirectory(test-code)
|
||||
|
||||
############################################################################
|
||||
# New CPACK section, please see the README file inside cpack.d directory.
|
89
ports/soqt/portfile.cmake
Normal file
89
ports/soqt/portfile.cmake
Normal file
@ -0,0 +1,89 @@
|
||||
vcpkg_fail_port_install(ON_TARGET "UWP" ON_ARCH "arm" "arm64")
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO Coin3D/soqt
|
||||
REF SoQt-1.6.0
|
||||
SHA512 204d49769dda1a9833093ff78bdb788df0c514e800ae0bc35d4ef832ece304c7c26fc7d893ee83db95c34d9457e27e04c74301bcd2029aa3a0f96ec2ecbb3984
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
disable-cpackd.patch
|
||||
disable-test-code.patch
|
||||
)
|
||||
|
||||
if(VCPKG_HEAD_VERSION)
|
||||
vcpkg_download_distfile(
|
||||
SOANYDATA_ARCHIVE
|
||||
URLS "https://github.com/coin3d/soanydata/archive/master.tar.gz"
|
||||
FILENAME "Coin3D-soanydata-master.tar.gz"
|
||||
SKIP_SHA512
|
||||
)
|
||||
else()
|
||||
vcpkg_download_distfile(
|
||||
SOANYDATA_ARCHIVE
|
||||
URLS "https://github.com/coin3d/soanydata/archive/3ff6e9203fbb0cc08a2bdf209212b7ef4d78a1f2.tar.gz"
|
||||
FILENAME "Coin3D-soanydata-3ff6e9203fbb0cc08a2bdf209212b7ef4d78a1f2.tar.gz"
|
||||
SHA512 9e176feda43a12ccdf8756f7329517936357499771a7d0a58357d343bdea125c34f8734ff1cd16cda3eeee58090dc1680999849c50132c30940a23d3f81a5c66
|
||||
)
|
||||
endif()
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOANYDATA_SOURCE_PATH
|
||||
ARCHIVE ${SOANYDATA_ARCHIVE}
|
||||
)
|
||||
|
||||
if(NOT EXISTS ${SOURCE_PATH}/data)
|
||||
file(RENAME ${SOANYDATA_SOURCE_PATH} ${SOURCE_PATH}/data)
|
||||
endif()
|
||||
|
||||
if(VCPKG_HEAD_VERSION)
|
||||
vcpkg_download_distfile(
|
||||
SOGUI_ARCHIVE
|
||||
URLS "https://github.com/coin3d/sogui/archive/master.tar.gz"
|
||||
FILENAME "Coin3D-sogui-master.tar.gz"
|
||||
SKIP_SHA512
|
||||
)
|
||||
else()
|
||||
vcpkg_download_distfile(
|
||||
SOGUI_ARCHIVE
|
||||
URLS "https://github.com/coin3d/sogui/archive/fb79af47cff89f0f3657501601a7ea5c11968b17.tar.gz"
|
||||
FILENAME "Coin3D-sogui-fb79af47cff89f0f3657501601a7ea5c11968b17.tar.gz"
|
||||
SHA512 bcf4d2e04c3b6ac87a6425d90c6077ec655732bcc0f99bf181ff2dfce8d356509f52d71b884660fafddc135551ee8fbb139e02b6706d2a01be006193918d232b
|
||||
)
|
||||
endif()
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOGUI_SOURCE_PATH
|
||||
ARCHIVE ${SOGUI_ARCHIVE}
|
||||
)
|
||||
|
||||
if(NOT EXISTS ${SOURCE_PATH}/src/Inventor/Qt/common)
|
||||
file(RENAME ${SOGUI_SOURCE_PATH} ${SOURCE_PATH}/src/Inventor/Qt/common)
|
||||
endif()
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
set(SOQT_BUILD_SHARED_LIBS OFF)
|
||||
else()
|
||||
set(SOQT_BUILD_SHARED_LIBS ON)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DSOQT_BUILD_DOCUMENTATION=OFF
|
||||
-DSOQT_BUILD_SHARED_LIBS=${SOQT_BUILD_SHARED_LIBS}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/SoQt-1.6.0)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
endif()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
@ -255,6 +255,9 @@ cmcstl2:x64-uwp = skip
|
||||
cmcstl2:x64-windows = skip
|
||||
cmcstl2:x64-windows-static = skip
|
||||
cmcstl2:x86-windows = skip
|
||||
coin:arm64-windows=fail
|
||||
coin:arm-uwp=fail
|
||||
coin:x64-uwp=fail
|
||||
collada-dom:x64-osx=fail
|
||||
collada-dom:x64-windows-static=fail
|
||||
coolprop:arm-uwp=fail
|
||||
@ -1689,6 +1692,9 @@ soil:x64-uwp=fail
|
||||
soil2:arm-uwp=fail
|
||||
soil2:x64-uwp=fail
|
||||
sophus:x64-linux=fail
|
||||
soqt:arm64-windows=fail
|
||||
soqt:arm-uwp=fail
|
||||
soqt:x64-uwp=fail
|
||||
soundtouch:arm-uwp=fail
|
||||
soundtouch:x64-linux=ignore
|
||||
soundtouch:x64-uwp=fail
|
||||
|
Loading…
x
Reference in New Issue
Block a user