mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 02:03:39 +08:00
[libosmium ] added new port (#11863)
* added libosmium port * minor fixes * minor fixes * Update CONTROL * Update portfile.cmake Co-authored-by: Lily <47812810+LilyWangL@users.noreply.github.com>
This commit is contained in:
parent
cb97769f89
commit
0c9bc384f8
5
ports/libosmium/CONTROL
Normal file
5
ports/libosmium/CONTROL
Normal file
@ -0,0 +1,5 @@
|
||||
Source: libosmium
|
||||
Version: 2.15.5
|
||||
Homepage: https://osmcode.org/libosmium/
|
||||
Description: A fast and flexible C++ library for working with OpenStreetMap data
|
||||
Build-Depends: utfcpp, expat, zlib, proj4, bzip2, protozero, boost
|
21
ports/libosmium/portfile.cmake
Normal file
21
ports/libosmium/portfile.cmake
Normal file
@ -0,0 +1,21 @@
|
||||
# header-only library
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO osmcode/libosmium
|
||||
REF v2.15.5
|
||||
SHA512 a4972901db8ed89302e6ba15fd104543b5e36a41bc83daf8f6f6fb29ce73b0dbd8596de801d099a33df413b26eec1b3a6f4f0d669936ecc6d25f88d783468a59
|
||||
)
|
||||
set(BOOST_ROOT ${CURRENT_INSTALLED_DIR})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
||||
OPTIONS -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
Loading…
x
Reference in New Issue
Block a user