mirror of
https://github.com/microsoft/vcpkg.git
synced 2026-01-18 01:11:23 +01:00
[libserial] add new port (#49414)
This commit is contained in:
36
ports/libserial/portfile.cmake
Normal file
36
ports/libserial/portfile.cmake
Normal file
@@ -0,0 +1,36 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO crayzeewulf/libserial
|
||||
REF 50e0f443666d48d7c7e181dc73a6b35700517fae
|
||||
SHA512 205b481b96bfd471804e3a039864221a8e08b40a9fd4681c5dd9433805eb711b782decca5aa7d121c15775646e853f6a7c6ad98d8ffd08d452123c60b3b62368
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
set(LIBSERIAL_STATIC OFF)
|
||||
set(LIBSERIAL_SHARED ON)
|
||||
else()
|
||||
set(LIBSERIAL_STATIC ON)
|
||||
set(LIBSERIAL_SHARED OFF)
|
||||
endif()
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DLIBSERIAL_ENABLE_TESTING=OFF
|
||||
-DLIBSERIAL_BUILD_EXAMPLES=OFF
|
||||
-DLIBSERIAL_PYTHON_ENABLE=OFF
|
||||
-DLIBSERIAL_BUILD_DOCS=OFF
|
||||
-DINSTALL_STATIC=${LIBSERIAL_STATIC}
|
||||
-DINSTALL_SHARED=${LIBSERIAL_SHARED}
|
||||
)
|
||||
vcpkg_cmake_install()
|
||||
|
||||
file(REMOVE "${CURRENT_PACKAGES_DIR}/include/libserial/Makefile.am")
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
||||
)
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
||||
18
ports/libserial/vcpkg.json
Normal file
18
ports/libserial/vcpkg.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "libserial",
|
||||
"version-date": "2025-09-03",
|
||||
"description": "Serial Port Programming in C++ ",
|
||||
"homepage": "https://github.com/crayzeewulf/libserial",
|
||||
"license": "BSD-3-Clause",
|
||||
"supports": "linux | osx",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -5460,6 +5460,10 @@
|
||||
"baseline": "1.3.2",
|
||||
"port-version": 1
|
||||
},
|
||||
"libserial": {
|
||||
"baseline": "2025-09-03",
|
||||
"port-version": 0
|
||||
},
|
||||
"libsersi": {
|
||||
"baseline": "0.1.0",
|
||||
"port-version": 0
|
||||
|
||||
9
versions/l-/libserial.json
Normal file
9
versions/l-/libserial.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "610cb4dd475347505038a19d7b626a98f608de56",
|
||||
"version-date": "2025-09-03",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user