Skip to content

Commit

Permalink
[coin] Add a warning message for installing libgl and libglu (#36073)
Browse files Browse the repository at this point in the history
* [coin] Add a warning message for installing libgl and libglu

* update version
  • Loading branch information
LilyWangLL committed Jan 11, 2024
1 parent 8a5830e commit 1489e83
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
19 changes: 17 additions & 2 deletions ports/coin/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
if(NOT VCPKG_HOST_IS_WINDOWS)
message(WARNING "${PORT} currently requires the following programs from the system package manager:
libgl libglu
On Debian and Ubuntu derivatives:
sudo apt-get install libgl-dev libglu1-mesa-dev
On CentOS and recent Red Hat derivatives:
yum install mesa-libGL-devel mesa-libGLU-devel
On Fedora derivatives:
sudo dnf install mesa-libGL-devel mesa-libGLU-devel
On Arch Linux and derivatives:
sudo pacman -S gl glu
On Alpine:
apk add gl glu\n")
endif()

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Coin3D/coin
REF v${VERSION}
REF "v${VERSION}"
SHA512 f913f1b1ec5819d72e054dc94702effe9ee2a28547fc9bebc2f6b2e55d8a67c6cfa05e43239461e806cbead0a7548f82b31d5b86181eed4ffc5c801d3b94aa67
HEAD_REF master
PATCHES
Expand Down Expand Up @@ -33,7 +48,7 @@ vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Coin-${VERSION})

file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
Expand Down
2 changes: 2 additions & 0 deletions ports/coin/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"name": "coin",
"version": "4.0.2",
"port-version": 1,
"description": "A high-level 3D visualization library with Open Inventor 2.1 API",
"homepage": "https://github.com/coin3d/coin",
"license": "BSD-3-Clause",
"supports": "!(arm | arm64 | uwp)",
"dependencies": [
"boost-assert",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1694,7 +1694,7 @@
},
"coin": {
"baseline": "4.0.2",
"port-version": 0
"port-version": 1
},
"coin-or-buildtools": {
"baseline": "2023-02-02",
Expand Down
5 changes: 5 additions & 0 deletions versions/c-/coin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f679393fe0adfac4fbc6aa8235ce8a35e106cd7a",
"version": "4.0.2",
"port-version": 1
},
{
"git-tree": "1f151412ad103c9cafd511a97783d60b85aae246",
"version": "4.0.2",
Expand Down

0 comments on commit 1489e83

Please sign in to comment.