[open-dis-cpp] add new port (#29472)

* Initial open-dis-cpp port

* Correct vcpkg file and versions file

* Add open-dis-cpp version file

* Remove unused variables

* prefer ninja

* use master for now

* Tweak portfile for sha

* Update sha512

* Remove debug include files

* Use forked repo for testing

* Update sha512

* Update version database

* Update usage

* Update version database

* Update to 1.0.1 release

* Correct repo path

* Update sha512

* Update versions

* Correct cmake options

* Update version database
This commit is contained in:
wadehunk 2023-02-08 16:21:06 -06:00 committed by GitHub
parent 9d07914638
commit 928c150043
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,25 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO open-dis/open-dis-cpp
REF "v${VERSION}"
SHA512 e6d38f55beabf85d0319be21d9cec07f818b833dfa14dcb649cacbc8ea86779c29ac2717579239378ace1ae62054864851ecb55402e82fe4d083ab483218260e
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_EXAMPLES=OFF
-DBUILD_TESTS=OFF
)
vcpkg_cmake_install()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_cmake_config_fixup(PACKAGE_NAME OpenDIS CONFIG_PATH lib/cmake/OpenDIS)
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
# Handle copyright
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

5
ports/open-dis-cpp/usage Normal file
View File

@ -0,0 +1,5 @@
The package open-dis-cpp provides CMake targets:
find_package(OpenDIS CONFIG REQUIRED)
target_link_libraries(main PRIVATE OpenDIS::OpenDIS6)
target_link_libraries(main PRIVATE OpenDIS::OpenDIS7)

View File

@ -0,0 +1,20 @@
{
"name": "open-dis-cpp",
"version": "1.0.1",
"description": [
"DIS v6/v7 Library",
"C++ implementation of the IEEE-1278.1 Distributed Interactive Simulation (DIS) application protocol v6 and v7"
],
"homepage": "https://open-dis.org",
"license": "BSD-2-Clause",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -5572,6 +5572,10 @@
"baseline": "2021-11-23",
"port-version": 0
},
"open-dis-cpp": {
"baseline": "1.0.1",
"port-version": 0
},
"open62541": {
"baseline": "1.2.3",
"port-version": 1

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "044f953e62d00086021c231face998ce58ad2b05",
"version": "1.0.1",
"port-version": 0
}
]
}