mirror of https://github.com/microsoft/vcpkg.git
[hamlib] New port (#51631)
This commit is contained in:
parent
7090f9cb7a
commit
d4db34445d
|
|
@ -0,0 +1,37 @@
|
|||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO Hamlib/Hamlib
|
||||
REF "${VERSION}"
|
||||
SHA512 84541adc1de2132d272a823c21a80376da8effe0be4afd41e8f4bf4b2bf714b2abf8418ed0d21491f961cbe358cff2718a07b499d6277a9292f81ce2b1eee92f
|
||||
)
|
||||
|
||||
vcpkg_list(SET options)
|
||||
if("usb" IN_LIST FEATURES)
|
||||
list(APPEND options --with-libusb=yes)
|
||||
else()
|
||||
list(APPEND options --with-libusb=no)
|
||||
endif()
|
||||
if("xml" IN_LIST FEATURES)
|
||||
list(APPEND options --with-xml-support=yes)
|
||||
else()
|
||||
list(APPEND options --with-xml-support=no)
|
||||
endif()
|
||||
|
||||
vcpkg_make_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
AUTORECONF
|
||||
OPTIONS
|
||||
${options}
|
||||
--with-cxx-binding=yes
|
||||
--with-indi=no # needs libindi/libnova
|
||||
--with-readline=no # needs readline
|
||||
--enable-html-matrix=no # needs libgd
|
||||
--enable-usrp=no
|
||||
|
||||
)
|
||||
vcpkg_make_install()
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"name": "hamlib",
|
||||
"version": "4.7.1",
|
||||
"description": "Ham radio control library for rigs (radios), rotators, and amplifiers.",
|
||||
"homepage": "https://hamlib.github.io/",
|
||||
"documentation": "https://github.com/Hamlib/Hamlib/wiki/Documentation",
|
||||
"license": null,
|
||||
"supports": "(!windows | mingw) & !android",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-make",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"usb": {
|
||||
"description": "USB backend support",
|
||||
"dependencies": [
|
||||
"libusb"
|
||||
]
|
||||
},
|
||||
"xml": {
|
||||
"description": "Rigmem XML support",
|
||||
"dependencies": [
|
||||
"libxml2"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3736,6 +3736,10 @@
|
|||
"baseline": "18.0.0",
|
||||
"port-version": 1
|
||||
},
|
||||
"hamlib": {
|
||||
"baseline": "4.7.1",
|
||||
"port-version": 0
|
||||
},
|
||||
"hanjingo-high-jump": {
|
||||
"baseline": "1.0.6",
|
||||
"port-version": 0
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "66c568e74340fb28a72a507d2eaabfcf8b2f4d72",
|
||||
"version": "4.7.1",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue