mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 19:52:48 +08:00
[wcslib] Add wcslib port (#31320)
* Initial commit * Add usage and install * Correct library name * Try configure install * Disable more features * Remove redundant lines * Remove CMakeLists.txt * --without-cfitsio * Clean up vcpkg.json and disable windows * Format the manifest * Add versions * Update homepage and download URL * Fix version * Update usage * Update version
This commit is contained in:
parent
338d300d3e
commit
4a45104152
27
ports/wcslib/portfile.cmake
Normal file
27
ports/wcslib/portfile.cmake
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
vcpkg_download_distfile(archive
|
||||||
|
URLS "https://www.atnf.csiro.au/people/mcalabre/WCS/wcslib-7.12.tar.bz2"
|
||||||
|
FILENAME "wcslib-7.12.tar.bz2"
|
||||||
|
SHA512 7f38f725992d3c4bd3c1b908d494ac361c17f6b60f091d987fda596211423bb7396b3a5e2f1f6dd6215835016d302083472a7ad0822f17cdfe230c8f556b3e23
|
||||||
|
)
|
||||||
|
|
||||||
|
vcpkg_extract_source_archive(
|
||||||
|
src
|
||||||
|
ARCHIVE "${archive}"
|
||||||
|
)
|
||||||
|
|
||||||
|
vcpkg_configure_make(
|
||||||
|
SOURCE_PATH ${src}
|
||||||
|
COPY_SOURCE
|
||||||
|
OPTIONS
|
||||||
|
--disable-flex
|
||||||
|
--disable-fortran
|
||||||
|
--without-pgplot
|
||||||
|
--without-cfitsio)
|
||||||
|
|
||||||
|
vcpkg_install_make(MAKEFILE GNUmakefile)
|
||||||
|
vcpkg_fixup_pkgconfig()
|
||||||
|
vcpkg_install_copyright(FILE_LIST "${src}/COPYING")
|
||||||
|
|
||||||
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
6
ports/wcslib/usage
Normal file
6
ports/wcslib/usage
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
wcslib can be imported via CMake FindPkgConfig module:
|
||||||
|
|
||||||
|
find_package(PkgConfig)
|
||||||
|
pkg_check_modules(wcslib REQUIRED IMPORTED_TARGET wcslib)
|
||||||
|
target_include_directories(main PRIVATE PkgConfig::wcslib)
|
||||||
|
target_link_libraries(main PRIVATE PkgConfig::wcslib)
|
7
ports/wcslib/vcpkg.json
Normal file
7
ports/wcslib/vcpkg.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"name": "wcslib",
|
||||||
|
"version": "7.12",
|
||||||
|
"description": "World Coordinate System (WCS) (Library)",
|
||||||
|
"homepage": "https://www.atnf.csiro.au/people/mcalabre/WCS/",
|
||||||
|
"supports": "!windows"
|
||||||
|
}
|
@ -8500,6 +8500,10 @@
|
|||||||
"baseline": "1.31",
|
"baseline": "1.31",
|
||||||
"port-version": 1
|
"port-version": 1
|
||||||
},
|
},
|
||||||
|
"wcslib": {
|
||||||
|
"baseline": "7.12",
|
||||||
|
"port-version": 0
|
||||||
|
},
|
||||||
"websocketpp": {
|
"websocketpp": {
|
||||||
"baseline": "0.8.2",
|
"baseline": "0.8.2",
|
||||||
"port-version": 2
|
"port-version": 2
|
||||||
|
9
versions/w-/wcslib.json
Normal file
9
versions/w-/wcslib.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "2e33104b54c3db79012234ded4db319a3464885b",
|
||||||
|
"version": "7.12",
|
||||||
|
"port-version": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user