aboutsummaryrefslogtreecommitdiff
path: root/ports/coin
diff options
context:
space:
mode:
authorMarkus Rickert <rickertm@users.noreply.github.com>2020-05-08 19:35:22 +0200
committerGitHub <noreply@github.com>2020-05-08 10:35:22 -0700
commit2fc37d513a59d50f471b895c0f5d2c1f53456a6a (patch)
tree0ebb4de3c8cdb8fcc2b95d43225b67e9aca12754 /ports/coin
parent5db4f98d6e7d7b83285452020e8e147f8f0c8d7c (diff)
downloadvcpkg-2fc37d513a59d50f471b895c0f5d2c1f53456a6a.tar.gz
vcpkg-2fc37d513a59d50f471b895c0f5d2c1f53456a6a.zip
[Coin3D] Add new ports for simage, Coin, and SoQt (#9880)
* [simage] Add new port * [coin] Add new port * [soqt] Add new port
Diffstat (limited to 'ports/coin')
-rw-r--r--ports/coin/CONTROL31
-rw-r--r--ports/coin/disable-cpackd.patch10
-rw-r--r--ports/coin/portfile.cmake43
3 files changed, 84 insertions, 0 deletions
diff --git a/ports/coin/CONTROL b/ports/coin/CONTROL
new file mode 100644
index 000000000..9f6ae24ed
--- /dev/null
+++ b/ports/coin/CONTROL
@@ -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
diff --git a/ports/coin/disable-cpackd.patch b/ports/coin/disable-cpackd.patch
new file mode 100644
index 000000000..81afeb668
--- /dev/null
+++ b/ports/coin/disable-cpackd.patch
@@ -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)
diff --git a/ports/coin/portfile.cmake b/ports/coin/portfile.cmake
new file mode 100644
index 000000000..8039845d8
--- /dev/null
+++ b/ports/coin/portfile.cmake
@@ -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)